AzureBlobStoreConnection Class
Note
This is an experimental class, and may change at any time. Please see https://aka.ms/azuremlexperimental for more information.
A connection to an Azure Blob Store.
- Inheritance
-
azure.ai.ml.entities._workspace.connections.workspace_connection.WorkspaceConnectionAzureBlobStoreConnection
Constructor
AzureBlobStoreConnection(*, url: str, container_name: str, account_name: str, metadata: Dict[Any, Any] | None = None, **kwargs)
Parameters
Name | Description |
---|---|
name
Required
|
Name of the connection. |
url
Required
|
The URL or ARM resource ID of the external resource. |
container_name
Required
|
The name of the container. |
account_name
Required
|
The name of the account. |
credentials
Required
|
The credentials for authenticating to the blob store. This type of connection accepts 3 types of credentials: account key and SAS token credentials, or NoneCredentialConfiguration for credential-less connections. |
metadata
Required
|
Metadata dictionary. |
Methods
dump |
Dump the connection spec into a file in yaml format. |
dump
Dump the connection spec into a file in yaml format.
dump(dest: str | PathLike | IO, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
dest
Required
|
The destination to receive this connection's spec. Must be either a path to a local file, or an already-open file stream. If dest is a file path, a new file will be created, and an exception is raised if the file exists. If dest is an open file, the file will be written to directly, and an exception will be raised if the file is not writable. |
Attributes
account_name
The name of the connection's account
Returns
Type | Description |
---|---|
The name of the account. |
api_base
Alternate name for the target of the connection, which is used by some connection subclasses.
Returns
Type | Description |
---|---|
The target of the connection. |
azure_endpoint
Alternate name for the target of the connection, which is used by some connection subclasses.
Returns
Type | Description |
---|---|
The target of the connection. |
base_path
container_name
The name of the connection's container.
Returns
Type | Description |
---|---|
The name of the container. |
creation_context
The creation context of the resource.
Returns
Type | Description |
---|---|
The creation metadata for the resource. |
credentials
Credentials for connection.
Returns
Type | Description |
---|---|
Credentials for connection. |
endpoint
Alternate name for the target of the connection, which is used by some connection subclasses.
Returns
Type | Description |
---|---|
The target of the connection. |
id
The resource ID.
Returns
Type | Description |
---|---|
The global ID of the resource, an Azure Resource Manager (ARM) ID. |
is_shared
Get the Boolean describing if this connection is shared amongst its cohort within a hub. Only applicable for connections created within a project.
Returns
Type | Description |
---|---|
metadata
The connection's metadata dictionary. :return: This connection's metadata. :rtype: Optional[Dict[str, Any]]
tags
Deprecated. Use metadata instead. :return: This connection's metadata. :rtype: Optional[Dict[str, Any]]
target
type
Type of the connection, supported are 'git', 'python_feed' and 'container_registry'.
Returns
Type | Description |
---|---|
Type of the job. |
url
Alternate name for the target of the connection, which is used by some connection subclasses.
Returns
Type | Description |
---|---|
The target of the connection. |
Azure SDK for Python