Container Apps Revision Replicas - Get Replica
Get a replica for a Container App Revision.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{containerAppName}/revisions/{revisionName}/replicas/{replicaName}?api-version=2024-03-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
container
|
path | True |
string |
Name of the Container App. |
replica
|
path | True |
string |
Name of the Container App Revision Replica. |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
revision
|
path | True |
string |
Name of the Container App Revision. |
subscription
|
path | True |
string |
The ID of the target subscription. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Common error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get Container App's revision replica
Sample request
Sample response
{
"id": "/subscriptions/651f8027-33e8-4ec4-97b4-f6e9f3dc8744/resourceGroups/workerapps-rg-xj/providers/Microsoft.App/containerApps/myapp/revisions/myapp--0wlqy09/replicas/myapp--0wlqy09-5d9774cff-5wnd8",
"name": "myapp--0wlqy09-5d9774cff-5wnd8",
"type": "Microsoft.Web/containerapps/revisions/replicas",
"properties": {
"createdTime": "2022-01-25T19:42:45Z",
"runningState": "Running",
"runningStateDetails": "testDetail",
"containers": [
{
"name": "hello92",
"containerId": "containerd://6bac7bb3afed1c704b5fe563c34c0ecf59ac30c766bb73488f7fa552dc42ee54",
"ready": true,
"started": true,
"restartCount": 0,
"runningState": "Running",
"runningStateDetails": "testDetail",
"logStreamEndpoint": "testLogStreamEndpoint",
"execEndpoint": "testExecEndpoint"
}
],
"initContainers": []
}
}
Definitions
Name | Description |
---|---|
Container |
Current running state of the container |
Container |
Current running state of the replica |
created |
The type of identity that created the resource. |
Default |
App Service error response. |
Details |
Details or the error |
Error |
Error model. |
Replica |
Container App Revision Replica. |
Replica |
Container object under Container App Revision Replica. |
system |
Metadata pertaining to creation and last modification of the resource. |
ContainerAppContainerRunningState
Current running state of the container
Name | Type | Description |
---|---|---|
Running |
string |
|
Terminated |
string |
|
Waiting |
string |
ContainerAppReplicaRunningState
Current running state of the replica
Name | Type | Description |
---|---|---|
NotRunning |
string |
|
Running |
string |
|
Unknown |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
DefaultErrorResponse
App Service error response.
Name | Type | Description |
---|---|---|
error |
Error model. |
Details
Details or the error
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Error
Error model.
Name | Type | Description |
---|---|---|
code |
string |
Standardized string to programmatically identify the error. |
details |
Details[] |
Details or the error |
innererror |
string |
More information to debug error. |
message |
string |
Detailed error description and debugging information. |
target |
string |
Detailed error description and debugging information. |
Replica
Container App Revision Replica.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
The name of the resource |
properties.containers |
The containers collection under a replica. |
|
properties.createdTime |
string |
Timestamp describing when the pod was created by controller |
properties.initContainers |
The init containers collection under a replica. |
|
properties.runningState |
Current running state of the replica |
|
properties.runningStateDetails |
string |
The details of replica current running state |
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
ReplicaContainer
Container object under Container App Revision Replica.
Name | Type | Description |
---|---|---|
containerId |
string |
The Id of the Container |
execEndpoint |
string |
Container exec endpoint |
logStreamEndpoint |
string |
Log Stream endpoint |
name |
string |
The Name of the Container |
ready |
boolean |
The container ready status |
restartCount |
integer |
The container restart count |
runningState |
Current running state of the container |
|
runningStateDetails |
string |
The details of container current running state |
started |
boolean |
The container start status |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |