Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -88,6 +88,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 @@ -309,6 +309,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/ListContainerAppSecrets.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -407,6 +453,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 @@ -551,6 +605,38 @@
"type": "boolean"
}
}
},
"SecretsCollection": {
"description": "Container App Secrets Collection ARM resource.",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "Collection of resources.",
"type": "array",
"items": {
"$ref": "#/definitions/ContainerAppSecret"
}
}
}
},
"ContainerAppSecret": {
"description": "Container App Secret.",
"type": "object",
"properties": {
"name": {
"description": "Secret Name.",
"type": "string",
"readOnly": true
},
"value": {
"description": "Secret Value.",
"type": "string",
"readOnly": true
}
}
}
},
"securityDefinitions": {
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": "2021-03-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "secret1",
"value": "value1"
},
{
"name": "secret2",
"value": "value2"
}
]
}
}
}
}
Copy link
Contributor

@ruslany ruslany Jan 26, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This maybe what is causing prettier failures #Closed

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed