scope_assignments
Creates, updates, deletes, gets or lists a scope_assignments
resource.
Overview
Name | scope_assignments |
Type | Resource |
Id | azure.managed_network.scope_assignments |
Fields
- vw_scope_assignments
- scope_assignments
Name | Datatype | Description |
---|---|---|
assigned_managed_network | text | field from the properties object |
etag | text | field from the properties object |
provisioning_state | text | field from the properties object |
scope | text | field from the properties object |
scopeAssignmentName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of Managed Network |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | scope, scopeAssignmentName | Get the specified scope assignment. |
list | SELECT | scope | Get the specified scope assignment. |
create_or_update | INSERT | scope, scopeAssignmentName | Creates a scope assignment. |
delete | DELETE | scope, scopeAssignmentName | Deletes a scope assignment. |
SELECT
examples
Get the specified scope assignment.
- vw_scope_assignments
- scope_assignments
SELECT
assigned_managed_network,
etag,
provisioning_state,
scope,
scopeAssignmentName
FROM azure.managed_network.vw_scope_assignments
WHERE scope = '{{ scope }}';
SELECT
properties
FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}';
INSERT
example
Use the following StackQL query and manifest file to create a new scope_assignments
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network.scope_assignments (
scope,
scopeAssignmentName,
properties
)
SELECT
'{{ scope }}',
'{{ scopeAssignmentName }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: assignedManagedNetwork
value: string
- name: provisioningState
value: string
- name: etag
value: string
DELETE
example
Deletes the specified scope_assignments
resource.
/*+ delete */
DELETE FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}'
AND scopeAssignmentName = '{{ scopeAssignmentName }}';