Azure Functions 플러그인 구성 레퍼런스
Azure Functions 플러그인 구성 레퍼런스 (Azure Functions Plugin Configuration Reference)
이 문서는 Kong Gateway에서 Azure Functions 플러그인을 설정할 때 사용하는 모든 파라미터를 스키마 형태로 정리한 구성 레퍼런스예요. appname과 functionname 같은 필수 항목부터 hostdomain, timeout, keepalive 같은 선택 항목의 기본값까지 한눈에 확인할 수 있어요. apikey와 clientid 필드는 암호화되고 볼트 참조가 가능하다는 점도 함께 표시해 주니, 시크릿을 다룰 때 참고하면 좋아요
출처: 문서
본문
{
"properties": {
"config": {
"properties": {
"apikey": {
"description": "The apikey to access the Azure resources. If provided, it is injected as the `x-functions-key` header. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
"type": "string",
"x-encrypted": true,
"x-referenceable": true
},
"appname": {
"description": "The Azure app name.",
"type": "string"
},
"clientid": {
"description": "The `clientid` to access the Azure resources. If provided, it is injected as the `x-functions-clientid` header. \nThis field is [referenceable](/gateway/entities/vault/#how-do-i-reference-secrets-stored-in-a-vault). \nThis field is [encrypted](/gateway/keyring/).",
"type": "string",
"x-encrypted": true,
"x-referenceable": true
},
"functionname": {
"description": "Name of the Azure function to invoke.",
"type": "string"
},
"hostdomain": {
"default": "azurewebsites.net",
"description": "The domain where the function resides.",
"type": "string"
},
"https": {
"default": true,
"description": "Use of HTTPS to connect with the Azure Functions server.",
"type": "boolean"
},
"https_verify": {
"default": true,
"description": "Set to `true` to authenticate the Azure Functions server.",
"type": "boolean"
},
"keepalive": {
"default": 60000,
"description": "Time in milliseconds during which an idle connection to the Azure Functions server lives before being closed.",
"type": "number"
},
"routeprefix": {
"default": "api",
"description": "Route prefix to use.",
"type": "string"
},
"timeout": {
"default": 600000,
"description": "Timeout in milliseconds before closing a connection to the Azure Functions server.",
"type": "number"
}
},
"required": [
"appname",
"functionname"
],
"type": "object"
},
"consumer": {
"additionalProperties": false,
"description": "If set, the plugin will activate only for requests where the specified has been authenticated. (Note that some plugins can not be restricted to consumers this way.). Leave unset for the plugin to activate regardless of the authenticated Consumer.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"expressions": {
"additionalProperties": true,
"type": "object"
},
"protocols": {
"default": [
"grpc",
"grpcs",
"http",
"https"
],
"description": "A set of strings representing protocols.",
"items": {
"description": "A string representing a protocol, such as HTTP or HTTPS.",
"enum": [
"grpc",
"grpcs",
"http",
"https",
"tcp",
"tls",
"tls_passthrough",
"udp",
"ws",
"wss"
],
"type": "string"
},
"type": "array"
},
"route": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via the specified route. Leave unset for the plugin to activate regardless of the route being used.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
},
"service": {
"additionalProperties": false,
"description": "If set, the plugin will only activate when receiving requests via one of the routes belonging to the specified Service. Leave unset for the plugin to activate regardless of the Service being matched.",
"properties": {
"id": {
"type": "string"
}
},
"type": "object"
}
},
"required": [
"config"
]
}
관련 리소스
더 알아보기 (Learn more)
- apikey, clientid처럼 참조 가능한 필드에 볼트에 저장된 시크릿을 연결하는 방법을 설명해요 — referenceable
- 암호화 표시된 필드가 키링을 통해 어떻게 보호되는지 이해할 수 있어요 — encrypted
- Azure Functions 플러그인을 실제로 설정하고 동작시키는 과정을 단계별로 따라 해 볼 수 있어요 — Use an Azure Function through Kong Gateway