operations
Creates, updates, deletes, gets or lists an operations resource.
Overview
| Name | operations |
| Type | Resource |
| Id | azure.provider_hub.operations |
Fields
The following fields are returned by SELECT queries:
- list
Successfully retrieved the list of supported operations.
| Name | Datatype | Description |
|---|---|---|
name | string | Name of the operation. |
actionType | string | |
display | object | Display information of the operation. |
isDataAction | boolean | Indicates whether the operation applies to data-plane. |
origin | string | |
properties | |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | Lists all the operations supported by Microsoft.ProviderHub. | ||
create_or_update | insert | subscriptionId, providerNamespace, data__contents | Creates or updates the operation supported by the given provider. | |
delete | delete | subscriptionId, providerNamespace | Deletes an operation. | |
generate_manifest | exec | subscriptionId, providerNamespace | Generates the manifest for the given provider. | |
checkin_manifest | exec | subscriptionId, providerNamespace, baselineArmManifestLocation, environment | Checkin the manifest. | |
list_by_provider_registration | exec | subscriptionId, providerNamespace | Gets 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.
| Name | Datatype | Description |
|---|---|---|
providerNamespace | string | The name of the resource provider hosted within ProviderHub. |
subscriptionId | string | The ID of the target subscription. |
SELECT examples
- list
Lists all the operations supported by Microsoft.ProviderHub.
SELECT
name,
actionType,
display,
isDataAction,
origin,
properties
FROM azure.provider_hub.operations
;
INSERT examples
- create_or_update
- Manifest
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
;
# Description fields are for documentation purposes
- name: operations
props:
- name: subscriptionId
value: string
description: Required parameter for the operations resource.
- name: providerNamespace
value: string
description: Required parameter for the operations resource.
- name: contents
value: array
DELETE examples
- delete
Deletes an operation.
DELETE FROM azure.provider_hub.operations
WHERE subscriptionId = '{{ subscriptionId }}' --required
AND providerNamespace = '{{ providerNamespace }}' --required
;
Lifecycle Methods
- generate_manifest
- checkin_manifest
- list_by_provider_registration
Generates the manifest for the given provider.
EXEC azure.provider_hub.operations.generate_manifest
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
;
Checkin the manifest.
EXEC azure.provider_hub.operations.checkin_manifest
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
@@json=
'{
"environment": "{{ environment }}",
"baselineArmManifestLocation": "{{ baselineArmManifestLocation }}"
}'
;
Gets the operations supported by the given provider.
EXEC azure.provider_hub.operations.list_by_provider_registration
@subscriptionId='{{ subscriptionId }}' --required,
@providerNamespace='{{ providerNamespace }}' --required
;