-
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.
Container Instance October Swagger (#4058)
* Adding 2018-10-01 Swagger * adding MSI swagger endpoints * Moving MSI Identity object to correct properties * changing identity casing for it to work * suppress UniqueResourcePaths due to false positive
- Loading branch information
1 parent
d81ed49
commit da7505b
Showing
18 changed files
with
2,508 additions
and
30 deletions.
There are no files selected for viewing
1,560 changes: 1,560 additions & 0 deletions
1,560
...nce/resource-manager/Microsoft.ContainerInstance/stable/2018-10-01/containerInstance.json
Large diffs are not rendered by default.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...esource-manager/Microsoft.ContainerInstance/stable/2018-10-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": "2018-10-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1", | ||
"containerName": "container1", | ||
"containerExecRequest": { | ||
"command": "/bin/bash", | ||
"terminalSize": { | ||
"row": 12, | ||
"column": 12 | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"webSocketUri": "wss://web-socket-uri", | ||
"password": "password" | ||
} | ||
} | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
...e-manager/Microsoft.ContainerInstance/stable/2018-10-01/examples/ContainerGroupUsage.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,25 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"location": "westcentralus", | ||
"api-version": "2018-10-01" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"unit": "Count", | ||
"currentValue": 1, | ||
"limit": 2000, | ||
"name": { | ||
"value": "ContainerGroups", | ||
"localizedValue": "Container Groups" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
275 changes: 275 additions & 0 deletions
275
...Microsoft.ContainerInstance/stable/2018-10-01/examples/ContainerGroupsCreateOrUpdate.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,275 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "subid", | ||
"api-version": "2018-10-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1", | ||
"containerGroup": { | ||
"id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", | ||
"location": "west us", | ||
"name": "demo1", | ||
"identity": { | ||
"type": "SystemAssigned, UserAssigned", | ||
"userAssignedIdentities": { | ||
"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity-name": {} | ||
} | ||
}, | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"command": [], | ||
"environmentVariables": [], | ||
"image": "nginx", | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 1.5 | ||
} | ||
}, | ||
"volumeMounts": [ | ||
{ | ||
"name": "volume1", | ||
"mountPath": "/mnt/volume1", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume2", | ||
"mountPath": "/mnt/volume2", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume3", | ||
"mountPath": "/mnt/volume3", | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"diagnostics": { | ||
"logAnalytics": { | ||
"workspaceId": "workspaceid", | ||
"workspaceKey": "workspaceKey", | ||
"logType": "ContainerInsights", | ||
"metadata": { | ||
"test-key": "test-metadata-value" | ||
} | ||
} | ||
}, | ||
"networkProfile": { | ||
"id": "test-network-profile-id" | ||
}, | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ports": [ | ||
{ | ||
"protocol": "TCP", | ||
"port": 80 | ||
} | ||
], | ||
"type": "Public", | ||
"dnsNameLabel": "dnsnamelabel1" | ||
}, | ||
"osType": "Linux", | ||
"volumes": [ | ||
{ | ||
"name": "volume1", | ||
"azureFile": { | ||
"shareName": "shareName", | ||
"storageAccountName": "accountName", | ||
"storageAccountKey": "accountKey" | ||
} | ||
}, | ||
{ | ||
"name": "volume2", | ||
"emptyDir": {} | ||
}, | ||
{ | ||
"name": "volume3", | ||
"secret": | ||
{ | ||
"secretKey1": "SecretValue1InBase64", | ||
"secretKey2": "SecretValue2InBase64" | ||
} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.ContainerInstance/containerGroups" | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", | ||
"location": "WestUs", | ||
"name": "demo1", | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"command": [], | ||
"environmentVariables": [], | ||
"image": "nginx", | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 1.5 | ||
} | ||
}, | ||
"volumeMounts": [ | ||
{ | ||
"name": "volume1", | ||
"mountPath": "/mnt/volume1", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume2", | ||
"mountPath": "/mnt/volume2", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume3", | ||
"mountPath": "/mnt/volume3", | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"diagnostics": { | ||
"logAnalytics": { | ||
"workspaceId": "workspaceid", | ||
"workspaceKey": "" | ||
} | ||
}, | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ip": "10.0.0.1", | ||
"ports": [ | ||
{ | ||
"port": 80, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"type": "Public", | ||
"dnsNameLabel": "dnsnamelabel1", | ||
"fqdn": "dnsnamelabel1.azure-container.io" | ||
}, | ||
"osType": "Linux", | ||
"provisioningState": "Succeeded", | ||
"volumes": [ | ||
{ | ||
"name": "volume1", | ||
"azureFile": { | ||
"shareName": "shareName", | ||
"storageAccountName": "accountName" | ||
} | ||
}, | ||
{ | ||
"name": "volume2", | ||
"emptyDir": {} | ||
}, | ||
{ | ||
"name": "volume3", | ||
"secret": {} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.ContainerInstance/containerGroups" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"id": "/subscriptions/subid/resourceGroups/demo/providers/Microsoft.ContainerInstance/containerGroups/demo1", | ||
"location": "WestUs", | ||
"name": "demo1", | ||
"properties": { | ||
"containers": [ | ||
{ | ||
"name": "demo1", | ||
"properties": { | ||
"command": [], | ||
"environmentVariables": [], | ||
"image": "nginx", | ||
"ports": [ | ||
{ | ||
"port": 80 | ||
} | ||
], | ||
"resources": { | ||
"requests": { | ||
"cpu": 1, | ||
"memoryInGB": 1.5 | ||
} | ||
}, | ||
"volumeMounts": [ | ||
{ | ||
"name": "volume1", | ||
"mountPath": "/mnt/volume1", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume2", | ||
"mountPath": "/mnt/volume2", | ||
"readOnly": false | ||
}, | ||
{ | ||
"name": "volume3", | ||
"mountPath": "/mnt/volume3", | ||
"readOnly": true | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"imageRegistryCredentials": [], | ||
"ipAddress": { | ||
"ip": "10.0.0.1", | ||
"ports": [ | ||
{ | ||
"port": 80, | ||
"protocol": "TCP" | ||
} | ||
], | ||
"type": "Public", | ||
"dnsNameLabel": "dnsnamelabel1", | ||
"fqdn": "dnsnamelabel1.azure-container.io" | ||
}, | ||
"osType": "Linux", | ||
"provisioningState": "Succeeded", | ||
"volumes": [ | ||
{ | ||
"name": "volume1", | ||
"azureFile": { | ||
"shareName": "shareName", | ||
"storageAccountName": "accountName" | ||
} | ||
}, | ||
{ | ||
"name": "volume2", | ||
"emptyDir": {} | ||
}, | ||
{ | ||
"name": "volume3", | ||
"secret":{} | ||
} | ||
] | ||
}, | ||
"type": "Microsoft.ContainerInstance/containerGroups" | ||
} | ||
} | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
...manager/Microsoft.ContainerInstance/stable/2018-10-01/examples/ContainerGroupsDelete.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": "subid", | ||
"api-version": "2018-10-01", | ||
"resourceGroupName": "demo", | ||
"containerGroupName": "demo1" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
Oops, something went wrong.