Share via


DatabaseConnection Class

Static Site Database Connection resource.

Variables are only populated by the server, and will be ignored when sending a request.

Constructor

DatabaseConnection(*, kind: str | None = None, resource_id: str | None = None, connection_identity: str | None = None, connection_string: str | None = None, region: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
kind
str

Kind of resource.

Default value: None
resource_id
str

The resource id of the database.

Default value: None
connection_identity
str

If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.

Default value: None
connection_string
str

The connection string to use to connect to the database.

Default value: None
region
str

The region of the database resource.

Default value: None

Variables

Name Description
id
str

Resource Id.

name
str

Resource Name.

kind
str

Kind of resource.

type
str

Resource type.

resource_id
str

The resource id of the database.

connection_identity
str

If present, the identity is used in conjunction with connection string to connect to the database. Use of the system-assigned managed identity is indicated with the string 'SystemAssigned', while use of a user-assigned managed identity is indicated with the resource id of the managed identity resource.

connection_string
str

The connection string to use to connect to the database.

region
str

The region of the database resource.

configuration_files

A list of configuration files associated with this database connection.