-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swagger for Microsoft.HybridContainerService provisioned clusters (#4746
) * Swagger for HybridAKS provisioned clusters (#4697) Added swagger for HybridAKS provisioned clusters * Swagger fix validation errors and added examples (#4744) * added examples and fixed some validation errors * fixed more validation errors and warnings * Added x-ms-secret flag for passwords * fixing liniting issues in swagger (#4748) * Fixes for prettier, spell checks and go-sdk generation (#4767) * Fixes for prettier, spell checks and go-sdk generation * changed default network plugin to calico * formatting fix * added enums, defaults and moved nodepool config to a common definition * changed go-sdk to track2 * Added cluster prefix to name and location
- Loading branch information
1 parent
6c7bc1e
commit f916925
Showing
15 changed files
with
1,628 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
....HybridContainerService/preview/2021-08-01-preview/examples/DeleteProvisionedCluster.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b", | ||
"resourceGroupName": "test-arcappliance-resgrp", | ||
"provisionedClustersName": "test-hybridakscluster", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
69 changes: 69 additions & 0 deletions
69
...oft.HybridContainerService/preview/2021-08-01-preview/examples/GetProvisionedCluster.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b", | ||
"resourceGroupName": "test-arcappliance-resgrp", | ||
"provisionedClustersName": "test-hybridakscluster", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster", | ||
"name": "test-hybridakscluster", | ||
"type": "microsoft.hybridcontainerservice/provisionedclusters", | ||
"location": "westus", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"controlPlane": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_A4_v2" | ||
}, | ||
"osType": "Linux", | ||
"linuxProfile": { | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"kubernetesVersion": "v1.20.5", | ||
"loadBalancer": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_K8S3_v1" | ||
}, | ||
"osType": "Linux" | ||
}, | ||
"addon": { | ||
"cloudProviderConfiguration": { | ||
"config": { | ||
"configuration": "moc" | ||
} | ||
}, | ||
"CSIConfiguration": { | ||
"config": { | ||
"configuration": "akshcicsi", | ||
"dynamic": "true", | ||
"storageContainer": "WssdStorageContainer" | ||
} | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkPlugin": "calico", | ||
"podCidr": "10.244.0.0/16" | ||
}, | ||
"nodeResourceGroup": "target-group", | ||
"vnetSubnetID": "testvnet" | ||
} | ||
} | ||
} | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
...erService/preview/2021-08-01-preview/examples/ListProvisionedClusterAdminCredentials.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b", | ||
"resourceGroupName": "test-arcappliance-resgrp", | ||
"provisionedClustersName": "test-hybridakscluster", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"kubeconfigs": [ | ||
{ | ||
"name": "adminkubeconfig", | ||
"value": "base-64 encoded kubeconfig" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
...nerService/preview/2021-08-01-preview/examples/ListProvisionedClusterByResourceGroup.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b", | ||
"resourceGroupName": "test-arcappliance-resgrp", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster", | ||
"name": "test-hybridakscluster", | ||
"type": "microsoft.hybridcontainerservice/provisionedclusters", | ||
"location": "westus", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"controlPlane": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_A4_v2" | ||
}, | ||
"osType": "Linux", | ||
"linuxProfile": { | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"kubernetesVersion": "v1.20.5", | ||
"loadBalancer": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_K8S3_v1" | ||
}, | ||
"osType": "Linux" | ||
}, | ||
"addon": { | ||
"cloudProviderConfiguration": { | ||
"config": { | ||
"configuration": "moc" | ||
} | ||
}, | ||
"CSIConfiguration": { | ||
"config": { | ||
"configuration": "akshcicsi", | ||
"dynamic": "true", | ||
"storageContainer": "WssdStorageContainer" | ||
} | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkPlugin": "calico", | ||
"podCidr": "10.244.0.0/16" | ||
}, | ||
"nodeResourceGroup": "target-group", | ||
"vnetSubnetID": "testvnet" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
...inerService/preview/2021-08-01-preview/examples/ListProvisionedClusterBySubscription.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b", | ||
"api-version": "2021-08-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster", | ||
"name": "test-hybridakscluster", | ||
"type": "microsoft.hybridcontainerservice/provisionedclusters", | ||
"location": "westus", | ||
"extendedLocation": { | ||
"name": "/subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourcegroups/test-arcappliance-resgrp/providers/microsoft.extendedlocation/customlocations/testcustomlocation", | ||
"type": "CustomLocation" | ||
}, | ||
"properties": { | ||
"provisioningState": "Succeeded", | ||
"controlPlane": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_A4_v2" | ||
}, | ||
"osType": "Linux", | ||
"linuxProfile": { | ||
"ssh": { | ||
"publicKeys": [ | ||
{ | ||
"keyData": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCY......" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"kubernetesVersion": "v1.20.5", | ||
"loadBalancer": { | ||
"count": 1, | ||
"hardwareConfig": { | ||
"vmSize": "Standard_K8S3_v1" | ||
}, | ||
"osType": "Linux" | ||
}, | ||
"addon": { | ||
"cloudProviderConfiguration": { | ||
"config": { | ||
"configuration": "moc" | ||
} | ||
}, | ||
"CSIConfiguration": { | ||
"config": { | ||
"configuration": "akshcicsi", | ||
"dynamic": "true", | ||
"storageContainer": "WssdStorageContainer" | ||
} | ||
} | ||
}, | ||
"networkProfile": { | ||
"networkPlugin": "calico", | ||
"podCidr": "10.244.0.0/16" | ||
}, | ||
"nodeResourceGroup": "target-group", | ||
"vnetSubnetID": "testvnet" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.