1. Packages
  2. Azure Native
  3. API Docs
  4. sql
  5. getGeoBackupPolicy
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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.sql.getGeoBackupPolicy

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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Gets a Geo backup policy for the given database resource. Azure REST API version: 2021-11-01.

    Other available API versions: 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview.

    Using getGeoBackupPolicy

    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 getGeoBackupPolicy(args: GetGeoBackupPolicyArgs, opts?: InvokeOptions): Promise<GetGeoBackupPolicyResult>
    function getGeoBackupPolicyOutput(args: GetGeoBackupPolicyOutputArgs, opts?: InvokeOptions): Output<GetGeoBackupPolicyResult>
    def get_geo_backup_policy(database_name: Optional[str] = None,
                              geo_backup_policy_name: Optional[str] = None,
                              resource_group_name: Optional[str] = None,
                              server_name: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetGeoBackupPolicyResult
    def get_geo_backup_policy_output(database_name: Optional[pulumi.Input[str]] = None,
                              geo_backup_policy_name: Optional[pulumi.Input[str]] = None,
                              resource_group_name: Optional[pulumi.Input[str]] = None,
                              server_name: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetGeoBackupPolicyResult]
    func LookupGeoBackupPolicy(ctx *Context, args *LookupGeoBackupPolicyArgs, opts ...InvokeOption) (*LookupGeoBackupPolicyResult, error)
    func LookupGeoBackupPolicyOutput(ctx *Context, args *LookupGeoBackupPolicyOutputArgs, opts ...InvokeOption) LookupGeoBackupPolicyResultOutput

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

    public static class GetGeoBackupPolicy 
    {
        public static Task<GetGeoBackupPolicyResult> InvokeAsync(GetGeoBackupPolicyArgs args, InvokeOptions? opts = null)
        public static Output<GetGeoBackupPolicyResult> Invoke(GetGeoBackupPolicyInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGeoBackupPolicyResult> getGeoBackupPolicy(GetGeoBackupPolicyArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure-native:sql:getGeoBackupPolicy
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatabaseName string
    The name of the database.
    GeoBackupPolicyName string
    The name of the Geo backup policy. This should always be 'Default'.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    DatabaseName string
    The name of the database.
    GeoBackupPolicyName string
    The name of the Geo backup policy. This should always be 'Default'.
    ResourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    ServerName string
    The name of the server.
    databaseName String
    The name of the database.
    geoBackupPolicyName String
    The name of the Geo backup policy. This should always be 'Default'.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.
    databaseName string
    The name of the database.
    geoBackupPolicyName string
    The name of the Geo backup policy. This should always be 'Default'.
    resourceGroupName string
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName string
    The name of the server.
    database_name str
    The name of the database.
    geo_backup_policy_name str
    The name of the Geo backup policy. This should always be 'Default'.
    resource_group_name str
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    server_name str
    The name of the server.
    databaseName String
    The name of the database.
    geoBackupPolicyName String
    The name of the Geo backup policy. This should always be 'Default'.
    resourceGroupName String
    The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
    serverName String
    The name of the server.

    getGeoBackupPolicy Result

    The following output properties are available:

    Id string
    Resource ID.
    Kind string
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    Location string
    Backup policy location.
    Name string
    Resource name.
    State string
    The state of the geo backup policy.
    StorageType string
    The storage type of the geo backup policy.
    Type string
    Resource type.
    Id string
    Resource ID.
    Kind string
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    Location string
    Backup policy location.
    Name string
    Resource name.
    State string
    The state of the geo backup policy.
    StorageType string
    The storage type of the geo backup policy.
    Type string
    Resource type.
    id String
    Resource ID.
    kind String
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    location String
    Backup policy location.
    name String
    Resource name.
    state String
    The state of the geo backup policy.
    storageType String
    The storage type of the geo backup policy.
    type String
    Resource type.
    id string
    Resource ID.
    kind string
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    location string
    Backup policy location.
    name string
    Resource name.
    state string
    The state of the geo backup policy.
    storageType string
    The storage type of the geo backup policy.
    type string
    Resource type.
    id str
    Resource ID.
    kind str
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    location str
    Backup policy location.
    name str
    Resource name.
    state str
    The state of the geo backup policy.
    storage_type str
    The storage type of the geo backup policy.
    type str
    Resource type.
    id String
    Resource ID.
    kind String
    Kind of geo backup policy. This is metadata used for the Azure portal experience.
    location String
    Backup policy location.
    name String
    Resource name.
    state String
    The state of the geo backup policy.
    storageType String
    The storage type of the geo backup policy.
    type String
    Resource type.

    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.73.0 published on Wednesday, Nov 20, 2024 by Pulumi