PowerPlatformConnectors/certified-connectors/OpenLegacy IBM Mainframe/apiProperties.json

149 строки
4.6 KiB
JSON

{
"properties": {
"connectionParameters": {
"api_key": {
"type": "securestring",
"uiDefinition": {
"displayName": "Hub API Key",
"description": "The Hub API Key to request projects and methods metadata",
"tooltip": "Provide your Hub API Key",
"constraints": {
"tabIndex": 2,
"clearText": false,
"required": "true"
}
}
},
"hub_url": {
"type": "string",
"uiDefinition": {
"displayName": "Hub URL (Optional)",
"description": "Define Hub URL when the Hub is installed on premise and not using OpenLegacy SaaS solution",
"tooltip": "Provide a Hub URL (Optional)",
"constraints": {
"tabIndex": 3,
"clearText": false,
"required": "false"
}
}
},
"appBaseUrl": {
"type": "string",
"uiDefinition": {
"displayName": "Deployed Application Base Url",
"description": "The Base URL to deployed application",
"tooltip": "Provide a Base URL",
"constraints": {
"tabIndex": 4,
"clearText": false,
"required": "true"
}
}
},
"appRuntimeKey": {
"type": "securestring",
"uiDefinition": {
"displayName": "Runtime API Key",
"description": "The Runtime API Key to authorize in deployed application (Optional)",
"tooltip": "The Runtime API Key is mandatory when API is hosted on OpenLegacy Cloud",
"constraints": {
"tabIndex": 5,
"clearText": false,
"required": "false"
}
}
}
},
"iconBrandColor": "#f98937",
"capabilities": [],
"policyTemplateInstances": [
{
"templateId": "dynamichosturl",
"title": "ChangeHubUrl",
"parameters": {
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('hub_url','https://api.ol-hub.com')",
"x-ms-apimTemplate-operationName": [
"GetAllProjects",
"GetMethodsForContract",
"GetMethodOpenApiSpec"
]
}
},
{
"templateId": "setheader",
"title": "SetHubUrl",
"parameters": {
"x-ms-apimTemplateParameter.name": "ol-hub-url",
"x-ms-apimTemplateParameter.value": "@connectionParameters('hub_url','https://api.ol-hub.com')",
"x-ms-apimTemplateParameter.existsAction": "override",
"x-ms-apimTemplate-policySection": "Request",
"x-ms-apimTemplate-operationName": [
"MfCicsCobol",
"MfCtgCobol",
"MfImsCobol",
"MfNatural",
"MfVsamCics",
"Mf3270Screens",
"MfMq"
]
}
},
{
"templateId": "dynamichosturl",
"title": "ChangeHostUrl",
"parameters": {
"x-ms-apimTemplateParameter.urlTemplate": "@connectionParameters('appBaseUrl')",
"x-ms-apimTemplate-operationName": [
"MfCicsCobol",
"MfCtgCobol",
"MfImsCobol",
"MfNatural",
"MfVsamCics",
"Mf3270Screens",
"MfMq"
]
}
},
{
"templateId": "setheader",
"title": "SetHubApiKey",
"parameters": {
"x-ms-apimTemplateParameter.name": "ol-hub-x-api-key",
"x-ms-apimTemplateParameter.value": "@connectionParameters('api_key','')",
"x-ms-apimTemplateParameter.existsAction": "override",
"x-ms-apimTemplate-policySection": "Request",
"x-ms-apimTemplate-operationName": [
"MfCicsCobol",
"MfCtgCobol",
"MfImsCobol",
"MfNatural",
"MfVsamCics",
"Mf3270Screens",
"MfMq"
]
}
},
{
"templateId": "setheader",
"title": "SetRuntimeApiKey",
"parameters": {
"x-ms-apimTemplateParameter.name": "x-api-key",
"x-ms-apimTemplateParameter.value": "@connectionParameters('appRuntimeKey','')",
"x-ms-apimTemplateParameter.existsAction": "override",
"x-ms-apimTemplate-policySection": "Request",
"x-ms-apimTemplate-operationName": [
"MfCicsCobol",
"MfCtgCobol",
"MfImsCobol",
"MfNatural",
"MfVsamCics",
"Mf3270Screens",
"MfMq"
]
}
}
],
"publisher": "OpenLegacy Technologies Inc.",
"stackOwner": "OpenLegacy Technologies Inc."
}
}