operations
Creates, updates, deletes, gets or lists an operations
resource.
Overview
Name | operations |
Type | Resource |
Id | azure_extras.developer_hub.operations |
Fields
The following fields are returned by SELECT
queries:
- list
Operation details.
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 list of operations. | ||
github_oauth | exec | subscriptionId , location | ||
github_oauth_callback | exec | subscriptionId , location , code , state | ||
generate_preview_artifacts | exec | subscriptionId , location |
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 |
---|---|---|
code | string | The code response from authenticating the GitHub App. |
location | string | The name of the Azure region. |
state | string | The state response from authenticating the GitHub App. |
subscriptionId | string (uuid) | The ID of the target subscription. The value must be an UUID. |
SELECT
examples
- list
Returns list of operations.
SELECT
name,
actionType,
display,
isDataAction,
origin
FROM azure_extras.developer_hub.operations
;
Lifecycle Methods
- github_oauth
- github_oauth_callback
- generate_preview_artifacts
OK
EXEC azure_extras.developer_hub.operations.github_oauth
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"redirectUrl": "{{ redirectUrl }}"
}'
;
OK
EXEC azure_extras.developer_hub.operations.github_oauth_callback
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required,
@code='{{ code }}' --required,
@state='{{ state }}' --required
;
OK
EXEC azure_extras.developer_hub.operations.generate_preview_artifacts
@subscriptionId='{{ subscriptionId }}' --required,
@location='{{ location }}' --required
@@json=
'{
"generationLanguage": "{{ generationLanguage }}",
"languageVersion": "{{ languageVersion }}",
"builderVersion": "{{ builderVersion }}",
"port": "{{ port }}",
"appName": "{{ appName }}",
"dockerfileOutputDirectory": "{{ dockerfileOutputDirectory }}",
"manifestOutputDirectory": "{{ manifestOutputDirectory }}",
"dockerfileGenerationMode": "{{ dockerfileGenerationMode }}",
"manifestGenerationMode": "{{ manifestGenerationMode }}",
"manifestType": "{{ manifestType }}",
"imageName": "{{ imageName }}",
"namespace": "{{ namespace }}",
"imageTag": "{{ imageTag }}"
}'
;