operations
Creates, updates, deletes, gets or lists an operations
resource.
Overview
Name | operations |
Type | Resource |
Id | azure.terraform.operations |
Fields
The following fields are returned by SELECT
queries:
- list
Azure operation completed successfully.
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 | List the operations for the provider | ||
export_terraform | exec | subscriptionId , type | Exports the Terraform configuration of the specified resource(s). |
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 |
---|---|---|
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT
examples
- list
List the operations for the provider
SELECT
name,
actionType,
display,
isDataAction,
origin
FROM azure.terraform.operations
;
Lifecycle Methods
- export_terraform
Exports the Terraform configuration of the specified resource(s).
EXEC azure.terraform.operations.export_terraform
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"type": "{{ type }}",
"targetProvider": "{{ targetProvider }}",
"fullProperties": {{ fullProperties }},
"maskSensitive": {{ maskSensitive }}
}'
;