1. Packages
  2. Azure Native
  3. API Docs
  4. web
  5. getStaticSiteDatabaseConnection
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

azure-native.web.getStaticSiteDatabaseConnection

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi

Static Site Database Connection resource.

Uses Azure REST API version 2024-04-01.

Other available API versions: 2022-09-01, 2023-01-01, 2023-12-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native web [ApiVersion]. See the version guide for details.

Using getStaticSiteDatabaseConnection

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getStaticSiteDatabaseConnection(args: GetStaticSiteDatabaseConnectionArgs, opts?: InvokeOptions): Promise<GetStaticSiteDatabaseConnectionResult>
function getStaticSiteDatabaseConnectionOutput(args: GetStaticSiteDatabaseConnectionOutputArgs, opts?: InvokeOptions): Output<GetStaticSiteDatabaseConnectionResult>
Copy
def get_static_site_database_connection(database_connection_name: Optional[str] = None,
                                        name: Optional[str] = None,
                                        resource_group_name: Optional[str] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetStaticSiteDatabaseConnectionResult
def get_static_site_database_connection_output(database_connection_name: Optional[pulumi.Input[str]] = None,
                                        name: Optional[pulumi.Input[str]] = None,
                                        resource_group_name: Optional[pulumi.Input[str]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetStaticSiteDatabaseConnectionResult]
Copy
func LookupStaticSiteDatabaseConnection(ctx *Context, args *LookupStaticSiteDatabaseConnectionArgs, opts ...InvokeOption) (*LookupStaticSiteDatabaseConnectionResult, error)
func LookupStaticSiteDatabaseConnectionOutput(ctx *Context, args *LookupStaticSiteDatabaseConnectionOutputArgs, opts ...InvokeOption) LookupStaticSiteDatabaseConnectionResultOutput
Copy

> Note: This function is named LookupStaticSiteDatabaseConnection in the Go SDK.

public static class GetStaticSiteDatabaseConnection 
{
    public static Task<GetStaticSiteDatabaseConnectionResult> InvokeAsync(GetStaticSiteDatabaseConnectionArgs args, InvokeOptions? opts = null)
    public static Output<GetStaticSiteDatabaseConnectionResult> Invoke(GetStaticSiteDatabaseConnectionInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetStaticSiteDatabaseConnectionResult> getStaticSiteDatabaseConnection(GetStaticSiteDatabaseConnectionArgs args, InvokeOptions options)
public static Output<GetStaticSiteDatabaseConnectionResult> getStaticSiteDatabaseConnection(GetStaticSiteDatabaseConnectionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:web:getStaticSiteDatabaseConnection
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DatabaseConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the database connection.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
DatabaseConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the database connection.
Name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
databaseConnectionName
This property is required.
Changes to this property will trigger replacement.
String
Name of the database connection.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.
databaseConnectionName
This property is required.
Changes to this property will trigger replacement.
string
Name of the database connection.
name
This property is required.
Changes to this property will trigger replacement.
string
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the resource group to which the resource belongs.
database_connection_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the database connection.
name
This property is required.
Changes to this property will trigger replacement.
str
Name of the static site
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the resource group to which the resource belongs.
databaseConnectionName
This property is required.
Changes to this property will trigger replacement.
String
Name of the database connection.
name
This property is required.
Changes to this property will trigger replacement.
String
Name of the static site
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the resource group to which the resource belongs.

getStaticSiteDatabaseConnection Result

The following output properties are available:

AzureApiVersion string
The Azure API version of the resource.
ConfigurationFiles List<Pulumi.AzureNative.Web.Outputs.StaticSiteDatabaseConnectionConfigurationFileOverviewResponse>
A list of configuration files associated with this database connection.
Id string
Resource Id.
Name string
Resource Name.
Region string
The region of the database resource.
ResourceId string
The resource id of the database.
Type string
Resource type.
ConnectionIdentity string
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.
ConnectionString string
The connection string to use to connect to the database.
Kind string
Kind of resource.
AzureApiVersion string
The Azure API version of the resource.
ConfigurationFiles []StaticSiteDatabaseConnectionConfigurationFileOverviewResponse
A list of configuration files associated with this database connection.
Id string
Resource Id.
Name string
Resource Name.
Region string
The region of the database resource.
ResourceId string
The resource id of the database.
Type string
Resource type.
ConnectionIdentity string
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.
ConnectionString string
The connection string to use to connect to the database.
Kind string
Kind of resource.
azureApiVersion String
The Azure API version of the resource.
configurationFiles List<StaticSiteDatabaseConnectionConfigurationFileOverviewResponse>
A list of configuration files associated with this database connection.
id String
Resource Id.
name String
Resource Name.
region String
The region of the database resource.
resourceId String
The resource id of the database.
type String
Resource type.
connectionIdentity String
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.
connectionString String
The connection string to use to connect to the database.
kind String
Kind of resource.
azureApiVersion string
The Azure API version of the resource.
configurationFiles StaticSiteDatabaseConnectionConfigurationFileOverviewResponse[]
A list of configuration files associated with this database connection.
id string
Resource Id.
name string
Resource Name.
region string
The region of the database resource.
resourceId string
The resource id of the database.
type string
Resource type.
connectionIdentity string
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.
connectionString string
The connection string to use to connect to the database.
kind string
Kind of resource.
azure_api_version str
The Azure API version of the resource.
configuration_files Sequence[StaticSiteDatabaseConnectionConfigurationFileOverviewResponse]
A list of configuration files associated with this database connection.
id str
Resource Id.
name str
Resource Name.
region str
The region of the database resource.
resource_id str
The resource id of the database.
type str
Resource type.
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.
kind str
Kind of resource.
azureApiVersion String
The Azure API version of the resource.
configurationFiles List<Property Map>
A list of configuration files associated with this database connection.
id String
Resource Id.
name String
Resource Name.
region String
The region of the database resource.
resourceId String
The resource id of the database.
type String
Resource type.
connectionIdentity String
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.
connectionString String
The connection string to use to connect to the database.
kind String
Kind of resource.

Supporting Types

StaticSiteDatabaseConnectionConfigurationFileOverviewResponse

Contents This property is required. string
The Base64 encoding of the file contents.
FileName This property is required. string
The name of the configuration file.
Type This property is required. string
The type of configuration file.
Contents This property is required. string
The Base64 encoding of the file contents.
FileName This property is required. string
The name of the configuration file.
Type This property is required. string
The type of configuration file.
contents This property is required. String
The Base64 encoding of the file contents.
fileName This property is required. String
The name of the configuration file.
type This property is required. String
The type of configuration file.
contents This property is required. string
The Base64 encoding of the file contents.
fileName This property is required. string
The name of the configuration file.
type This property is required. string
The type of configuration file.
contents This property is required. str
The Base64 encoding of the file contents.
file_name This property is required. str
The name of the configuration file.
type This property is required. str
The type of configuration file.
contents This property is required. String
The Base64 encoding of the file contents.
fileName This property is required. String
The name of the configuration file.
type This property is required. String
The type of configuration file.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.1.0 published on Tuesday, Apr 8, 2025 by Pulumi