scope_maps
Creates, updates, deletes, gets or lists a scope_maps
resource.
Overview
Name | scope_maps |
Type | Resource |
Id | azure.container_registry.scope_maps |
Fields
- vw_scope_maps
- scope_maps
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
actions | text | field from the properties object |
creation_date | text | field from the properties object |
provisioning_state | text | field from the properties object |
registryName | text | field from the properties object |
resourceGroupName | text | field from the properties object |
scopeMapName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The properties of a scope map. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | registryName, resourceGroupName, scopeMapName, subscriptionId | Gets the properties of the specified scope map. |
list | SELECT | registryName, resourceGroupName, subscriptionId | Lists all the scope maps for the specified container registry. |
create | INSERT | registryName, resourceGroupName, scopeMapName, subscriptionId | Creates a scope map for a container registry with the specified parameters. |
delete | DELETE | registryName, resourceGroupName, scopeMapName, subscriptionId | Deletes a scope map from a container registry. |
update | UPDATE | registryName, resourceGroupName, scopeMapName, subscriptionId | Updates a scope map with the specified parameters. |
SELECT
examples
Lists all the scope maps for the specified container registry.
- vw_scope_maps
- scope_maps
SELECT
description,
actions,
creation_date,
provisioning_state,
registryName,
resourceGroupName,
scopeMapName,
subscriptionId,
type
FROM azure.container_registry.vw_scope_maps
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.container_registry.scope_maps
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new scope_maps
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_registry.scope_maps (
registryName,
resourceGroupName,
scopeMapName,
subscriptionId,
properties
)
SELECT
'{{ registryName }}',
'{{ resourceGroupName }}',
'{{ scopeMapName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: description
value: string
- name: type
value: string
- name: creationDate
value: string
- name: provisioningState
value: string
- name: actions
value:
- string
UPDATE
example
Updates a scope_maps
resource.
/*+ update */
UPDATE azure.container_registry.scope_maps
SET
properties = '{{ properties }}'
WHERE
registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scopeMapName = '{{ scopeMapName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified scope_maps
resource.
/*+ delete */
DELETE FROM azure.container_registry.scope_maps
WHERE registryName = '{{ registryName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND scopeMapName = '{{ scopeMapName }}'
AND subscriptionId = '{{ subscriptionId }}';