Skip to main content

operations

Creates, updates, deletes, gets or lists an operations resource.

Overview

Nameoperations
TypeResource
Idazure.provider_hub.operations

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the list of supported operations.

NameDatatypeDescription
namestringName of the operation.
actionTypestring
displayobjectDisplay information of the operation.
isDataActionbooleanIndicates whether the operation applies to data-plane.
originstring
properties

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectLists all the operations supported by Microsoft.ProviderHub.
create_or_updateinsertsubscriptionId, providerNamespace, data__contentsCreates or updates the operation supported by the given provider.
deletedeletesubscriptionId, providerNamespaceDeletes an operation.
generate_manifestexecsubscriptionId, providerNamespaceGenerates the manifest for the given provider.
checkin_manifestexecsubscriptionId, providerNamespace, baselineArmManifestLocation, environmentCheckin the manifest.
list_by_provider_registrationexecsubscriptionId, providerNamespaceGets the operations supported by 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

Lists all the operations supported by Microsoft.ProviderHub.

SELECT
name,
actionType,
display,
isDataAction,
origin,
properties
FROM azure.provider_hub.operations
;

INSERT examples

Creates or updates the operation supported by the given provider.

INSERT INTO azure.provider_hub.operations (
data__contents,
subscriptionId,
providerNamespace
)
SELECT
'{{ contents }}' /* required */,
'{{ subscriptionId }}',
'{{ providerNamespace }}'
RETURNING
id,
name,
properties,
type
;

DELETE examples

Deletes an operation.

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

Lifecycle Methods

Generates the manifest for the given provider.

EXEC azure.provider_hub.operations.generate_manifest 
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
;