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

NameDatatypeDescription
idtextThe fully qualified path of the registration definition.
nametextThe name of the registration definition.
descriptiontextfield from the properties object
authorizationstextfield from the properties object
eligible_authorizationstextfield from the properties object
managed_by_tenant_idtextfield from the properties object
managed_by_tenant_nametextfield from the properties object
managee_tenant_idtextfield from the properties object
managee_tenant_nametextfield from the properties object
plantextPlan for the resource.
provisioning_statetextfield from the properties object
registrationDefinitionIdtextfield from the properties object
registration_definition_nametextfield from the properties object
scopetextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the Azure resource (Microsoft.ManagedServices/registrationDefinitions).

Methods

NameAccessible byRequired ParamsDescription
getSELECTregistrationDefinitionId, scopeGets the registration definition details.
listSELECTscopeGets a list of the registration definitions.
create_or_updateINSERTregistrationDefinitionId, scopeCreates or updates a registration definition.
deleteDELETEregistrationDefinitionId, scopeDeletes the registration definition.

SELECT examples

Gets a list of the registration definitions.

SELECT
id,
name,
description,
authorizations,
eligible_authorizations,
managed_by_tenant_id,
managed_by_tenant_name,
managee_tenant_id,
managee_tenant_name,
plan,
provisioning_state,
registrationDefinitionId,
registration_definition_name,
scope,
system_data,
type
FROM azure.managed_services.vw_registration_definitions
WHERE scope = '{{ scope }}';

INSERT example

Use the following StackQL query and manifest file to create a new registration_definitions resource.

/*+ create */
INSERT INTO azure.managed_services.registration_definitions (
registrationDefinitionId,
scope,
properties,
plan
)
SELECT
'{{ registrationDefinitionId }}',
'{{ scope }}',
'{{ properties }}',
'{{ plan }}'
;

DELETE example

Deletes the specified registration_definitions resource.

/*+ delete */
DELETE FROM azure.managed_services.registration_definitions
WHERE registrationDefinitionId = '{{ registrationDefinitionId }}'
AND scope = '{{ scope }}';