ado_oauth
Creates, updates, deletes, gets or lists an ado_oauth resource.
Overview
| Name | ado_oauth |
| Type | Resource |
| Id | azure_extras.devhub.ado_oauth |
Fields
The following fields are returned by SELECT queries:
- get
| 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. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
username | string | user making request. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | location, subscription_id | Callback URL to hit once authenticated with Entra ID to have the service store the OAuth token. Callback URL to hit once authenticated with Entra ID to have the service store the OAuth token. | |
list_raw | exec | location, subscription_id | Callback URL to hit once authenticated with ADO to have the service store the OAuth token. Callback URL to hit once authenticated with ADO to have the service store the OAuth 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 |
|---|---|---|
location | string | The location name. Required. |
subscription_id | string |
SELECT examples
- get
Callback URL to hit once authenticated with Entra ID to have the service store the OAuth token. Callback URL to hit once authenticated with Entra ID to have the service store the OAuth token.
SELECT
id,
name,
systemData,
type,
username
FROM azure_extras.devhub.ado_oauth
WHERE location = '{{ location }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Lifecycle Methods
- list_raw
Callback URL to hit once authenticated with ADO to have the service store the OAuth token. Callback URL to hit once authenticated with ADO to have the service store the OAuth token.
EXEC azure_extras.devhub.ado_oauth.list_raw
@location='{{ location }}' --required,
@subscription_id='{{ subscription_id }}' --required
;