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:

NameDatatypeDescription
idstringThe fully qualified path of the registration assignment.
namestringThe name of the registration assignment.
provisioningStatestringThe current provisioning state of the registration assignment. Known values are: "NotSpecified", "Accepted", "Running", "Ready", "Creating", "Created", "Deleting", "Deleted", "Canceled", "Failed", "Succeeded", and "Updating".
registrationDefinitionobjectThe registration definition associated with the registration assignment.
registrationDefinitionIdstringThe fully qualified path of the registration definition. Required.
typestringThe type of the Azure resource (Microsoft.ManagedServices/registrationAssignments).

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectscope, registration_assignment_id$expandRegistrationDefinitionGets the details of the specified registration assignment.
listselectscope$expandRegistrationDefinitionGets a list of the registration assignments.
create_or_updateinsertscope, registration_assignment_idCreates or updates a registration assignment.
create_or_updatereplacescope, registration_assignment_idCreates or updates a registration assignment.
deletedeletescope, registration_assignment_idDeletes 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
registration_assignment_idstringThe GUID of the registration assignment. Required.
scopestringThe scope of the resource. Required.
$expandRegistrationDefinitionbooleanThe flag indicating whether to return the registration definition details along with the registration assignment details. Default value is None.

SELECT examples

Gets the details of the specified registration assignment.

SELECT
id,
name,
provisioningState,
registrationDefinition,
registrationDefinitionId,
type
FROM azure.managed_services.registration_assignments
WHERE scope = '{{ scope }}' -- required
AND registration_assignment_id = '{{ registration_assignment_id }}' -- required
AND $expandRegistrationDefinition = '{{ $expandRegistrationDefinition }}'
;

INSERT examples

Creates or updates a registration assignment.

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

REPLACE examples

Creates or updates a registration assignment.

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

DELETE examples

Deletes the specified registration assignment.

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