secret_values
Creates, updates, deletes, gets or lists a secret_values
resource.
Overview
Name | secret_values |
Type | Resource |
Id | azure.service_fabric_mesh.secret_values |
Fields
- vw_secret_values
- secret_values
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
secretResourceName | text | field from the properties object |
secretValueResourceName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
value | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | This type describes properties of a secret value resource. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, secretResourceName, secretValueResourceName, subscriptionId | Get the information about the specified named secret value resources. The information does not include the actual value of the secret. |
list | SELECT | resourceGroupName, secretResourceName, subscriptionId | Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values. |
create | INSERT | resourceGroupName, secretResourceName, secretValueResourceName, subscriptionId, data__properties | Creates a new value of the specified secret resource. The name of the value is typically the version identifier. Once created the value cannot be changed. |
delete | DELETE | resourceGroupName, secretResourceName, secretValueResourceName, subscriptionId | Deletes the secret value resource identified by the name. The name of the resource is typically the version associated with that value. Deletion will fail if the specified value is in use. |
SELECT
examples
Gets information about all secret value resources of the specified secret resource. The information includes the names of the secret value resources, but not the actual values.
- vw_secret_values
- secret_values
SELECT
location,
provisioning_state,
resourceGroupName,
secretResourceName,
secretValueResourceName,
subscriptionId,
tags,
value
FROM azure.service_fabric_mesh.vw_secret_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND secretResourceName = '{{ secretResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
location,
properties,
tags
FROM azure.service_fabric_mesh.secret_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND secretResourceName = '{{ secretResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new secret_values
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_fabric_mesh.secret_values (
resourceGroupName,
secretResourceName,
secretValueResourceName,
subscriptionId,
data__properties,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ secretResourceName }}',
'{{ secretValueResourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: provisioningState
value: string
- name: value
value: string
DELETE
example
Deletes the specified secret_values
resource.
/*+ delete */
DELETE FROM azure.service_fabric_mesh.secret_values
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND secretResourceName = '{{ secretResourceName }}'
AND secretValueResourceName = '{{ secretValueResourceName }}'
AND subscriptionId = '{{ subscriptionId }}';