forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Hub Generated] Review request for Microsoft.ContainerInstance to add…
… version stable/2022-09-01 (Azure#21158) * Adds base for updating Microsoft.ContainerInstance from version stable/2021-10-01 to version 2022-09-01 * Updates readme * Updates API version in new specs and examples * Adding a new property 'identity' to EncryptionProperties * Including retry timeout minutes as part of same api version update * Fixing SpellCheck error * added Extensions property to swagger spec * add x-ms-identifier; fix spellings * remove retryTimeoutMinutes from spec * use correct nesting for extension properties * extension required properties * added contianer group extension example * add reference to extensions example * added example for contianer group encryptionProperties * fix errors in example schema * added LRO headery azure-asyncoperation to examples Co-authored-by: Sandeep Prakash <sandy4ualso@hotmail.com> Co-authored-by: Sandeep Prakash <sandep@microsoft.com>
- Loading branch information
1 parent
fcbaad6
commit 464e1db
Showing
22 changed files
with
3,958 additions
and
2 deletions.
There are no files selected for viewing
2,453 changes: 2,453 additions & 0 deletions
2,453
...nce/resource-manager/Microsoft.ContainerInstance/stable/2022-09-01/containerInstance.json
Large diffs are not rendered by default.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...urce-manager/Microsoft.ContainerInstance/stable/2022-09-01/examples/CachedImagesList.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,27 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"location": "westcentralus", | ||
"api-version": "2022-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"osType": "Linux", | ||
"image": "ubuntu:16.04" | ||
}, | ||
{ | ||
"osType": "Linux", | ||
"image": "alpine:3.6" | ||
}, | ||
{ | ||
"osType": "Windows", | ||
"image": "microsoft/nanoserver:10.0.14393.2485" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
39 changes: 39 additions & 0 deletions
39
...urce-manager/Microsoft.ContainerInstance/stable/2022-09-01/examples/CapabilitiesList.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,39 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"location": "westus", | ||
"api-version": "2022-09-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"resourceType": "containerGroups", | ||
"osType": "Linux", | ||
"location": "West US", | ||
"ipAddressType": "Public", | ||
"gpu": "K80", | ||
"capabilities": { | ||
"maxMemoryInGB": 14, | ||
"maxCpu": 4, | ||
"maxGpuCount": 4 | ||
} | ||
}, | ||
{ | ||
"resourceType": "containerGroups", | ||
"osType": "Windows", | ||
"location": "West US", | ||
"ipAddressType": "Public", | ||
"gpu": "None", | ||
"capabilities": { | ||
"maxMemoryInGB": 14, | ||
"maxCpu": 4, | ||
"maxGpuCount": 0 | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
...ource-manager/Microsoft.ContainerInstance/stable/2022-09-01/examples/ContainerAttach.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,17 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2022-09-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1", | ||
"containerName": "container1" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"webSocketUri": "wss://web-socket-uri", | ||
"password": "password" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
...esource-manager/Microsoft.ContainerInstance/stable/2022-09-01/examples/ContainerExec.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,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2022-09-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1", | ||
"containerName": "container1", | ||
"containerExecRequest": { | ||
"command": "/bin/bash", | ||
"terminalSize": { | ||
"rows": 12, | ||
"cols": 12 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"webSocketUri": "wss://web-socket-uri", | ||
"password": "password" | ||
} | ||
} | ||
} | ||
} |
192 changes: 192 additions & 0 deletions
192
...soft.ContainerInstance/stable/2022-09-01/examples/ContainerGroupEncryptionProperties.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,192 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2022-09-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1", | ||
"zones": [ | ||
"1" | ||
], | ||
"containerGroup": { | ||
"location": "eastus2", | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": {} | ||
} | ||
}, | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"command": [], | ||
"environmentVariables": [], | ||
"image": "nginx", | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 1.5 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ports": [ | ||
{ | ||
"protocol": "TCP", | ||
"port": 80 | ||
} | ||
], | ||
"type": "Public" | ||
}, | ||
"osType": "Linux", | ||
"encryptionProperties": { | ||
"vaultBaseUrl": "https://testkeyvault.vault.azure.net", | ||
"keyName": "test-key", | ||
"keyVersion": "<key version>", | ||
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity" | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"sku": "Standard", | ||
"encryptionProperties": { | ||
"vaultBaseUrl": "https://testkeyvault.vault.azure.net/", | ||
"keyName": "test-key", | ||
"keyVersion": "<key version>", | ||
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity" | ||
}, | ||
"provisioningState": "Pending", | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"image": "nginx", | ||
"command": [], | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"environmentVariables": [], | ||
"resources": { | ||
"requests": { | ||
"memoryInGB": 1.5, | ||
"cpu": 1.0 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"initContainers": [], | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ports": [ | ||
{ | ||
"protocol": "TCP", | ||
"port": 80 | ||
} | ||
], | ||
"type": "Public" | ||
}, | ||
"osType": "Linux", | ||
"instanceView": { | ||
"events": [], | ||
"state": "Pending" | ||
} | ||
}, | ||
"identity": { | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": { | ||
"principalId": "<principal id>", | ||
"clientId": "<client id>" | ||
} | ||
}, | ||
"tenantId": "<tenant id>", | ||
"type": "UserAssigned" | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/test-container-encryption", | ||
"name": "test-container-encryption", | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"location": "eastus2" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"sku": "Standard", | ||
"encryptionProperties": { | ||
"vaultBaseUrl": "https://testkeyvault.vault.azure.net/", | ||
"keyName": "test-key", | ||
"keyVersion": "key version", | ||
"identity": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity" | ||
}, | ||
"provisioningState": "Running", | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"image": "nginx", | ||
"command": [], | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"environmentVariables": [], | ||
"resources": { | ||
"requests": { | ||
"memoryInGB": 1.5, | ||
"cpu": 1.0 | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"initContainers": [], | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ports": [ | ||
{ | ||
"protocol": "TCP", | ||
"port": 80 | ||
} | ||
], | ||
"type": "Public" | ||
}, | ||
"osType": "Linux", | ||
"instanceView": { | ||
"events": [], | ||
"state": "Pending" | ||
} | ||
}, | ||
"identity": { | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/container-group-identity": { | ||
"principalId": "<principal id>", | ||
"clientId": "<client id>" | ||
} | ||
}, | ||
"tenantId": "<tenant id>", | ||
"type": "UserAssigned" | ||
}, | ||
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/test-container-encryption", | ||
"name": "test-container-encryption", | ||
"type": "Microsoft.ContainerInstance/containerGroups", | ||
"location": "eastus2" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.