CosmosDbLinkedService Class

Microsoft Azure Cosmos Database (CosmosDB) linked service.

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.datafactory.models._models_py3.LinkedService
CosmosDbLinkedService

Constructor

CosmosDbLinkedService(*, additional_properties: Dict[str, MutableMapping[str, Any]] | None = None, version: str | None = None, connect_via: _models.IntegrationRuntimeReference | None = None, description: str | None = None, parameters: Dict[str, _models.ParameterSpecification] | None = None, annotations: List[MutableMapping[str, Any]] | None = None, connection_string: MutableMapping[str, Any] | None = None, account_endpoint: MutableMapping[str, Any] | None = None, database: MutableMapping[str, Any] | None = None, account_key: _models.SecretBase | None = None, service_principal_id: MutableMapping[str, Any] | None = None, service_principal_credential_type: MutableMapping[str, Any] | None = None, service_principal_credential: _models.SecretBase | None = None, tenant: MutableMapping[str, Any] | None = None, azure_cloud_type: MutableMapping[str, Any] | None = None, connection_mode: str | _models.CosmosDbConnectionMode | None = None, encrypted_credential: str | None = None, credential: _models.CredentialReference | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
additional_properties
dict[str, <xref:JSON>]

Unmatched properties from the message are deserialized to this collection.

version
str

Version of the linked service.

connect_via

The integration runtime reference.

description
str

Linked service description.

parameters

Parameters for linked service.

annotations
list[<xref:JSON>]

List of tags that can be used for describing the linked service.

connection_string
<xref:JSON>

The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.

account_endpoint
<xref:JSON>

The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string).

database
<xref:JSON>

The name of the database. Type: string (or Expression with resultType string).

account_key

The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference.

service_principal_id
<xref:JSON>

The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).

service_principal_credential_type
<xref:JSON>

The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string.

service_principal_credential

The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.

tenant
<xref:JSON>

The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).

azure_cloud_type
<xref:JSON>

Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions' cloud type. Type: string (or Expression with resultType string).

connection_mode

The connection mode used to access CosmosDB account. Type: string. Known values are: "Gateway" and "Direct".

encrypted_credential
str

The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.

credential

The credential reference containing authentication information.

Variables

Name Description
additional_properties
dict[str, <xref:JSON>]

Unmatched properties from the message are deserialized to this collection.

type
str

Type of linked service. Required.

version
str

Version of the linked service.

connect_via

The integration runtime reference.

description
str

Linked service description.

parameters

Parameters for linked service.

annotations
list[<xref:JSON>]

List of tags that can be used for describing the linked service.

connection_string
<xref:JSON>

The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.

account_endpoint
<xref:JSON>

The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string).

database
<xref:JSON>

The name of the database. Type: string (or Expression with resultType string).

account_key

The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference.

service_principal_id
<xref:JSON>

The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).

service_principal_credential_type
<xref:JSON>

The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string.

service_principal_credential

The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.

tenant
<xref:JSON>

The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).

azure_cloud_type
<xref:JSON>

Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions' cloud type. Type: string (or Expression with resultType string).

connection_mode

The connection mode used to access CosmosDB account. Type: string. Known values are: "Gateway" and "Direct".

encrypted_credential
str

The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string.

credential

The credential reference containing authentication information.