credential_operations
Creates, updates, deletes, gets or lists a credential_operations resource.
Overview
| Name | credential_operations |
| Type | Resource |
| Id | azure.data_factory.credential_operations |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_factory
| 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. |
annotations | array | List of tags that can be used for describing the Credential. |
description | string | Credential description. |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
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". |
| 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. |
annotations | array | List of tags that can be used for describing the Credential. |
description | string | Credential description. |
etag | string | "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields."). |
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". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, factory_name, credential_name, subscription_id | Gets a credential. | |
list_by_factory | select | resource_group_name, factory_name, subscription_id | List credentials. | |
create_or_update | insert | resource_group_name, factory_name, credential_name, subscription_id, properties | Creates or updates a credential. | |
create_or_update | replace | resource_group_name, factory_name, credential_name, subscription_id, properties | Creates or updates a credential. | |
delete | delete | resource_group_name, factory_name, credential_name, subscription_id | Deletes a credential. |
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 |
|---|---|---|
credential_name | string | Credential name. Required. |
factory_name | string | The factory name. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string |
SELECT examples
- get
- list_by_factory
Gets a credential.
SELECT
id,
name,
annotations,
description,
etag,
systemData,
type
FROM azure.data_factory.credential_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND factory_name = '{{ factory_name }}' -- required
AND credential_name = '{{ credential_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
List credentials.
SELECT
id,
name,
annotations,
description,
etag,
systemData,
type
FROM azure.data_factory.credential_operations
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND factory_name = '{{ factory_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
INSERT examples
- create_or_update
- Manifest
Creates or updates a credential.
INSERT INTO azure.data_factory.credential_operations (
properties,
resource_group_name,
factory_name,
credential_name,
subscription_id
)
SELECT
'{{ properties }}' /* required */,
'{{ resource_group_name }}',
'{{ factory_name }}',
'{{ credential_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
properties,
systemData,
type
;
# Description fields are for documentation purposes
- name: credential_operations
props:
- name: resource_group_name
value: "{{ resource_group_name }}"
description: Required parameter for the credential_operations resource.
- name: factory_name
value: "{{ factory_name }}"
description: Required parameter for the credential_operations resource.
- name: credential_name
value: "{{ credential_name }}"
description: Required parameter for the credential_operations resource.
- name: subscription_id
value: "{{ subscription_id }}"
description: Required parameter for the credential_operations resource.
- name: properties
description: |
Properties of credentials. Required.
value:
type: "{{ type }}"
description: "{{ description }}"
annotations: "{{ annotations }}"
REPLACE examples
- create_or_update
Creates or updates a credential.
REPLACE azure.data_factory.credential_operations
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND credential_name = '{{ credential_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND properties = '{{ properties }}' --required
RETURNING
id,
name,
etag,
properties,
systemData,
type;
DELETE examples
- delete
Deletes a credential.
DELETE FROM azure.data_factory.credential_operations
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND factory_name = '{{ factory_name }}' --required
AND credential_name = '{{ credential_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;