Skip to main content

operations

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

Overview

Nameoperations
TypeResource
Idazure.provider_hub.operations

Fields

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

Methods

NameAccessible byRequired ParamsDescription
listSELECTLists all the operations supported by Microsoft.ProviderHub.
create_or_updateINSERTproviderNamespace, subscriptionId, data__contentsCreates or updates the operation supported by the given provider.
deleteDELETEproviderNamespace, subscriptionIdDeletes an operation.
checkin_manifestEXECproviderNamespace, subscriptionId, data__baselineArmManifestLocation, data__environmentCheckin the manifest.
generate_manifestEXECproviderNamespace, subscriptionIdGenerates the manifest for the given provider.
list_by_provider_registrationEXECproviderNamespace, subscriptionIdGets the operations supported by the given provider.

SELECT examples

Lists all the operations supported by Microsoft.ProviderHub.

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

INSERT example

Use the following StackQL query and manifest file to create a new operations resource.

/*+ create */
INSERT INTO azure.provider_hub.operations (
providerNamespace,
subscriptionId,
data__contents,
contents
)
SELECT
'{{ providerNamespace }}',
'{{ subscriptionId }}',
'{{ data__contents }}',
'{{ contents }}'
;

DELETE example

Deletes the specified operations resource.

/*+ delete */
DELETE FROM azure.provider_hub.operations
WHERE providerNamespace = '{{ providerNamespace }}'
AND subscriptionId = '{{ subscriptionId }}';