Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new properties for ContainerApp #17483

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@
"memory": {
"description": "Required memory, e.g. \"250Mb\"",
"type": "string"
},
"ephemeralStorage": {
"description": "Ephemeral Storage, e.g. \"1Gi\"",
"type": "string",
"readOnly": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,52 @@
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/containerApps/{name}/listSecrets": {
"post": {
"tags": [
"ContainerApps"
],
"summary": "List secrets for a container app",
"operationId": "ContainerApps_ListSecrets",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"name": "name",
"in": "path",
"description": "Name of the Container App.",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/SecretsCollection"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List Container Apps Secrets": {
"$ref": "./examples/ContainerApps_ListSecrets.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -468,6 +514,14 @@
"template": {
"$ref": "./CommonDefinitions.json#/definitions/Template",
"description": "Container App versioned application definition."
},
"outboundIPAddresses": {
"description": "Outbound IP Addresses for container app.",
"type": "array",
"items": {
"type": "string"
},
"readOnly": true
}
},
"x-ms-client-flatten": true
Expand Down Expand Up @@ -603,6 +657,42 @@
}
}
},
"SecretsCollection": {
"description": "Container App Secrets Collection ARM resource.",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "Collection of resources.",
"type": "array",
"items": {
"$ref": "#/definitions/ContainerAppSecret"
},
"x-ms-identifiers": [
"name"
]
}
}
},
"ContainerAppSecret": {
"description": "Container App Secret.",
"type": "object",
"properties": {
"name": {
"description": "Secret Name.",
"type": "string",
"readOnly": true
},
"value": {
leni-msft marked this conversation as resolved.
Show resolved Hide resolved
"description": "Secret Value.",
"type": "string",
"x-ms-secret": true,
"readOnly": true
}
}
},
"TrafficWeight": {
"description": "Traffic weight assigned to a revision",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"subscriptionId": "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
"resourceGroupName": "rg",
"name": "testcontainerApp0",
"api-version": "2022-01-01-preview"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "secret1",
"value": "myvalue1"
},
{
"name": "secret2",
"value": "myvalue2"
}
]
}
}
}
}