Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi
gcp.backupdisasterrecovery.getBackupPlanAssociation
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my-backupplan-association = gcp.backupdisasterrecovery.getBackupPlanAssociation({
location: "us-central1",
backupPlanAssociationId: "bpa-id",
});
import pulumi
import pulumi_gcp as gcp
my_backupplan_association = gcp.backupdisasterrecovery.get_backup_plan_association(location="us-central1",
backup_plan_association_id="bpa-id")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/backupdisasterrecovery"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := backupdisasterrecovery.LookupBackupPlanAssociation(ctx, &backupdisasterrecovery.LookupBackupPlanAssociationArgs{
Location: "us-central1",
BackupPlanAssociationId: "bpa-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var my_backupplan_association = Gcp.BackupDisasterRecovery.GetBackupPlanAssociation.Invoke(new()
{
Location = "us-central1",
BackupPlanAssociationId = "bpa-id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.backupdisasterrecovery.BackupdisasterrecoveryFunctions;
import com.pulumi.gcp.backupdisasterrecovery.inputs.GetBackupPlanAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-backupplan-association = BackupdisasterrecoveryFunctions.getBackupPlanAssociation(GetBackupPlanAssociationArgs.builder()
.location("us-central1")
.backupPlanAssociationId("bpa-id")
.build());
}
}
variables:
my-backupplan-association:
fn::invoke:
Function: gcp:backupdisasterrecovery:getBackupPlanAssociation
Arguments:
location: us-central1
backupPlanAssociationId: bpa-id
Using getBackupPlanAssociation
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 getBackupPlanAssociation(args: GetBackupPlanAssociationArgs, opts?: InvokeOptions): Promise<GetBackupPlanAssociationResult>
function getBackupPlanAssociationOutput(args: GetBackupPlanAssociationOutputArgs, opts?: InvokeOptions): Output<GetBackupPlanAssociationResult>
def get_backup_plan_association(backup_plan_association_id: Optional[str] = None,
location: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBackupPlanAssociationResult
def get_backup_plan_association_output(backup_plan_association_id: Optional[pulumi.Input[str]] = None,
location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBackupPlanAssociationResult]
func LookupBackupPlanAssociation(ctx *Context, args *LookupBackupPlanAssociationArgs, opts ...InvokeOption) (*LookupBackupPlanAssociationResult, error)
func LookupBackupPlanAssociationOutput(ctx *Context, args *LookupBackupPlanAssociationOutputArgs, opts ...InvokeOption) LookupBackupPlanAssociationResultOutput
> Note: This function is named LookupBackupPlanAssociation
in the Go SDK.
public static class GetBackupPlanAssociation
{
public static Task<GetBackupPlanAssociationResult> InvokeAsync(GetBackupPlanAssociationArgs args, InvokeOptions? opts = null)
public static Output<GetBackupPlanAssociationResult> Invoke(GetBackupPlanAssociationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetBackupPlanAssociationResult> getBackupPlanAssociation(GetBackupPlanAssociationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gcp:backupdisasterrecovery/getBackupPlanAssociation:getBackupPlanAssociation
arguments:
# arguments dictionary
The following arguments are supported:
- Backup
Plan stringAssociation Id - The id of Backupplan association resource.
- Location string
- The location in which the Backupplan association resource belongs.
- Project string
- Backup
Plan stringAssociation Id - The id of Backupplan association resource.
- Location string
- The location in which the Backupplan association resource belongs.
- Project string
- backup
Plan StringAssociation Id - The id of Backupplan association resource.
- location String
- The location in which the Backupplan association resource belongs.
- project String
- backup
Plan stringAssociation Id - The id of Backupplan association resource.
- location string
- The location in which the Backupplan association resource belongs.
- project string
- backup_
plan_ strassociation_ id - The id of Backupplan association resource.
- location str
- The location in which the Backupplan association resource belongs.
- project str
- backup
Plan StringAssociation Id - The id of Backupplan association resource.
- location String
- The location in which the Backupplan association resource belongs.
- project String
getBackupPlanAssociation Result
The following output properties are available:
- Backup
Plan string - Backup
Plan stringAssociation Id - Create
Time string - Data
Source string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Successful stringBackup Consistency Time - Location string
- Name string
- Resource string
- Resource
Type string - Rules
Config List<GetInfos Backup Plan Association Rules Config Info> - Update
Time string - Project string
- Backup
Plan string - Backup
Plan stringAssociation Id - Create
Time string - Data
Source string - Id string
- The provider-assigned unique ID for this managed resource.
- Last
Successful stringBackup Consistency Time - Location string
- Name string
- Resource string
- Resource
Type string - Rules
Config []GetInfos Backup Plan Association Rules Config Info - Update
Time string - Project string
- backup
Plan String - backup
Plan StringAssociation Id - create
Time String - data
Source String - id String
- The provider-assigned unique ID for this managed resource.
- last
Successful StringBackup Consistency Time - location String
- name String
- resource String
- resource
Type String - rules
Config List<GetInfos Backup Plan Association Rules Config Info> - update
Time String - project String
- backup
Plan string - backup
Plan stringAssociation Id - create
Time string - data
Source string - id string
- The provider-assigned unique ID for this managed resource.
- last
Successful stringBackup Consistency Time - location string
- name string
- resource string
- resource
Type string - rules
Config GetInfos Backup Plan Association Rules Config Info[] - update
Time string - project string
- backup_
plan str - backup_
plan_ strassociation_ id - create_
time str - data_
source str - id str
- The provider-assigned unique ID for this managed resource.
- last_
successful_ strbackup_ consistency_ time - location str
- name str
- resource str
- resource_
type str - rules_
config_ Sequence[Getinfos Backup Plan Association Rules Config Info] - update_
time str - project str
- backup
Plan String - backup
Plan StringAssociation Id - create
Time String - data
Source String - id String
- The provider-assigned unique ID for this managed resource.
- last
Successful StringBackup Consistency Time - location String
- name String
- resource String
- resource
Type String - rules
Config List<Property Map>Infos - update
Time String - project String
Supporting Types
GetBackupPlanAssociationRulesConfigInfo
- Last
Backup List<GetErrors Backup Plan Association Rules Config Info Last Backup Error> - google.rpc.Status object to store the last backup error
- Last
Backup stringState - State of last backup taken.
- Rule
Id string - Backup Rule id fetched from backup plan.
- Last
Backup []GetErrors Backup Plan Association Rules Config Info Last Backup Error - google.rpc.Status object to store the last backup error
- Last
Backup stringState - State of last backup taken.
- Rule
Id string - Backup Rule id fetched from backup plan.
- last
Backup List<GetErrors Backup Plan Association Rules Config Info Last Backup Error> - google.rpc.Status object to store the last backup error
- last
Backup StringState - State of last backup taken.
- rule
Id String - Backup Rule id fetched from backup plan.
- last
Backup GetErrors Backup Plan Association Rules Config Info Last Backup Error[] - google.rpc.Status object to store the last backup error
- last
Backup stringState - State of last backup taken.
- rule
Id string - Backup Rule id fetched from backup plan.
- last_
backup_ Sequence[Geterrors Backup Plan Association Rules Config Info Last Backup Error] - google.rpc.Status object to store the last backup error
- last_
backup_ strstate - State of last backup taken.
- rule_
id str - Backup Rule id fetched from backup plan.
- last
Backup List<Property Map>Errors - google.rpc.Status object to store the last backup error
- last
Backup StringState - State of last backup taken.
- rule
Id String - Backup Rule id fetched from backup plan.
GetBackupPlanAssociationRulesConfigInfoLastBackupError
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.