PowerPlatformConnectors/certified-connectors/Alkymi/apiProperties.json

55 строки
1.5 KiB
JSON

{
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "API Key",
"description": "The API Key for this api",
"tooltip": "Provide your API Key",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
},
"host_name": {
"type": "string",
"uiDefinition": {
"displayName": "Host Name",
"description": "Your tenant's host name",
"tooltip": "Will look like <company_name>.alkymi.io",
"constraints": {
"tabIndex": 2,
"clearText": true,
"required": "true"
}
}
}
},
"iconBrandColor": "#202847",
"capabilities": [],
"policyTemplateInstances": [
{
"templateId": "dynamichosturl",
"title": "Set Host URL",
"parameters": {
"x-ms-apimTemplateParameter.urlTemplate": "https://@connectionParameters('host_name')"
}
},
{
"templateId": "setheader",
"title": "Set API Token",
"parameters": {
"x-ms-apimTemplateParameter.name": "Authorization",
"x-ms-apimTemplateParameter.value": "Token @connectionParameters('api_key')",
"x-ms-apimTemplateParameter.existsAction": "override",
"x-ms-apimTemplate-policySection": "Request"
}
}
],
"publisher": "Alkymi",
"stackOwner": "Alkymi"
}
}