Skip to content

Commit

Permalink
[Hub Generated] Review request for Microsoft.ContainerInstance to add…
Browse files Browse the repository at this point in the history
… 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
3 people authored and kayousef committed Dec 21, 2022
1 parent 09b75dd commit fca72d3
Show file tree
Hide file tree
Showing 22 changed files with 3,958 additions and 2 deletions.

Large diffs are not rendered by default.

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"
}
]
}
}
}
}
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
}
}
]
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit fca72d3

Please sign in to comment.