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
The following fields are returned by SELECT queries:
- get
- list
OK - Returns information about the scope assignment.
| Name | Datatype | Description |
|---|---|---|
properties | object | The Scope Assignment properties |
OK - Returns information about the scope assignment.
| Name | Datatype | Description |
|---|---|---|
properties | object | The Scope Assignment properties |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional 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. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
scope | string | The scope of the scope assignment to delete. |
scopeAssignmentName | string | The name of the scope assignment to delete. |
SELECT examples
- get
- list
Get the specified scope assignment.
SELECT
properties
FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}' -- required
AND scopeAssignmentName = '{{ scopeAssignmentName }}' -- required
;
Get the specified scope assignment.
SELECT
properties
FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates a scope assignment.
INSERT INTO azure.managed_network.scope_assignments (
data__properties,
scope,
scopeAssignmentName
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ scopeAssignmentName }}'
RETURNING
properties
;
# Description fields are for documentation purposes
- name: scope_assignments
props:
- name: scope
value: string
description: Required parameter for the scope_assignments resource.
- name: scopeAssignmentName
value: string
description: Required parameter for the scope_assignments resource.
- name: properties
value: object
description: |
The Scope Assignment properties
DELETE examples
- delete
Deletes a scope assignment.
DELETE FROM azure.managed_network.scope_assignments
WHERE scope = '{{ scope }}' --required
AND scopeAssignmentName = '{{ scopeAssignmentName }}' --required
;