1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. backupdisasterrecovery
  5. getBackupPlanAssociation
Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

gcp.backupdisasterrecovery.getBackupPlanAssociation

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi

    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:

    BackupPlanAssociationId string
    The id of Backupplan association resource.


    Location string
    The location in which the Backupplan association resource belongs.
    Project string
    BackupPlanAssociationId string
    The id of Backupplan association resource.


    Location string
    The location in which the Backupplan association resource belongs.
    Project string
    backupPlanAssociationId String
    The id of Backupplan association resource.


    location String
    The location in which the Backupplan association resource belongs.
    project String
    backupPlanAssociationId string
    The id of Backupplan association resource.


    location string
    The location in which the Backupplan association resource belongs.
    project string
    backup_plan_association_id str
    The id of Backupplan association resource.


    location str
    The location in which the Backupplan association resource belongs.
    project str
    backupPlanAssociationId String
    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:

    BackupPlan string
    BackupPlanAssociationId string
    CreateTime string
    DataSource string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSuccessfulBackupConsistencyTime string
    Location string
    Name string
    Resource string
    ResourceType string
    RulesConfigInfos List<GetBackupPlanAssociationRulesConfigInfo>
    UpdateTime string
    Project string
    BackupPlan string
    BackupPlanAssociationId string
    CreateTime string
    DataSource string
    Id string
    The provider-assigned unique ID for this managed resource.
    LastSuccessfulBackupConsistencyTime string
    Location string
    Name string
    Resource string
    ResourceType string
    RulesConfigInfos []GetBackupPlanAssociationRulesConfigInfo
    UpdateTime string
    Project string
    backupPlan String
    backupPlanAssociationId String
    createTime String
    dataSource String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulBackupConsistencyTime String
    location String
    name String
    resource String
    resourceType String
    rulesConfigInfos List<GetBackupPlanAssociationRulesConfigInfo>
    updateTime String
    project String
    backupPlan string
    backupPlanAssociationId string
    createTime string
    dataSource string
    id string
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulBackupConsistencyTime string
    location string
    name string
    resource string
    resourceType string
    rulesConfigInfos GetBackupPlanAssociationRulesConfigInfo[]
    updateTime string
    project string
    backupPlan String
    backupPlanAssociationId String
    createTime String
    dataSource String
    id String
    The provider-assigned unique ID for this managed resource.
    lastSuccessfulBackupConsistencyTime String
    location String
    name String
    resource String
    resourceType String
    rulesConfigInfos List<Property Map>
    updateTime String
    project String

    Supporting Types

    GetBackupPlanAssociationRulesConfigInfo

    LastBackupErrors List<GetBackupPlanAssociationRulesConfigInfoLastBackupError>
    google.rpc.Status object to store the last backup error
    LastBackupState string
    State of last backup taken.
    RuleId string
    Backup Rule id fetched from backup plan.
    LastBackupErrors []GetBackupPlanAssociationRulesConfigInfoLastBackupError
    google.rpc.Status object to store the last backup error
    LastBackupState string
    State of last backup taken.
    RuleId string
    Backup Rule id fetched from backup plan.
    lastBackupErrors List<GetBackupPlanAssociationRulesConfigInfoLastBackupError>
    google.rpc.Status object to store the last backup error
    lastBackupState String
    State of last backup taken.
    ruleId String
    Backup Rule id fetched from backup plan.
    lastBackupErrors GetBackupPlanAssociationRulesConfigInfoLastBackupError[]
    google.rpc.Status object to store the last backup error
    lastBackupState string
    State of last backup taken.
    ruleId string
    Backup Rule id fetched from backup plan.
    last_backup_errors Sequence[GetBackupPlanAssociationRulesConfigInfoLastBackupError]
    google.rpc.Status object to store the last backup error
    last_backup_state str
    State of last backup taken.
    rule_id str
    Backup Rule id fetched from backup plan.
    lastBackupErrors List<Property Map>
    google.rpc.Status object to store the last backup error
    lastBackupState String
    State of last backup taken.
    ruleId String
    Backup Rule id fetched from backup plan.

    GetBackupPlanAssociationRulesConfigInfoLastBackupError

    Code double
    The status code, which should be an enum value of [google.rpc.Code]
    Message string
    A developer-facing error message, which should be in English.
    Code float64
    The status code, which should be an enum value of [google.rpc.Code]
    Message string
    A developer-facing error message, which should be in English.
    code Double
    The status code, which should be an enum value of [google.rpc.Code]
    message String
    A developer-facing error message, which should be in English.
    code number
    The status code, which should be an enum value of [google.rpc.Code]
    message string
    A developer-facing error message, which should be in English.
    code float
    The status code, which should be an enum value of [google.rpc.Code]
    message str
    A developer-facing error message, which should be in English.
    code Number
    The status code, which should be an enum value of [google.rpc.Code]
    message String
    A developer-facing error message, which should be in English.

    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.
    gcp logo
    Google Cloud Classic v8.10.0 published on Wednesday, Nov 20, 2024 by Pulumi