Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,29 @@
"type": "string",
"description": "ETag of the resource.",
"readOnly": true
},
"kind": {
"type": "string",
"readOnly": true,
Comment thread
halspang marked this conversation as resolved.
Outdated
"description": "The kind of gateway.",
"enum": [
"KubernetesManaged",
"Default"
],
"x-ms-enum": {
"name": "GatewayKind",
"modelAsString": true,
"values": [
{
"value": "Default",
Comment thread
solankisamir marked this conversation as resolved.
"description": "Kind of gateway that is capable of exposing APIs for workspaces using configuration managed through Azure Resource Manager (ARM)."
},
{
"value": "KubernetesManaged",
"description": "Kind of gateway that is capable of exposing traffic routes for workspaces using configuration managed by Kubernetes resources."
}
]
Comment thread
halspang marked this conversation as resolved.
}
}
},
"allOf": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@
"x-ms-examples": {
"ApiManagementGetWorkspace": {
"$ref": "./examples/ApiManagementGetWorkspace.json"
}
},
"ApiManagementGetKubernetesManagedWorkspace": {
"$ref": "./examples/ApiManagementGetKubernetesManagedWorkspace.json"
},
},
"parameters": [
{
Expand Down Expand Up @@ -198,6 +201,9 @@
"x-ms-examples": {
"ApiManagementCreateWorkspace": {
"$ref": "./examples/ApiManagementCreateWorkspace.json"
},
"ApiManagementCreateKubernetesWorkspace": {
"$ref": "./examples/ApiManagementCreateKubernetesWorkspace.json"
}
},
"parameters": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9232,13 +9232,60 @@
"description": {
"type": "string",
"description": "Description of the workspace."
},
"kind": {
"type": "string",
"readOnly": true,
"description": "The kind of workspace.",
Comment thread
halspang marked this conversation as resolved.
Outdated
"enum": [
"KubernetesManaged",
"Default"
],
"x-ms-enum": {
"name": "WorkspaceKind",
"modelAsString": true,
"values": [
{
"value": "Default",
"description": "Configuration of APIs in workspace is managed through Azure Resource Manager (ARM)."
},
{
"value": "KubernetesManaged",
"description": "Configuration of traffic routes in workspace is managed by Kubernetes resources."
}
]
}
},
"configurationApi": {
Comment thread
halspang marked this conversation as resolved.
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ConfigurationApiProperties",
"description": "Configuration API properties.",
"readOnly": true
}
}
}
},
"required": [
"displayName"
],
"description": "Workspace entity properties."
},
"ConfigurationApiProperties": {
"type": "object",
"properties": {
"hostname": {
"type": "string",
"description": "Hostname of the configuration API."
}
},
"required": [
"hostname"
],
"description": "Configuration API properties."
},
"ProductApiLinkCollection": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2024-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceId": "wks1",
"parameters": {
"properties": {
"displayName": "my workspace",
"description": "workspace 1"
}
}
},
"responses": {
"201": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1",
"type": "Microsoft.ApiManagement/service/workspaces",
"name": "wks1",
"kind": "KubernetesManaged",
"properties": {
"description": "workspace 1",
"displayName": "my workspace",
"configurationApi": {
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
}
}
},
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1",
"type": "Microsoft.ApiManagement/service/workspaces",
"name": "wks1",
"kind": "KubernetesManaged",
"properties": {
"description": "workspace 1",
"displayName": "my workspace",
"configurationApi": {
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
}
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
}
},
"configurationApi": {
"hostname": "apimGateway1.eastus.configuration.gateway.azure-api.net"
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
},
"sku": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
"parameters": {
"gatewayName": "apimGateway1",
"resourceGroupName": "rg1",
"api-version": "2024-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"parameters": {
"properties": {
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "WorkspaceGatewayPremium",
"capacity": 1
},
"location": "South Central US",
"tags": {
"Name": "Contoso",
"Test": "User"
},
"kind": "KubernetesManaged"
}
},
"responses": {
"201": {
"headers": {
"Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-10-01-preview&asyncResponse",
"Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1/operationresults/ZWFzdHVzOmFuZHktdGVzdGluZy0yMDIyLTA0LTAxLXByZXZpZXctNF9BY3RfODQ2ZWE4Ng==?api-version=2024-10-01-preview&asyncResponse"
},
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1",
"name": "apimGateway1",
"type": "Microsoft.ApiManagement/gateway",
Comment thread
halspang marked this conversation as resolved.
"tags": {
"api-version": "2024-10-01-preview"
},
"location": "East US",
"etag": "AAAAAAAmRAM=",
"kind": "KubernetesManaged",
"properties": {
"provisioningState": "Created",
"targetProvisioningState": "Activating",
"createdAtUtc": "2022-07-11T18:41:01.2506031Z",
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "WorkspaceGatewayPremium",
"capacity": 1
},
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2022-07-11T18:41:00.9390609Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-07-11T18:41:00.9390609Z"
}
}
},
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateways/apimGateway1",
"name": "apimGateway1",
"type": "Microsoft.ApiManagement/gateways",
Comment thread
halspang marked this conversation as resolved.
"tags": {
"api-version": "2024-10-01-preview"
},
"location": "East US",
"etag": "AAAAAAAmREI=",
"kind": "KubernetesManaged",
"properties": {
"provisioningState": "Succeeded",
"targetProvisioningState": "",
"createdAtUtc": "2022-07-11T18:41:01.2506031Z",
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "WorkspaceGatewayPremium",
"capacity": 1
},
"systemData": {
"createdBy": "user@contoso.com",
"createdByType": "User",
"createdAt": "2022-07-11T18:41:00.9390609Z",
"lastModifiedBy": "user@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2022-07-11T18:41:00.9390609Z"
}
}
}
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"configurationApi": {
"hostname": "example-gateway.westus.configuration.gateway.azure-api.net"
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
},
"sku": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
}
},
"configurationApi": {
"hostname": "example-gateway.eastus.configuration.gateway.azure-api.net"
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
},
"sku": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{
"parameters": {
"gatewayName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2024-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/gateway/example-gateway",
Comment thread
halspang marked this conversation as resolved.
"name": "example-gateway",
"type": "Microsoft.ApiManagement/gateway",
"kind": "KubernetesManaged",
"tags": {
"owner": "v-aswmoh",
"ReleaseName": "Z3"
},
"location": "East US",
"etag": "AAAAAAAWN/4=",
"properties": {
"targetProvisioningState": "",
"createdAtUtc": "2021-06-16T09:40:00.9453556Z",
"frontend": {
"defaultHostname": "example-gateway.eastus.gateway.azure-api.net"
},
"backend": {
"subnet": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vn1/subnets/sn1"
}
}
},
"sku": {
"name": "WorkspaceGatewayPremium",
"capacity": 1
},
"systemData": {
"createdBy": "string",
"createdByType": "User",
"createdAt": "2021-06-16T09:40:00.7106733Z",
"lastModifiedBy": "foo@contoso.com",
"lastModifiedByType": "User",
"lastModifiedAt": "2021-06-20T06:33:09.6159006Z"
}
}
}
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"parameters": {
"serviceName": "apimService1",
"resourceGroupName": "rg1",
"api-version": "2024-10-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"workspaceId": "wks1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/workspaces/wks1",
"type": "Microsoft.ApiManagement/service/workspaces",
"name": "wks1",
"kind": "KubernetesManaged",
"properties": {
"provisioningState": "Succeeded",
Comment thread
halspang marked this conversation as resolved.
Outdated
"description": "workspace 1",
"displayName": "my workspace",
"configurationApi": {
"hostname": "tenant1.configuration.eastus-01.azure-api.net"
}
}
}
}
}
}
Loading