azure-native.sql.getGeoBackupPolicy
Explore with Pulumi AI
Gets a Geo backup policy for the given database resource.
Uses Azure REST API version 2023-08-01.
Other available API versions: 2014-04-01, 2021-11-01, 2022-02-01-preview, 2022-05-01-preview, 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native sql [ApiVersion]. See the version guide for details.
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)
public static Output<GetGeoBackupPolicyResult> getGeoBackupPolicy(GetGeoBackupPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:sql:getGeoBackupPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Database
Name string - The name of the database.
 - Geo
Backup stringPolicy Name  - The name of the Geo backup policy. This should always be 'Default'.
 - Resource
Group stringName  - 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 string - The name of the server.
 
- Database
Name string - The name of the database.
 - Geo
Backup stringPolicy Name  - The name of the Geo backup policy. This should always be 'Default'.
 - Resource
Group stringName  - 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 string - The name of the server.
 
- database
Name String - The name of the database.
 - geo
Backup StringPolicy Name  - The name of the Geo backup policy. This should always be 'Default'.
 - resource
Group StringName  - 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 String - The name of the server.
 
- database
Name string - The name of the database.
 - geo
Backup stringPolicy Name  - The name of the Geo backup policy. This should always be 'Default'.
 - resource
Group stringName  - 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 string - The name of the server.
 
- database_
name str - The name of the database.
 - geo_
backup_ strpolicy_ name  - The name of the Geo backup policy. This should always be 'Default'.
 - resource_
group_ strname  - 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.
 
- database
Name String - The name of the database.
 - geo
Backup StringPolicy Name  - The name of the Geo backup policy. This should always be 'Default'.
 - resource
Group StringName  - 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 String - The name of the server.
 
getGeoBackupPolicy Result
The following output properties are available:
- Azure
Api stringVersion  - The Azure API version of the resource.
 - 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.
 - Storage
Type string - The storage type of the geo backup policy.
 - Type string
 - Resource type.
 
- Azure
Api stringVersion  - The Azure API version of the resource.
 - 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.
 - Storage
Type string - The storage type of the geo backup policy.
 - Type string
 - Resource type.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - 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.
 - storage
Type String - The storage type of the geo backup policy.
 - type String
 - Resource type.
 
- azure
Api stringVersion  - The Azure API version of the resource.
 - 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.
 - storage
Type string - The storage type of the geo backup policy.
 - type string
 - Resource type.
 
- azure_
api_ strversion  - The Azure API version of the resource.
 - 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.
 
- azure
Api StringVersion  - The Azure API version of the resource.
 - 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.
 - storage
Type 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