Skip to main content

registration_definitions

Creates, updates, deletes, gets or lists a registration_definitions resource.

Overview

Nameregistration_definitions
TypeResource
Idazure.managed_services.registration_definitions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe fully qualified path of the registration definition.
namestringThe name of the registration definition.
authorizationsarrayThe collection of authorization objects describing the access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant. Required.
descriptionstringThe description of the registration definition.
eligibleAuthorizationsarrayThe collection of eligible authorization objects describing the just-in-time access Azure Active Directory principals in the managedBy tenant will receive on the delegated resource in the managed tenant.
managedByTenantIdstringThe identifier of the managedBy tenant. Required.
managedByTenantNamestringThe name of the managedBy tenant.
manageeTenantIdstringThe identifier of the managed tenant.
manageeTenantNamestringThe name of the managed tenant.
planobjectThe details for the Managed Services offer’s plan in Azure Marketplace.
provisioningStatestringThe current provisioning state of the registration definition. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating".
registrationDefinitionNamestringThe name of the registration definition.
typestringThe type of the Azure resource (Microsoft.ManagedServices/registrationDefinitions).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, registration_definition_idGets the registration definition details.
listselectscopeGets a list of the registration definitions.
create_or_updateinsertregistration_definition_id, scopeCreates or updates a registration definition.
create_or_updatereplaceregistration_definition_id, scopeCreates or updates a registration definition.
deletedeleteregistration_definition_id, scopeDeletes the registration definition.

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
registration_definition_idstringThe GUID of the registration definition. Required.
scopestringThe scope of the resource. Required.

SELECT examples

Gets the registration definition details.

SELECT
id,
name,
authorizations,
description,
eligibleAuthorizations,
managedByTenantId,
managedByTenantName,
manageeTenantId,
manageeTenantName,
plan,
provisioningState,
registrationDefinitionName,
type
FROM azure.managed_services.registration_definitions
WHERE scope = '{{ scope }}' -- required
AND registration_definition_id = '{{ registration_definition_id }}' -- required
;

INSERT examples

Creates or updates a registration definition.

INSERT INTO azure.managed_services.registration_definitions (
properties,
plan,
registration_definition_id,
scope
)
SELECT
'{{ properties }}',
'{{ plan }}',
'{{ registration_definition_id }}',
'{{ scope }}'
RETURNING
id,
name,
plan,
properties,
type
;

REPLACE examples

Creates or updates a registration definition.

REPLACE azure.managed_services.registration_definitions
SET
properties = '{{ properties }}',
plan = '{{ plan }}'
WHERE
registration_definition_id = '{{ registration_definition_id }}' --required
AND scope = '{{ scope }}' --required
RETURNING
id,
name,
plan,
properties,
type;

DELETE examples

Deletes the registration definition.

DELETE FROM azure.managed_services.registration_definitions
WHERE registration_definition_id = '{{ registration_definition_id }}' --required
AND scope = '{{ scope }}' --required
;