Skip to main content

attribute_namespaces

Creates, updates, deletes, gets or lists an attribute_namespaces resource.

Overview

Nameattribute_namespaces
TypeResource
Idazure.authorization.attribute_namespaces

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectattribute_namespaceGets the specified attribute namespace.
createinsertattribute_namespace, namespaceOwnerPrincipalIdCreates a new attribute namespace.
deletedeleteattribute_namespaceDeletes 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.

NameDatatypeDescription
attribute_namespacestringThe name of the attribute namespace to get. Required.

SELECT examples

Gets the specified attribute namespace.

SELECT
id,
name,
systemData,
type
FROM azure.authorization.attribute_namespaces
WHERE attribute_namespace = '{{ attribute_namespace }}' -- required
;

INSERT examples

Creates a new attribute namespace.

INSERT INTO azure.authorization.attribute_namespaces (
namespaceOwnerPrincipalId,
attribute_namespace
)
SELECT
'{{ namespaceOwnerPrincipalId }}' /* required */,
'{{ attribute_namespace }}'
RETURNING
id,
name,
systemData,
type
;

DELETE examples

Deletes the specified attribute namespace.

DELETE FROM azure.authorization.attribute_namespaces
WHERE attribute_namespace = '{{ attribute_namespace }}' --required
;