Show

Lists the specified value of the secret resource.

Lists the decrypted value of the specified named value of the secret resource. This is a privileged operation.

Request

Method Request URI
POST /Resources/Secrets/{secretResourceName}/values/{secretValueResourceName}/list_value?api-version=6.4-preview

Parameters

Name Type Required Location
secretResourceName string Yes Path
secretValueResourceName string Yes Path
api-version string Yes Query

secretResourceName

Type: string
Required: Yes

The name of the secret resource.


secretValueResourceName

Type: string
Required: Yes

The name of the secret resource value which is typically the version identifier for the value.


api-version

Type: string
Required: Yes
Default: 6.4-preview

The version of the API. This parameter is required and its value must be '6.4-preview'.

Responses

HTTP Status Code Description Response Schema
200 (OK) OK
SecretValue
All other status codes Error
FabricError

Examples

ListMeshSecretValue

This example shows how to get the unencrypted value of the secret. If the specified named value resource exists, its unencrypted value is returned along with status code 200. If the specified named value does not exist, an error is returned with an appropriate status code.

Request

POST http://localhost:19080/Resources/Secrets/dbConnectionString/values/v1/list_value?api-version=6.4-preview

200 Response

Body
{
  "value": "mongodb://contoso123:0Fc3IolnL12312asdfawejunASDF@asdfYXX2t8a97kghVcUzcDv98hawelufhawefafnoQRGwNj2nMPL1Y9qsIr9Srdw==@contoso123.documents.azure.com:10255/mydatabase?ssl=true"
}