Skip to main content

registration_assignments

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

Overview

Nameregistration_assignments
TypeResource
Idazure.managed_services.registration_assignments

Fields

The following fields are returned by SELECT queries:

OK - Returns the registration assignment.

NameDatatypeDescription
idstringThe fully qualified path of the registration assignment.
namestringThe name of the registration assignment.
propertiesobjectThe properties of a registration assignment.
systemDataobjectThe metadata for the registration assignment resource.
typestringThe type of the Azure resource (Microsoft.ManagedServices/registrationAssignments).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, registrationAssignmentId$expandRegistrationDefinitionGets the details of the specified registration assignment.
listselectscope$expandRegistrationDefinition, $filterGets a list of the registration assignments.
create_or_updateinsertscope, registrationAssignmentIdCreates or updates a registration assignment.
deletedeletescope, registrationAssignmentIdDeletes the specified registration assignment.

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
registrationAssignmentIdstringThe GUID of the registration assignment.
scopestringThe scope of the resource.
$expandRegistrationDefinitionbooleanThe flag indicating whether to return the registration definition details along with the registration assignment details.
$filterstringThe filter query parameter to filter managed services resources by.

SELECT examples

Gets the details of the specified registration assignment.

SELECT
id,
name,
properties,
systemData,
type
FROM azure.managed_services.registration_assignments
WHERE scope = '{{ scope }}' -- required
AND registrationAssignmentId = '{{ registrationAssignmentId }}' -- required
AND $expandRegistrationDefinition = '{{ $expandRegistrationDefinition }}'
;

INSERT examples

Creates or updates a registration assignment.

INSERT INTO azure.managed_services.registration_assignments (
data__properties,
scope,
registrationAssignmentId
)
SELECT
'{{ properties }}',
'{{ scope }}',
'{{ registrationAssignmentId }}'
RETURNING
id,
name,
properties,
systemData,
type
;

DELETE examples

Deletes the specified registration assignment.

DELETE FROM azure.managed_services.registration_assignments
WHERE scope = '{{ scope }}' --required
AND registrationAssignmentId = '{{ registrationAssignmentId }}' --required
;