Use Pulumi's new import command to generate code from existing cloud resources. Learn More

GetSqlDatabase

Using GetSqlDatabase

function getSqlDatabase(args: GetSqlDatabaseArgs, opts?: InvokeOptions): Promise<GetSqlDatabaseResult>
def get_sql_database(resource_group_name: Optional[str] = None, sql_database_name: Optional[str] = None, workspace_name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetSqlDatabaseResult
func LookupSqlDatabase(ctx *Context, args *LookupSqlDatabaseArgs, opts ...InvokeOption) (*LookupSqlDatabaseResult, error)

Note: This function is named LookupSqlDatabase in the Go SDK.

public static class GetSqlDatabase {
    public static Task<GetSqlDatabaseResult> InvokeAsync(GetSqlDatabaseArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

ResourceGroupName string
The name of the resource group. The name is case insensitive.
SqlDatabaseName string
The name of the sql database.
WorkspaceName string
The name of the workspace.
ResourceGroupName string
The name of the resource group. The name is case insensitive.
SqlDatabaseName string
The name of the sql database.
WorkspaceName string
The name of the workspace.
resourceGroupName string
The name of the resource group. The name is case insensitive.
sqlDatabaseName string
The name of the sql database.
workspaceName string
The name of the workspace.
resource_group_name str
The name of the resource group. The name is case insensitive.
sql_database_name str
The name of the sql database.
workspace_name str
The name of the workspace.

GetSqlDatabase Result

The following output properties are available:

DatabaseGuid string
The Guid of the database.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Location string
The geo-location where the resource lives
Name string
The name of the resource
Status string
Status of the database.
SystemData Pulumi.AzureNextGen.Synapse.Outputs.SystemDataResponse
SystemData of SqlDatabase.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Collation string
The collation of the database.
MaxSizeBytes double
The max size of the database expressed in bytes.
Tags Dictionary<string, string>
Resource tags.
DatabaseGuid string
The Guid of the database.
Id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Location string
The geo-location where the resource lives
Name string
The name of the resource
Status string
Status of the database.
SystemData SystemDataResponse
SystemData of SqlDatabase.
Type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
Collation string
The collation of the database.
MaxSizeBytes float64
The max size of the database expressed in bytes.
Tags map[string]string
Resource tags.
databaseGuid string
The Guid of the database.
id string
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location string
The geo-location where the resource lives
name string
The name of the resource
status string
Status of the database.
systemData SystemDataResponse
SystemData of SqlDatabase.
type string
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
collation string
The collation of the database.
maxSizeBytes number
The max size of the database expressed in bytes.
tags {[key: string]: string}
Resource tags.
database_guid str
The Guid of the database.
id str
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location str
The geo-location where the resource lives
name str
The name of the resource
status str
Status of the database.
system_data SystemDataResponse
SystemData of SqlDatabase.
type str
The type of the resource. E.g. “Microsoft.Compute/virtualMachines” or “Microsoft.Storage/storageAccounts”
collation str
The collation of the database.
max_size_bytes float
The max size of the database expressed in bytes.
tags Mapping[str, str]
Resource tags.

Supporting Types

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
A string identifier for the identity that created the resource.
CreatedByType string
The type of identity that created the resource:
LastModifiedAt string
The timestamp of last modification (UTC).
LastModifiedBy string
A string identifier for the identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource:
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
A string identifier for the identity that created the resource.
CreatedByType string
The type of identity that created the resource:
LastModifiedAt string
The timestamp of last modification (UTC).
LastModifiedBy string
A string identifier for the identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource:
createdAt string
The timestamp of resource creation (UTC).
createdBy string
A string identifier for the identity that created the resource.
createdByType string
The type of identity that created the resource:
lastModifiedAt string
The timestamp of last modification (UTC).
lastModifiedBy string
A string identifier for the identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource:
created_at str
The timestamp of resource creation (UTC).
created_by str
A string identifier for the identity that created the resource.
created_by_type str
The type of identity that created the resource:
last_modified_at str
The timestamp of last modification (UTC).
last_modified_by str
A string identifier for the identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource:

Package Details

Repository
https://github.com/pulumi/pulumi-azure-nextgen
License
Apache-2.0