1. Packages
  2. Azure Native
  3. API Docs
  4. azuredata
  5. getSqlServer
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.azuredata.getSqlServer

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Gets a SQL Server. Azure REST API version: 2019-07-24-preview.

    Using getSqlServer

    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 getSqlServer(args: GetSqlServerArgs, opts?: InvokeOptions): Promise<GetSqlServerResult>
    function getSqlServerOutput(args: GetSqlServerOutputArgs, opts?: InvokeOptions): Output<GetSqlServerResult>
    def get_sql_server(expand: Optional[str] = None,
                       resource_group_name: Optional[str] = None,
                       sql_server_name: Optional[str] = None,
                       sql_server_registration_name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetSqlServerResult
    def get_sql_server_output(expand: Optional[pulumi.Input[str]] = None,
                       resource_group_name: Optional[pulumi.Input[str]] = None,
                       sql_server_name: Optional[pulumi.Input[str]] = None,
                       sql_server_registration_name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetSqlServerResult]
    func LookupSqlServer(ctx *Context, args *LookupSqlServerArgs, opts ...InvokeOption) (*LookupSqlServerResult, error)
    func LookupSqlServerOutput(ctx *Context, args *LookupSqlServerOutputArgs, opts ...InvokeOption) LookupSqlServerResultOutput

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

    public static class GetSqlServer 
    {
        public static Task<GetSqlServerResult> InvokeAsync(GetSqlServerArgs args, InvokeOptions? opts = null)
        public static Output<GetSqlServerResult> Invoke(GetSqlServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSqlServerResult> getSqlServer(GetSqlServerArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:azuredata:getSqlServer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceGroupName string
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    SqlServerName string
    Name of the SQL Server.
    SqlServerRegistrationName string
    Name of the SQL Server registration.
    Expand string
    The child resources to include in the response.
    ResourceGroupName string
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    SqlServerName string
    Name of the SQL Server.
    SqlServerRegistrationName string
    Name of the SQL Server registration.
    Expand string
    The child resources to include in the response.
    resourceGroupName String
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    sqlServerName String
    Name of the SQL Server.
    sqlServerRegistrationName String
    Name of the SQL Server registration.
    expand String
    The child resources to include in the response.
    resourceGroupName string
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    sqlServerName string
    Name of the SQL Server.
    sqlServerRegistrationName string
    Name of the SQL Server registration.
    expand string
    The child resources to include in the response.
    resource_group_name str
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    sql_server_name str
    Name of the SQL Server.
    sql_server_registration_name str
    Name of the SQL Server registration.
    expand str
    The child resources to include in the response.
    resourceGroupName String
    Name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    sqlServerName String
    Name of the SQL Server.
    sqlServerRegistrationName String
    Name of the SQL Server registration.
    expand String
    The child resources to include in the response.

    getSqlServer Result

    The following output properties are available:

    Id string
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Cores int
    Cores of the Sql Server.
    Edition string
    Sql Server Edition.
    PropertyBag string
    Sql Server Json Property Bag.
    RegistrationID string
    ID for Parent Sql Server Registration.
    Version string
    Version of the Sql Server.
    Id string
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    Name string
    The name of the resource
    Type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    Cores int
    Cores of the Sql Server.
    Edition string
    Sql Server Edition.
    PropertyBag string
    Sql Server Json Property Bag.
    RegistrationID string
    ID for Parent Sql Server Registration.
    Version string
    Version of the Sql Server.
    id String
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    cores Integer
    Cores of the Sql Server.
    edition String
    Sql Server Edition.
    propertyBag String
    Sql Server Json Property Bag.
    registrationID String
    ID for Parent Sql Server Registration.
    version String
    Version of the Sql Server.
    id string
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name string
    The name of the resource
    type string
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    cores number
    Cores of the Sql Server.
    edition string
    Sql Server Edition.
    propertyBag string
    Sql Server Json Property Bag.
    registrationID string
    ID for Parent Sql Server Registration.
    version string
    Version of the Sql Server.
    id str
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name str
    The name of the resource
    type str
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    cores int
    Cores of the Sql Server.
    edition str
    Sql Server Edition.
    property_bag str
    Sql Server Json Property Bag.
    registration_id str
    ID for Parent Sql Server Registration.
    version str
    Version of the Sql Server.
    id String
    Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    name String
    The name of the resource
    type String
    The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
    cores Number
    Cores of the Sql Server.
    edition String
    Sql Server Edition.
    propertyBag String
    Sql Server Json Property Bag.
    registrationID String
    ID for Parent Sql Server Registration.
    version String
    Version of the Sql Server.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi