operations
Creates, updates, deletes, gets or lists an operations
resource.
Overview
Name | operations |
Type | Resource |
Id | azure_stack.compute_admin.operations |
Fields
The following fields are returned by SELECT
queries:
- list
Name | Datatype | Description |
---|---|---|
name | string | The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" |
actionType | string | Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. |
display | object | Localized display information for this particular operation. |
isDataAction | boolean | Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. |
origin | string | The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
list | select | Returns the list of supported REST operations. | ||
enable_tenant_subscription_feature | exec | subscriptionId , location , featureName | Enable the tenant subscription feature. | |
disable_tenant_subscription_feature | exec | subscriptionId , location , featureName | Disable the tenant subscription feature. |
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 |
---|---|---|
featureName | string | Name of the feature. |
location | string | The name of Azure region. |
subscriptionId | string | The ID of the target subscription. |
SELECT
examples
- list
Returns the list of supported REST operations.
SELECT
name,
actionType,
display,
isDataAction,
origin
FROM azure_stack.compute_admin.operations
;
Lifecycle Methods
- enable_tenant_subscription_feature
- disable_tenant_subscription_feature
Enable the tenant subscription feature.
EXEC azure_stack.compute_admin.operations.enable_tenant_subscription_feature
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required,
@featureName='{{ featureName }}' --required
@@json=
'{
"tenantSubscriptionId": "{{ tenantSubscriptionId }}"
}'
;
Disable the tenant subscription feature.
EXEC azure_stack.compute_admin.operations.disable_tenant_subscription_feature
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required,
@featureName='{{ featureName }}' --required
@@json=
'{
"tenantSubscriptionId": "{{ tenantSubscriptionId }}"
}'
;