Skip to main content

accounts

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

Overview

Nameaccounts
TypeResource
Idazure.purview.accounts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringGets or sets the identifier.
namestringGets or sets the name.
cloudConnectorsobjectCloud connectors. External cloud identifier used as part of scanning configuration.
createdAtstring (date-time)Gets the time at which the entity was created.
createdBystringGets the creator of the entity.
createdByObjectIdstringGets the creators of the entity's object id.
endpointsobjectThe URIs that are the public endpoints of the account.
friendlyNamestringGets or sets the friendly name.
identityobjectIdentity Info on the tracked resource.
locationstringGets or sets the location.
managedResourceGroupNamestringGets or sets the managed resource group name.
managedResourcesobjectGets the resource identifiers of the managed resources.
privateEndpointConnectionsarrayGets the private endpoint connections information.
provisioningStatestringGets or sets the state of the provisioning. Known values are: "Unknown", "Creating", "Moving", "Deleting", "SoftDeleting", "SoftDeleted", "Failed", "Succeeded", and "Canceled".
publicNetworkAccessstringGets or sets the public network access. Known values are: "NotSpecified", "Enabled", and "Disabled".
skuobjectGets or sets the Sku.
systemDataobjectMetadata pertaining to creation and last modification of the resource.
tagsobjectTags on the azure resource.
typestringGets or sets the type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, account_name, subscription_idGets the account resource. Get an account.
list_by_resource_groupselectresource_group_name, subscription_id$skipTokenGets the accounts resources by resource group. List accounts in ResourceGroup.
list_by_subscriptionselectsubscription_id$skipTokenGets the accounts resources by subscription. List accounts in Subscription.
create_or_updateinsertresource_group_name, account_name, subscription_idCreate or update an account resource. Creates or updates an account.
updateupdateresource_group_name, account_name, subscription_idPatches the account resource. Updates an account.
create_or_updatereplaceresource_group_name, account_name, subscription_idCreate or update an account resource. Creates or updates an account.
deletedeleteresource_group_name, account_name, subscription_idDeletes the account resource. Deletes an account resource.
list_keysexecresource_group_name, account_name, subscription_idLists the keys asynchronous. List the authorization keys associated with this account.
add_root_collection_adminexecresource_group_name, account_name, subscription_idAdd the administrator for root collection. Add the administrator for root collection associated with this account.
check_name_availabilityexecsubscription_idChecks the account name availability. Checks if account name is available.

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
account_namestringThe name of the account. Required.
resource_group_namestringThe resource group name. Required.
subscription_idstring
$skipTokenstringThe skip token. Default value is None.

SELECT examples

Gets the account resource. Get an account.

SELECT
id,
name,
cloudConnectors,
createdAt,
createdBy,
createdByObjectId,
endpoints,
friendlyName,
identity,
location,
managedResourceGroupName,
managedResources,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
sku,
systemData,
tags,
type
FROM azure.purview.accounts
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND account_name = '{{ account_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update an account resource. Creates or updates an account.

INSERT INTO azure.purview.accounts (
identity,
location,
tags,
properties,
resource_group_name,
account_name,
subscription_id
)
SELECT
'{{ identity }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ account_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type
;

UPDATE examples

Patches the account resource. Updates an account.

UPDATE azure.purview.accounts
SET
identity = '{{ identity }}',
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

REPLACE examples

Create or update an account resource. Creates or updates an account.

REPLACE azure.purview.accounts
SET
identity = '{{ identity }}',
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
sku,
systemData,
tags,
type;

DELETE examples

Deletes the account resource. Deletes an account resource.

DELETE FROM azure.purview.accounts
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND account_name = '{{ account_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists the keys asynchronous. List the authorization keys associated with this account.

EXEC azure.purview.accounts.list_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@account_name='{{ account_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;