Skip to content

Commit

Permalink
Add List Secrets for Dapr Components (Azure#18436)
Browse files Browse the repository at this point in the history
  • Loading branch information
vusause authored and FredericHeem committed May 16, 2022
1 parent ecb44fa commit 3d8c703
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,59 @@
},
"x-ms-long-running-operation": false
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/daprComponents/{name}/listSecrets": {
"post": {
"tags": [
"DaprComponents"
],
"summary": "List secrets for a dapr component",
"operationId": "DaprComponents_ListSecrets",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"name": "environmentName",
"in": "path",
"description": "Name of the Managed Environment.",
"required": true,
"type": "string"
},
{
"name": "name",
"in": "path",
"description": "Name of the Dapr Component.",
"required": true,
"type": "string"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/DaprSecretsCollection"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"List Container Apps Secrets": {
"$ref": "./examples/DaprComponents_ListSecrets.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -333,6 +386,25 @@
"type": "string"
}
}
},
"DaprSecretsCollection": {
"description": "Dapr component Secrets Collection ARM resource.",
"required": [
"value"
],
"type": "object",
"properties": {
"value": {
"description": "Collection of secrets used by a Dapr component",
"type": "array",
"items": {
"$ref": "./CommonDefinitions.json#/definitions/Secret"
},
"x-ms-identifiers": [
"name"
]
}
}
}
},
"securityDefinitions": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"subscriptionId": "8efdecc5-919e-44eb-b179-915dca89ebf9",
"resourceGroupName": "examplerg",
"environmentName": "myenvironment",
"name": "reddog",
"api-version": "2022-03-01"
},
"responses": {
"200": {
"headers": {},
"body": {
"value": [
{
"name": "secret1"
},
{
"name": "secret2"
}
]
}
}
}
}

0 comments on commit 3d8c703

Please sign in to comment.