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
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:
- 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:
- 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.
- 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.
- 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.
- 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.
- 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
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