Skip to main content

provider_registrations

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

Overview

Nameprovider_registrations
TypeResource
Idazure.provider_hub.provider_registrations

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the provider registration.

NameDatatypeDescription
propertiesobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectsubscriptionId, providerNamespaceGets the provider registration details.
listselectsubscriptionIdGets the list of the provider registrations in the subscription.
create_or_updateinsertsubscriptionId, providerNamespaceCreates or updates the provider registration.
deletedeletesubscriptionId, providerNamespaceDeletes a provider registration.
generate_operationsexecsubscriptionId, providerNamespaceGenerates the operations api for the given provider.

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
providerNamespacestringThe name of the resource provider hosted within ProviderHub.
subscriptionIdstringThe ID of the target subscription.

SELECT examples

Gets the provider registration details.

SELECT
properties
FROM azure.provider_hub.provider_registrations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND providerNamespace = '{{ providerNamespace }}' -- required
;

INSERT examples

Creates or updates the provider registration.

INSERT INTO azure.provider_hub.provider_registrations (
data__properties,
subscriptionId,
providerNamespace
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ providerNamespace }}'
RETURNING
properties
;

DELETE examples

Deletes a provider registration.

DELETE FROM azure.provider_hub.provider_registrations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND providerNamespace = '{{ providerNamespace }}' --required
;

Lifecycle Methods

Generates the operations api for the given provider.

EXEC azure.provider_hub.provider_registrations.generate_operations 
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
;