Skip to content

Commit

Permalink
Merge pull request #1257 from solliancenet/skm-18329
Browse files Browse the repository at this point in the history
Added API Endpoint Resources
  • Loading branch information
ciprianjichici authored Jul 24, 2024
2 parents 04716f1 + 7da2e6b commit 867c843
Show file tree
Hide file tree
Showing 15 changed files with 367 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
AuthorizationAPI.json
AzureContentSafety.json
GatekeeperAPI.json
GatekeeperIntegrationAPI.json
GatewayAPI.json
LangChainAPI.json
OrchestrationAPI.json
SemanticKernelAPI.json
VectorizationAPI.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
{
"ResourceReferences": [
{
"Name": "AuthorizationAPI",
"Filename": "/FoundationaLLM.Configuration/AuthorizationAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "AzureContentSafety",
"Filename": "/FoundationaLLM.Configuration/AzureContentSafety.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "GatekeeperAPI",
"Filename": "/FoundationaLLM.Configuration/GatekeeperAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "GatekeeperIntegrationAPI",
"Filename": "/FoundationaLLM.Configuration/GatekeeperIntegrationAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "GatewayAPI",
"Filename": "/FoundationaLLM.Configuration/GatewayAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "LangChainAPI",
"Filename": "/FoundationaLLM.Configuration/LangChainAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "OrchestrationAPI",
"Filename": "/FoundationaLLM.Configuration/OrchestrationAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "SemanticKernelAPI",
"Filename": "/FoundationaLLM.Configuration/SemanticKernelAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "VectorizationAPI",
"Filename": "/FoundationaLLM.Configuration/VectorizationAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "GatewayAdapterAPI",
"Filename": "/FoundationaLLM.Configuration/GatewayAdapterAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "StateAPI",
"Filename": "/FoundationaLLM.Configuration/StateAPI.json",
"Type": "api-endpoint",
"Deleted": false
},
{
"Name": "VectorizationWorker",
"Filename": "/FoundationaLLM.Configuration/VectorizationWorker.json",
"Type": "api-endpoint",
"Deleted": false
}
]
}
7 changes: 7 additions & 0 deletions deploy/quick-start/azd-hooks/postprovision.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,13 @@ foreach ($configuration in $configurations.GetEnumerator()) {
Format-EnvironmentVariables -template $template -render $render
}

foreach ($apiConfigFilePath in $(Get-ChildItem -Path "./data/resource-provider/FoundationaLLM.Configuration")) {
$template = Resolve-Path "./data/resource-provider/FoundationaLLM.Configuration/$($apiConfigFilePath.Name)"
$formattedTemplateName = $apiConfigFilePath.Name -replace "template."
$render = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("../common/data/resource-provider/FoundationaLLM.Configuration/$formattedTemplateName")
Format-EnvironmentVariables -template $template -render $render
}

if ($env:PIPELINE_DEPLOY) {
$roleAssignments = (Get-Content "./data/role-assignments/${env:FOUNDATIONALLM_INSTANCE_ID}.json" | ConvertFrom-Json)
$spRoleAssignmentName = $(New-Guid).Guid
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"type": "api-endpoint",
"name": "AuthorizationAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/AuthorizationAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "AzureIdentity",
"authentication_parameters":{
"scope":"api://FoundationaLLM-Authorization"
},
"url": "${env:SERVICE_AUTH_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": null,
"updated_by": "SYSTEM",
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "AzureContentSafety",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/AzureContentSafety",
"display_name": null,
"description": null,
"cost_center": null,
"category": "Gatekeeper",
"authentication_type": "APIKey",
"authentication_parameters":{
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:AzureContentSafety:APIKey",
"api_key_header_name": "Ocp-Apim-Subscription-Key"
},
"url": "${env:AZURE_CONTENT_SAFETY_ENDPOINT}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": null,
"updated_by": "SYSTEM",
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "GatekeeperAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/GatekeeperAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "Gatekeeper",
"authentication_type": "APIKey",
"authentication_parameters":{
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:GatekeeperAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_GATEKEEPER_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "GatekeeperIntegrationAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/GatekeeperIntegrationAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "Gatekeeper",
"authentication_type": "APIKey",
"authentication_parameters":{
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:GatekeeperIntegrationAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_GATEKEEPER_INTEGRATION_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "GatewayAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/GatewayAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "APIKey",
"authentication_parameters":{
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:GatewayAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_GATEWAY_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "GatewayAdapterAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/GatewayAdapterAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "APIKey",
"authentication_parameters": {
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:GatewayAdapterAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_GATEWAY_ADAPTER_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "LangChainAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/LangChainAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "Orchestration",
"authentication_type": "APIKey",
"authentication_parameters":{
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:LangChainAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_LANGCHAIN_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": null,
"updated_by": "SYSTEM",
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "OrchestrationAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/OrchestrationAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "APIKey",
"authentication_parameters": {
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:OrchestrationAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_ORCHESTRATION_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": null,
"updated_by": "SYSTEM",
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "SemanticKernelAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/SemanticKernelAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "Orchestration",
"authentication_type": "APIKey",
"authentication_parameters": {
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:SemanticKernelAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_SEMANTIC_KERNEL_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "StateAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/StateAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "APIKey",
"authentication_parameters": {
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:StateAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_STATE_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"type": "api-endpoint",
"name": "VectorizationAPI",
"object_id": "/instances/${env:FOUNDATIONALLM_INSTANCE_ID}/providers/FoundationaLLM.Configuration/apiEndpointConfigurations/VectorizationAPI",
"display_name": null,
"description": null,
"cost_center": null,
"category": "General",
"authentication_type": "APIKey",
"authentication_parameters": {
"api_key_configuration_name": "FoundationaLLM:APIEndpoints:VectorizationAPI:APIKey",
"api_key_header_name": "Bearer"
},
"url": "${env:SERVICE_VECTORIZATION_API_ENDPOINT_URL}",
"url_exceptions": [],
"timeout_seconds": 60,
"retry_strategy_name": "ExponentialBackoff",
"created_on": "0001-01-01T00:00:00+00:00",
"updated_on": "0001-01-01T00:00:00+00:00",
"created_by": "SYSTEM",
"updated_by": null,
"deleted": false
}
Loading

0 comments on commit 867c843

Please sign in to comment.