replicas
Creates, updates, deletes, gets or lists a replicas
resource.
Overview
Name | replicas |
Type | Resource |
Id | azure.app_configuration.replicas |
Fields
- vw_replicas
- replicas
Name | Datatype | Description |
---|---|---|
id | text | The resource ID. |
name | text | The name of the replica. |
configStoreName | text | field from the properties object |
endpoint | text | field from the properties object |
location | text | The location of the replica. |
provisioning_state | text | field from the properties object |
replicaName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
system_data | text | field from the properties object |
type | text | The type of the resource. |
Name | Datatype | Description |
---|---|---|
id | string | The resource ID. |
name | string | The name of the replica. |
location | string | The location of the replica. |
properties | object | All replica properties. |
systemData | object | Metadata pertaining to creation and last modification of the resource. |
type | string | The type of the resource. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configStoreName, replicaName, resourceGroupName, subscriptionId | Gets the properties of the specified replica. |
list_by_configuration_store | SELECT | configStoreName, resourceGroupName, subscriptionId | Lists the replicas for a given configuration store. |
create | INSERT | configStoreName, replicaName, resourceGroupName, subscriptionId | Creates a replica with the specified parameters. |
delete | DELETE | configStoreName, replicaName, resourceGroupName, subscriptionId | Deletes a replica. |
SELECT
examples
Lists the replicas for a given configuration store.
- vw_replicas
- replicas
SELECT
id,
name,
configStoreName,
endpoint,
location,
provisioning_state,
replicaName,
resourceGroupName,
subscriptionId,
system_data,
type
FROM azure.app_configuration.vw_replicas
WHERE configStoreName = '{{ configStoreName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
id,
name,
location,
properties,
systemData,
type
FROM azure.app_configuration.replicas
WHERE configStoreName = '{{ configStoreName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new replicas
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.app_configuration.replicas (
configStoreName,
replicaName,
resourceGroupName,
subscriptionId,
location
)
SELECT
'{{ configStoreName }}',
'{{ replicaName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: systemData
value:
- name: createdBy
value: string
- name: createdByType
value: string
- name: createdAt
value: string
- name: lastModifiedBy
value: string
- name: lastModifiedByType
value: string
- name: lastModifiedAt
value: string
- name: properties
value:
- name: endpoint
value: string
- name: provisioningState
value: string
DELETE
example
Deletes the specified replicas
resource.
/*+ delete */
DELETE FROM azure.app_configuration.replicas
WHERE configStoreName = '{{ configStoreName }}'
AND replicaName = '{{ replicaName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';