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:

OK - Returns the complete registration definition with plan details.

NameDatatypeDescription
idstringThe fully qualified path of the registration definition.
namestringThe name of the registration definition.
planobjectThe details for the Managed Services offer’s plan in Azure Marketplace.
propertiesobjectThe properties of a registration definition.
systemDataobjectThe metadata for the registration assignment resource.
typestringThe type of the Azure resource (Microsoft.ManagedServices/registrationDefinitions).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, registrationDefinitionIdGets the registration definition details.
listselectscope$filterGets a list of the registration definitions.
create_or_updateinsertregistrationDefinitionId, scopeCreates or updates a registration definition.
deletedeleteregistrationDefinitionId, 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
registrationDefinitionIdstringThe GUID of the registration definition.
scopestringThe scope of the resource.
$filterstringThe filter query parameter to filter managed services resources by.

SELECT examples

Gets the registration definition details.

SELECT
id,
name,
plan,
properties,
systemData,
type
FROM azure.managed_services.registration_definitions
WHERE scope = '{{ scope }}' -- required
AND registrationDefinitionId = '{{ registrationDefinitionId }}' -- required
;

INSERT examples

Creates or updates a registration definition.

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

DELETE examples

Deletes the registration definition.

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