Skip to content

Commit

Permalink
Added Azure Container Instance API Version 2024-10-01-preview (#30569)
Browse files Browse the repository at this point in the history
* Copy files from stable/2023-05-01

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to preview/2024-10-01-preview

Updated the API version from stable/2023-05-01 to preview/2024-10-01-preview.

* Added tag for 2024-10-01-preview in readme file

* added 2024-10-01-preview

* remove additionalProperties

* Copy files from stable/2023-05-01

Copied the files in a separate commit.
This allows reviewers to easily diff subsequent changes against the previous spec.

* Update version to preview/2024-10-01-preview

Updated the API version from stable/2023-05-01 to preview/2024-10-01-preview.

* Added tag for 2024-10-01-preview in readme file

* added 2024-10-01-preview

* remove additionalProperties

* resolved PR comment

* update from secrets to secretReferences

* suppress additionalProperties

* delete file

* update to 'arm-id' format

---------

Co-authored-by: jameszlim <limcheolhyun930421@gmail.com>
  • Loading branch information
MicroJamesLim and jamezlim committed Sep 30, 2024
1 parent 1e028c5 commit 1b9c5da
Show file tree
Hide file tree
Showing 26 changed files with 4,954 additions and 1 deletion.

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": "2024-10-01-preview"
},
"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": "2024-10-01-preview"
},
"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": "2024-10-01-preview",
"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": "2024-10-01-preview",
"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,182 @@
{
"parameters": {
"subscriptionId": "subid",
"api-version": "2024-10-01-preview",
"resourceGroupName": "demo",
"containerGroupName": "demo1",
"zones": [
"1"
],
"containerGroup": {
"location": "westeurope",
"properties": {
"containers": [
{
"name": "accdemo",
"properties": {
"command": [],
"environmentVariables": [],
"image": "confiimage",
"ports": [
{
"port": 8000
}
],
"resources": {
"requests": {
"cpu": 1,
"memoryInGB": 1.5
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"imageRegistryCredentials": [],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"osType": "Linux",
"sku": "Confidential",
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
}
}
},
"responses": {
"200": {
"body": {
"properties": {
"sku": "Confidential",
"provisioningState": "Succeeded",
"containers": [
{
"name": "accdemo",
"properties": {
"image": "confiimage",
"command": [],
"ports": [
{
"port": 8000
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1.0
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"initContainers": [],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Running"
},
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "westeurope"
}
},
"201": {
"body": {
"properties": {
"sku": "Confidential",
"provisioningState": "Succeeded",
"containers": [
{
"name": "accdemo",
"properties": {
"image": "confiimage",
"command": [],
"ports": [
{
"port": 8000
}
],
"environmentVariables": [],
"resources": {
"requests": {
"memoryInGB": 1.5,
"cpu": 1.0
}
},
"securityContext": {
"privileged": false,
"capabilities": {
"add": [
"CAP_NET_ADMIN"
]
}
}
}
}
],
"ipAddress": {
"ports": [
{
"protocol": "TCP",
"port": 8000
}
],
"type": "Public"
},
"initContainers": [],
"imageRegistryCredentials": [],
"osType": "Linux",
"instanceView": {
"events": [],
"state": "Running"
},
"confidentialComputeProperties": {
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
}
},
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
"name": "demo1",
"type": "Microsoft.ContainerInstance/containerGroups",
"location": "westeurope"
}
}
}
}
Loading

0 comments on commit 1b9c5da

Please sign in to comment.