attribute_namespaces
Creates, updates, deletes, gets or lists an attribute_namespaces resource.
Overview
| Name | attribute_namespaces |
| Type | Resource |
| Id | azure.authorization.attribute_namespaces |
Fields
The following fields are returned by SELECT queries:
- get
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | attribute_namespace | Gets the specified attribute namespace. | |
create | insert | attribute_namespace, namespaceOwnerPrincipalId | Creates a new attribute namespace. | |
delete | delete | attribute_namespace | Deletes the specified attribute namespace. |
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 |
|---|---|---|
attribute_namespace | string | The name of the attribute namespace to get. Required. |
SELECT examples
- get
Gets the specified attribute namespace.
SELECT
id,
name,
systemData,
type
FROM azure.authorization.attribute_namespaces
WHERE attribute_namespace = '{{ attribute_namespace }}' -- required
;
INSERT examples
- create
- Manifest
Creates a new attribute namespace.
INSERT INTO azure.authorization.attribute_namespaces (
namespaceOwnerPrincipalId,
attribute_namespace
)
SELECT
'{{ namespaceOwnerPrincipalId }}' /* required */,
'{{ attribute_namespace }}'
RETURNING
id,
name,
systemData,
type
;
# Description fields are for documentation purposes
- name: attribute_namespaces
props:
- name: attribute_namespace
value: "{{ attribute_namespace }}"
description: Required parameter for the attribute_namespaces resource.
- name: namespaceOwnerPrincipalId
value: "{{ namespaceOwnerPrincipalId }}"
description: |
The principal ID of the namespace owner. Required.
DELETE examples
- delete
Deletes the specified attribute namespace.
DELETE FROM azure.authorization.attribute_namespaces
WHERE attribute_namespace = '{{ attribute_namespace }}' --required
;