Skip to content

Commit

Permalink
Add new properties for ContainerApp (#17483)
Browse files Browse the repository at this point in the history
* add ephemeral storage

* add outbound ip

* add listsecrets

* fix CI

* fix example

* fix

* add identifier

* fix

* add example

* mars as secret
  • Loading branch information
Juliehzl authored Feb 7, 2022
1 parent e166d26 commit e6db32c
Show file tree
Hide file tree
Showing 3 changed files with 120 additions and 0 deletions.
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": {
"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"
}
]
}
}
}
}

0 comments on commit e6db32c

Please sign in to comment.