provider_registrations
Creates, updates, deletes, gets or lists a provider_registrations
resource.
Overview
Name | provider_registrations |
Type | Resource |
Id | azure.provider_hub.provider_registrations |
Fields
The following fields are returned by SELECT
queries:
- get
- list
Successfully retrieved the provider registration.
Name | Datatype | Description |
---|---|---|
properties | object |
Successfully retrieved the provider registrations.
Name | Datatype | Description |
---|---|---|
properties | object |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get | select | subscriptionId , providerNamespace | Gets the provider registration details. | |
list | select | subscriptionId | Gets the list of the provider registrations in the subscription. | |
create_or_update | insert | subscriptionId , providerNamespace | Creates or updates the provider registration. | |
delete | delete | subscriptionId , providerNamespace | Deletes a provider registration. | |
generate_operations | exec | subscriptionId , providerNamespace | Generates 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.
Name | Datatype | Description |
---|---|---|
providerNamespace | string | The name of the resource provider hosted within ProviderHub. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- get
- list
Gets the provider registration details.
SELECT
properties
FROM azure.provider_hub.provider_registrations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
AND providerNamespace = '{{ providerNamespace }}' -- required
;
Gets the list of the provider registrations in the subscription.
SELECT
properties
FROM azure.provider_hub.provider_registrations
WHERE subscriptionId = '{{ subscriptionId }}' -- required
;
INSERT
examples
- create_or_update
- Manifest
Creates or updates the provider registration.
INSERT INTO azure.provider_hub.provider_registrations (
data__properties,
subscriptionId,
providerNamespace
)
SELECT
'{{ properties }}',
'{{ subscriptionId }}',
'{{ providerNamespace }}'
RETURNING
properties
;
# Description fields are for documentation purposes
- name: provider_registrations
props:
- name: subscriptionId
value: string
description: Required parameter for the provider_registrations resource.
- name: providerNamespace
value: string
description: Required parameter for the provider_registrations resource.
- name: properties
value: object
DELETE
examples
- delete
Deletes a provider registration.
DELETE FROM azure.provider_hub.provider_registrations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND providerNamespace = '{{ providerNamespace }}' --required
;
Lifecycle Methods
- generate_operations
Generates the operations api for the given provider.
EXEC azure.provider_hub.provider_registrations.generate_operations
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
;