ibm.getIsSnapshotConsistencyGroup
Explore with Pulumi AI
Provides a read-only data source to retrieve information about a SnapshotConsistencyGroup. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const isSnapshotConsistencyGroup = ibm.getIsSnapshotConsistencyGroup({
identifier: ibm_is_snapshot_consistency_group.is_snapshot_consistency_group.id,
});
import pulumi
import pulumi_ibm as ibm
is_snapshot_consistency_group = ibm.get_is_snapshot_consistency_group(identifier=ibm_is_snapshot_consistency_group["is_snapshot_consistency_group"]["id"])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.LookupIsSnapshotConsistencyGroup(ctx, &ibm.LookupIsSnapshotConsistencyGroupArgs{
Identifier: pulumi.StringRef(ibm_is_snapshot_consistency_group.Is_snapshot_consistency_group.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var isSnapshotConsistencyGroup = Ibm.GetIsSnapshotConsistencyGroup.Invoke(new()
{
Identifier = ibm_is_snapshot_consistency_group.Is_snapshot_consistency_group.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IbmFunctions;
import com.pulumi.ibm.inputs.GetIsSnapshotConsistencyGroupArgs;
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 isSnapshotConsistencyGroup = IbmFunctions.getIsSnapshotConsistencyGroup(GetIsSnapshotConsistencyGroupArgs.builder()
.identifier(ibm_is_snapshot_consistency_group.is_snapshot_consistency_group().id())
.build());
}
}
variables:
isSnapshotConsistencyGroup:
fn::invoke:
function: ibm:getIsSnapshotConsistencyGroup
arguments:
identifier: ${ibm_is_snapshot_consistency_group.is_snapshot_consistency_group.id}
Using getIsSnapshotConsistencyGroup
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 getIsSnapshotConsistencyGroup(args: GetIsSnapshotConsistencyGroupArgs, opts?: InvokeOptions): Promise<GetIsSnapshotConsistencyGroupResult>
function getIsSnapshotConsistencyGroupOutput(args: GetIsSnapshotConsistencyGroupOutputArgs, opts?: InvokeOptions): Output<GetIsSnapshotConsistencyGroupResult>
def get_is_snapshot_consistency_group(access_tags: Optional[Sequence[str]] = None,
id: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetIsSnapshotConsistencyGroupResult
def get_is_snapshot_consistency_group_output(access_tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
identifier: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetIsSnapshotConsistencyGroupResult]
func LookupIsSnapshotConsistencyGroup(ctx *Context, args *LookupIsSnapshotConsistencyGroupArgs, opts ...InvokeOption) (*LookupIsSnapshotConsistencyGroupResult, error)
func LookupIsSnapshotConsistencyGroupOutput(ctx *Context, args *LookupIsSnapshotConsistencyGroupOutputArgs, opts ...InvokeOption) LookupIsSnapshotConsistencyGroupResultOutput
> Note: This function is named LookupIsSnapshotConsistencyGroup
in the Go SDK.
public static class GetIsSnapshotConsistencyGroup
{
public static Task<GetIsSnapshotConsistencyGroupResult> InvokeAsync(GetIsSnapshotConsistencyGroupArgs args, InvokeOptions? opts = null)
public static Output<GetIsSnapshotConsistencyGroupResult> Invoke(GetIsSnapshotConsistencyGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetIsSnapshotConsistencyGroupResult> getIsSnapshotConsistencyGroup(GetIsSnapshotConsistencyGroupArgs args, InvokeOptions options)
public static Output<GetIsSnapshotConsistencyGroupResult> getIsSnapshotConsistencyGroup(GetIsSnapshotConsistencyGroupArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getIsSnapshotConsistencyGroup:getIsSnapshotConsistencyGroup
arguments:
# arguments dictionary
The following arguments are supported:
- List<string>
- Id string
- (String) The unique identifier for this snapshot.
- Identifier string
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - List<string>
- []string
- Id string
- (String) The unique identifier for this snapshot.
- Identifier string
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - []string
- List<String>
- id String
- (String) The unique identifier for this snapshot.
- identifier String
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - List<String>
- string[]
- id string
- (String) The unique identifier for this snapshot.
- identifier string
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - string[]
- Sequence[str]
- id str
- (String) The unique identifier for this snapshot.
- identifier str
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - name str
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - Sequence[str]
- List<String>
- id String
- (String) The unique identifier for this snapshot.
- identifier String
- The snapshot consistency group identifier,
name
andidentifier
are mutually exclusive. - name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - List<String>
getIsSnapshotConsistencyGroup Result
The following output properties are available:
- List<string>
- Backup
Policy List<GetPlans Is Snapshot Consistency Group Backup Policy Plan> - (List) If present, the backup policy plan which created this snapshot consistency group.
- Created
At string - (String) The date and time that this snapshot consistency group was created.
- Crn string
- (String) The CRN of this snapshot.
- Delete
Snapshots boolOn Delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Lifecycle
State string - (String) The lifecycle state of this snapshot consistency group.
- Resource
Groups List<GetIs Snapshot Consistency Group Resource Group> - (List) The resource group for this snapshot consistency group.
- Resource
Type string - (String) The resource type.
- List<string>
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - Snapshots
List<Get
Is Snapshot Consistency Group Snapshot> - (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - List<string>
- Identifier string
- Name string
- (String) The globally unique name for this region.
- []string
- Backup
Policy []GetPlans Is Snapshot Consistency Group Backup Policy Plan - (List) If present, the backup policy plan which created this snapshot consistency group.
- Created
At string - (String) The date and time that this snapshot consistency group was created.
- Crn string
- (String) The CRN of this snapshot.
- Delete
Snapshots boolOn Delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Lifecycle
State string - (String) The lifecycle state of this snapshot consistency group.
- Resource
Groups []GetIs Snapshot Consistency Group Resource Group - (List) The resource group for this snapshot consistency group.
- Resource
Type string - (String) The resource type.
- []string
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - Snapshots
[]Get
Is Snapshot Consistency Group Snapshot - (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - []string
- Identifier string
- Name string
- (String) The globally unique name for this region.
- List<String>
- backup
Policy List<GetPlans Is Snapshot Consistency Group Backup Policy Plan> - (List) If present, the backup policy plan which created this snapshot consistency group.
- created
At String - (String) The date and time that this snapshot consistency group was created.
- crn String
- (String) The CRN of this snapshot.
- delete
Snapshots BooleanOn Delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- lifecycle
State String - (String) The lifecycle state of this snapshot consistency group.
- resource
Groups List<GetIs Snapshot Consistency Group Resource Group> - (List) The resource group for this snapshot consistency group.
- resource
Type String - (String) The resource type.
- List<String>
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - snapshots
List<Get
Is Snapshot Consistency Group Snapshot> - (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - List<String>
- identifier String
- name String
- (String) The globally unique name for this region.
- string[]
- backup
Policy GetPlans Is Snapshot Consistency Group Backup Policy Plan[] - (List) If present, the backup policy plan which created this snapshot consistency group.
- created
At string - (String) The date and time that this snapshot consistency group was created.
- crn string
- (String) The CRN of this snapshot.
- delete
Snapshots booleanOn Delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- href string
- (String) The URL for this region.
- id string
- (String) The unique identifier for this snapshot.
- lifecycle
State string - (String) The lifecycle state of this snapshot consistency group.
- resource
Groups GetIs Snapshot Consistency Group Resource Group[] - (List) The resource group for this snapshot consistency group.
- resource
Type string - (String) The resource type.
- string[]
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - snapshots
Get
Is Snapshot Consistency Group Snapshot[] - (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - string[]
- identifier string
- name string
- (String) The globally unique name for this region.
- Sequence[str]
- backup_
policy_ Sequence[Getplans Is Snapshot Consistency Group Backup Policy Plan] - (List) If present, the backup policy plan which created this snapshot consistency group.
- created_
at str - (String) The date and time that this snapshot consistency group was created.
- crn str
- (String) The CRN of this snapshot.
- delete_
snapshots_ boolon_ delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- href str
- (String) The URL for this region.
- id str
- (String) The unique identifier for this snapshot.
- lifecycle_
state str - (String) The lifecycle state of this snapshot consistency group.
- resource_
groups Sequence[GetIs Snapshot Consistency Group Resource Group] - (List) The resource group for this snapshot consistency group.
- resource_
type str - (String) The resource type.
- Sequence[str]
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - snapshots
Sequence[Get
Is Snapshot Consistency Group Snapshot] - (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - Sequence[str]
- identifier str
- name str
- (String) The globally unique name for this region.
- List<String>
- backup
Policy List<Property Map>Plans - (List) If present, the backup policy plan which created this snapshot consistency group.
- created
At String - (String) The date and time that this snapshot consistency group was created.
- crn String
- (String) The CRN of this snapshot.
- delete
Snapshots BooleanOn Delete - (Boolean) Indicates whether deleting the snapshot consistency group will also delete the snapshots in the group.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- lifecycle
State String - (String) The lifecycle state of this snapshot consistency group.
- resource
Groups List<Property Map> - (List) The resource group for this snapshot consistency group.
- resource
Type String - (String) The resource type.
- List<String>
- (List) The service tags
is.instance:
prefix associated with this snapshot consistency group. - snapshots List<Property Map>
- (List) The member snapshots that are data-consistent with respect to captured time. (may bedeleted).
Nested schema for
snapshots
: - List<String>
- identifier String
- name String
- (String) The globally unique name for this region.
Supporting Types
GetIsSnapshotConsistencyGroupBackupPolicyPlan
- Deleteds
List<Get
Is Snapshot Consistency Group Backup Policy Plan Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - Remotes
List<Get
Is Snapshot Consistency Group Backup Policy Plan Remote> - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- Resource
Type string - (String) The resource type.
- Deleteds
[]Get
Is Snapshot Consistency Group Backup Policy Plan Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - Remotes
[]Get
Is Snapshot Consistency Group Backup Policy Plan Remote - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- Resource
Type string - (String) The resource type.
- deleteds
List<Get
Is Snapshot Consistency Group Backup Policy Plan Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
List<Get
Is Snapshot Consistency Group Backup Policy Plan Remote> - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type String - (String) The resource type.
- deleteds
Get
Is Snapshot Consistency Group Backup Policy Plan Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href string
- (String) The URL for this region.
- id string
- (String) The unique identifier for this snapshot.
- name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
Get
Is Snapshot Consistency Group Backup Policy Plan Remote[] - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type string - (String) The resource type.
- deleteds
Sequence[Get
Is Snapshot Consistency Group Backup Policy Plan Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href str
- (String) The URL for this region.
- id str
- (String) The unique identifier for this snapshot.
- name str
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
Sequence[Get
Is Snapshot Consistency Group Backup Policy Plan Remote] - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource_
type str - (String) The resource type.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes List<Property Map>
- (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type String - (String) The resource type.
GetIsSnapshotConsistencyGroupBackupPolicyPlanDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
GetIsSnapshotConsistencyGroupBackupPolicyPlanRemote
GetIsSnapshotConsistencyGroupResourceGroup
GetIsSnapshotConsistencyGroupSnapshot
- Crn string
- (String) The CRN of this snapshot.
- Deleteds
List<Get
Is Snapshot Consistency Group Snapshot Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - Remotes
List<Get
Is Snapshot Consistency Group Snapshot Remote> - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- Resource
Type string - (String) The resource type.
- Crn string
- (String) The CRN of this snapshot.
- Deleteds
[]Get
Is Snapshot Consistency Group Snapshot Deleted - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- Href string
- (String) The URL for this region.
- Id string
- (String) The unique identifier for this snapshot.
- Name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - Remotes
[]Get
Is Snapshot Consistency Group Snapshot Remote - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- Resource
Type string - (String) The resource type.
- crn String
- (String) The CRN of this snapshot.
- deleteds
List<Get
Is Snapshot Consistency Group Snapshot Deleted> - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
List<Get
Is Snapshot Consistency Group Snapshot Remote> - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type String - (String) The resource type.
- crn string
- (String) The CRN of this snapshot.
- deleteds
Get
Is Snapshot Consistency Group Snapshot Deleted[] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href string
- (String) The URL for this region.
- id string
- (String) The unique identifier for this snapshot.
- name string
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
Get
Is Snapshot Consistency Group Snapshot Remote[] - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type string - (String) The resource type.
- crn str
- (String) The CRN of this snapshot.
- deleteds
Sequence[Get
Is Snapshot Consistency Group Snapshot Deleted] - (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href str
- (String) The URL for this region.
- id str
- (String) The unique identifier for this snapshot.
- name str
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes
Sequence[Get
Is Snapshot Consistency Group Snapshot Remote] - (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource_
type str - (String) The resource type.
- crn String
- (String) The CRN of this snapshot.
- deleteds List<Property Map>
- (List) If present, this property indicates the referenced resource has been deleted, and providessome supplementary information.
- href String
- (String) The URL for this region.
- id String
- (String) The unique identifier for this snapshot.
- name String
- The name of the snapshot consistency group,
name
andidentifier
are mutually exclusive. - remotes List<Property Map>
- (List) If present, this property indicates that the resource associated with this referenceis remote and therefore may not be directly retrievable.
- resource
Type String - (String) The resource type.
GetIsSnapshotConsistencyGroupSnapshotDeleted
- More
Info string - (String) Link to documentation about deleted resources.
- More
Info string - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
- more
Info string - (String) Link to documentation about deleted resources.
- more_
info str - (String) Link to documentation about deleted resources.
- more
Info String - (String) Link to documentation about deleted resources.
GetIsSnapshotConsistencyGroupSnapshotRemote
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.