Skip to content

Commit 2b6c728

Browse files
Microsoft.ContainerInstance: Added API version 2024-05-01-preview (#28964)
* 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-05-01-preview Updated the API version from stable/2023-05-01 to preview/2024-05-01-preview. * Added tag for 2024-05-01-preview in readme file * Added ContainerGroupProfile, StandbyPoolProfile, isCreatedFromStandbyPool to Container Group Properties and ConfigMap to ContainerProperties specs and modified examples * Corrected code style issues using prettier * Fixed code styling issues using prettier * Corrected definition types * Added isCreatedFromStandbyPool to container group properties in examples * Corrected config map property definition in example * Added arm resource id identifier for container group profile and standby pool profile * Added format variable for container group profile and standby pool profile reference id * Added 200 http status response in standby pool scenario example * Modified the Container Group Create with standby pools example * Corrected format * Created suppressions.yaml * Update containerInstance.json to remove osType,image and resources as required properties * Update suppressions.yaml * Update suppressions.yaml * Delete specification/containerinstance/resource-manager/suppressions.yaml * Added suppression for AvoidAdditionalProperties in readme.md * Update suppression in readme.md * Update readme.md
1 parent 0ed912f commit 2b6c728

26 files changed

+4663
-1
lines changed

specification/containerinstance/resource-manager/Microsoft.ContainerInstance/preview/2024-05-01-preview/containerInstance.json

Lines changed: 2609 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"location": "westcentralus",
5+
"api-version": "2024-05-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"osType": "Linux",
13+
"image": "ubuntu:16.04"
14+
},
15+
{
16+
"osType": "Linux",
17+
"image": "alpine:3.6"
18+
},
19+
{
20+
"osType": "Windows",
21+
"image": "microsoft/nanoserver:10.0.14393.2485"
22+
}
23+
]
24+
}
25+
}
26+
}
27+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"location": "westus",
5+
"api-version": "2024-05-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"resourceType": "containerGroups",
13+
"osType": "Linux",
14+
"location": "West US",
15+
"ipAddressType": "Public",
16+
"gpu": "K80",
17+
"capabilities": {
18+
"maxMemoryInGB": 14,
19+
"maxCpu": 4,
20+
"maxGpuCount": 4
21+
}
22+
},
23+
{
24+
"resourceType": "containerGroups",
25+
"osType": "Windows",
26+
"location": "West US",
27+
"ipAddressType": "Public",
28+
"gpu": "None",
29+
"capabilities": {
30+
"maxMemoryInGB": 14,
31+
"maxCpu": 4,
32+
"maxGpuCount": 0
33+
}
34+
}
35+
]
36+
}
37+
}
38+
}
39+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"api-version": "2024-05-01-preview",
5+
"resourceGroupName": "demo",
6+
"containerGroupName": "demo1",
7+
"containerName": "container1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"webSocketUri": "wss://web-socket-uri",
13+
"password": "password"
14+
}
15+
}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"api-version": "2024-05-01-preview",
5+
"resourceGroupName": "demo",
6+
"containerGroupName": "demo1",
7+
"containerName": "container1",
8+
"containerExecRequest": {
9+
"command": "/bin/bash",
10+
"terminalSize": {
11+
"rows": 12,
12+
"cols": 12
13+
}
14+
}
15+
},
16+
"responses": {
17+
"200": {
18+
"body": {
19+
"webSocketUri": "wss://web-socket-uri",
20+
"password": "password"
21+
}
22+
}
23+
}
24+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
{
2+
"parameters": {
3+
"subscriptionId": "subid",
4+
"api-version": "2024-05-01-preview",
5+
"resourceGroupName": "demo",
6+
"containerGroupName": "demo1",
7+
"zones": [
8+
"1"
9+
],
10+
"containerGroup": {
11+
"location": "westeurope",
12+
"properties": {
13+
"containers": [
14+
{
15+
"name": "accdemo",
16+
"properties": {
17+
"command": [],
18+
"environmentVariables": [],
19+
"image": "confiimage",
20+
"ports": [
21+
{
22+
"port": 8000
23+
}
24+
],
25+
"resources": {
26+
"requests": {
27+
"cpu": 1,
28+
"memoryInGB": 1.5
29+
}
30+
},
31+
"securityContext": {
32+
"privileged": false,
33+
"capabilities": {
34+
"add": [
35+
"CAP_NET_ADMIN"
36+
]
37+
}
38+
}
39+
}
40+
}
41+
],
42+
"imageRegistryCredentials": [],
43+
"ipAddress": {
44+
"ports": [
45+
{
46+
"protocol": "TCP",
47+
"port": 8000
48+
}
49+
],
50+
"type": "Public"
51+
},
52+
"osType": "Linux",
53+
"sku": "Confidential",
54+
"confidentialComputeProperties": {
55+
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
56+
}
57+
}
58+
}
59+
},
60+
"responses": {
61+
"200": {
62+
"body": {
63+
"properties": {
64+
"sku": "Confidential",
65+
"isCreatedFromStandbyPool": false,
66+
"provisioningState": "Succeeded",
67+
"containers": [
68+
{
69+
"name": "accdemo",
70+
"properties": {
71+
"image": "confiimage",
72+
"command": [],
73+
"ports": [
74+
{
75+
"port": 8000
76+
}
77+
],
78+
"environmentVariables": [],
79+
"resources": {
80+
"requests": {
81+
"memoryInGB": 1.5,
82+
"cpu": 1.0
83+
}
84+
},
85+
"securityContext": {
86+
"privileged": false,
87+
"capabilities": {
88+
"add": [
89+
"CAP_NET_ADMIN"
90+
]
91+
}
92+
}
93+
}
94+
}
95+
],
96+
"ipAddress": {
97+
"ports": [
98+
{
99+
"protocol": "TCP",
100+
"port": 8000
101+
}
102+
],
103+
"type": "Public"
104+
},
105+
"initContainers": [],
106+
"imageRegistryCredentials": [],
107+
"osType": "Linux",
108+
"instanceView": {
109+
"events": [],
110+
"state": "Running"
111+
},
112+
"confidentialComputeProperties": {
113+
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
114+
}
115+
},
116+
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
117+
"name": "demo1",
118+
"type": "Microsoft.ContainerInstance/containerGroups",
119+
"location": "westeurope"
120+
}
121+
},
122+
"201": {
123+
"body": {
124+
"properties": {
125+
"sku": "Confidential",
126+
"isCreatedFromStandbyPool": false,
127+
"provisioningState": "Succeeded",
128+
"containers": [
129+
{
130+
"name": "accdemo",
131+
"properties": {
132+
"image": "confiimage",
133+
"command": [],
134+
"ports": [
135+
{
136+
"port": 8000
137+
}
138+
],
139+
"environmentVariables": [],
140+
"resources": {
141+
"requests": {
142+
"memoryInGB": 1.5,
143+
"cpu": 1.0
144+
}
145+
},
146+
"securityContext": {
147+
"privileged": false,
148+
"capabilities": {
149+
"add": [
150+
"CAP_NET_ADMIN"
151+
]
152+
}
153+
}
154+
}
155+
}
156+
],
157+
"ipAddress": {
158+
"ports": [
159+
{
160+
"protocol": "TCP",
161+
"port": 8000
162+
}
163+
],
164+
"type": "Public"
165+
},
166+
"initContainers": [],
167+
"imageRegistryCredentials": [],
168+
"osType": "Linux",
169+
"instanceView": {
170+
"events": [],
171+
"state": "Running"
172+
},
173+
"confidentialComputeProperties": {
174+
"ccePolicy": "eyJhbGxvd19hbGwiOiB0cnVlLCAiY29udGFpbmVycyI6IHsibGVuZ3RoIjogMCwgImVsZW1lbnRzIjogbnVsbH19"
175+
}
176+
},
177+
"id": "/subscriptions/00000000-0000-0000-0000-00000000/resourceGroups/test-rg/providers/Microsoft.ContainerInstance/containerGroups/demo1",
178+
"name": "demo1",
179+
"type": "Microsoft.ContainerInstance/containerGroups",
180+
"location": "westeurope"
181+
}
182+
}
183+
}
184+
}

0 commit comments

Comments
 (0)