Comprehensive guide to interacting with Azure Container Services
This section details the RESTful APIs available for managing your Azure container resources. You can use these APIs to programmatically create, configure, and manage your container deployments.
APIs for managing individual container instances.
Retrieves the details of a specific container group.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
| containerGroupName | string | The name of the container group. | Yes |
| Status Code | Description | Schema |
|---|---|---|
| 200 OK | Successfully retrieved container group details. | ContainerGroup (JSON) |
| 404 Not Found | Container group not found. | ErrorResponse (JSON) |
Creates or updates a container group.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
Defines the properties of the container group.
{
"location": "eastus",
"name": "mycontainergroup",
"properties": {
"containers": [
{
"name": "mycontainer",
"properties": {
"image": "mcr.microsoft.com/azuredocs/aci-helloworld",
"ports": [
{
"port": 80,
"protocol": "TCP"
}
],
"resources": {
"requests": {
"cpu": 1.0,
"memoryInGB": 1.5
}
}
}
}
],
"osType": "Linux",
"ipAddress": {
"type": "Public",
"ports": [
{
"port": 80,
"protocol": "TCP"
}
]
}
}
}
| Status Code | Description | Schema |
|---|---|---|
| 200 OK | Container group created or updated successfully. | ContainerGroup (JSON) |
| 201 Created | Container group resource created. | ContainerGroup (JSON) |
| 400 Bad Request | Invalid request payload. | ErrorResponse (JSON) |
Deletes a container group.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
| containerGroupName | string | The name of the container group. | Yes |
| Status Code | Description | Schema |
|---|---|---|
| 204 No Content | Container group deleted successfully. | - |
| 404 Not Found | Container group not found. | ErrorResponse (JSON) |
APIs for managing Azure Container Registry instances.
Retrieves the details of a specific container registry.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
| registryName | string | The name of the container registry. | Yes |
| Status Code | Description | Schema |
|---|---|---|
| 200 OK | Successfully retrieved container registry details. | Registry (JSON) |
| 404 Not Found | Container registry not found. | ErrorResponse (JSON) |
Creates or updates a container registry.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
Defines the properties of the container registry.
{
"location": "eastus",
"name": "mycontainerregistry",
"sku": {
"name": "Basic"
},
"properties": {
"adminUserEnabled": false
}
}
| Status Code | Description | Schema |
|---|---|---|
| 200 OK | Container registry created or updated successfully. | Registry (JSON) |
| 201 Created | Container registry resource created. | Registry (JSON) |
| 400 Bad Request | Invalid request payload. | ErrorResponse (JSON) |
APIs for managing Azure Kubernetes Service (AKS) clusters.
Retrieves the details of a specific AKS managed cluster.
| Name | Type | Description | Required |
|---|---|---|---|
| subscriptionId | string | The Azure subscription ID. | Yes |
| resourceGroupName | string | The name of the resource group. | Yes |
| resourceName | string | The name of the AKS managed cluster. | Yes |
| Status Code | Description | Schema |
|---|---|---|
| 200 OK | Successfully retrieved AKS cluster details. | ManagedCluster (JSON) |
| 404 Not Found | AKS cluster not found. | ErrorResponse (JSON) |