source_controls
Creates, updates, deletes, gets or lists a source_controls resource.
Overview
| Name | source_controls |
| Type | Resource |
| Id | azure.web.source_controls |
Fields
The following fields are returned by SELECT queries:
- get_source_control
- list_source_controls
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
expirationTime | string (date-time) | OAuth token expiration. |
kind | string | Kind of resource. |
refreshToken | string | OAuth refresh token. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
token | string | OAuth access token. |
tokenSecret | string | OAuth access token secret. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
expirationTime | string (date-time) | OAuth token expiration. |
kind | string | Kind of resource. |
refreshToken | string | OAuth refresh token. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
token | string | OAuth access token. |
tokenSecret | string | OAuth access token secret. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_source_control | select | source_control_type | Gets source control token. Description for Gets source control token. | |
list_source_controls | select | Gets the source controls available for Azure websites. Description for Gets the source controls available for Azure websites. | ||
update_source_control | update | source_control_type | Updates source control token. Description for Updates source control token. |
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 |
|---|---|---|
source_control_type | string | Type of source control. Required. |
SELECT examples
- get_source_control
- list_source_controls
Gets source control token. Description for Gets source control token.
SELECT
id,
name,
expirationTime,
kind,
refreshToken,
systemData,
token,
tokenSecret,
type
FROM azure.web.source_controls
WHERE source_control_type = '{{ source_control_type }}' -- required
;
Gets the source controls available for Azure websites. Description for Gets the source controls available for Azure websites.
SELECT
id,
name,
expirationTime,
kind,
refreshToken,
systemData,
token,
tokenSecret,
type
FROM azure.web.source_controls
;
UPDATE examples
- update_source_control
Updates source control token. Description for Updates source control token.
UPDATE azure.web.source_controls
SET
properties = '{{ properties }}',
kind = '{{ kind }}'
WHERE
source_control_type = '{{ source_control_type }}' --required
RETURNING
id,
name,
kind,
properties,
systemData,
type;