1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsSnapshotInstanceProfiles
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

ibm.getIsSnapshotInstanceProfiles

Explore with Pulumi AI

ibm logo
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about an SnapshotInstanceProfileCollection.For more information, about infrastructure snapshots instance profiles, see viewing snapshots.

    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 example = ibm.getIsSnapshotInstanceProfiles({
        identifier: "ibm_is_snapshot.example.id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_snapshot_instance_profiles(identifier="ibm_is_snapshot.example.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.GetIsSnapshotInstanceProfiles(ctx, &ibm.GetIsSnapshotInstanceProfilesArgs{
    			Identifier: "ibm_is_snapshot.example.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 example = Ibm.GetIsSnapshotInstanceProfiles.Invoke(new()
        {
            Identifier = "ibm_is_snapshot.example.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.GetIsSnapshotInstanceProfilesArgs;
    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 example = IbmFunctions.getIsSnapshotInstanceProfiles(GetIsSnapshotInstanceProfilesArgs.builder()
                .identifier("ibm_is_snapshot.example.id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsSnapshotInstanceProfiles
          arguments:
            identifier: ibm_is_snapshot.example.id
    

    Using getIsSnapshotInstanceProfiles

    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 getIsSnapshotInstanceProfiles(args: GetIsSnapshotInstanceProfilesArgs, opts?: InvokeOptions): Promise<GetIsSnapshotInstanceProfilesResult>
    function getIsSnapshotInstanceProfilesOutput(args: GetIsSnapshotInstanceProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsSnapshotInstanceProfilesResult>
    def get_is_snapshot_instance_profiles(id: Optional[str] = None,
                                          identifier: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetIsSnapshotInstanceProfilesResult
    def get_is_snapshot_instance_profiles_output(id: Optional[pulumi.Input[str]] = None,
                                          identifier: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetIsSnapshotInstanceProfilesResult]
    func GetIsSnapshotInstanceProfiles(ctx *Context, args *GetIsSnapshotInstanceProfilesArgs, opts ...InvokeOption) (*GetIsSnapshotInstanceProfilesResult, error)
    func GetIsSnapshotInstanceProfilesOutput(ctx *Context, args *GetIsSnapshotInstanceProfilesOutputArgs, opts ...InvokeOption) GetIsSnapshotInstanceProfilesResultOutput

    > Note: This function is named GetIsSnapshotInstanceProfiles in the Go SDK.

    public static class GetIsSnapshotInstanceProfiles 
    {
        public static Task<GetIsSnapshotInstanceProfilesResult> InvokeAsync(GetIsSnapshotInstanceProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsSnapshotInstanceProfilesResult> Invoke(GetIsSnapshotInstanceProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsSnapshotInstanceProfilesResult> getIsSnapshotInstanceProfiles(GetIsSnapshotInstanceProfilesArgs args, InvokeOptions options)
    public static Output<GetIsSnapshotInstanceProfilesResult> getIsSnapshotInstanceProfiles(GetIsSnapshotInstanceProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsSnapshotInstanceProfiles:getIsSnapshotInstanceProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    The snapshot identifier.
    Id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    Identifier string
    The snapshot identifier.
    Id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier String
    The snapshot identifier.
    id String
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier string
    The snapshot identifier.
    id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier str
    The snapshot identifier.
    id str
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier String
    The snapshot identifier.
    id String
    The unique identifier of the SnapshotInstanceProfileCollection.

    getIsSnapshotInstanceProfiles Result

    The following output properties are available:

    Id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    Identifier string
    InstanceProfiles List<GetIsSnapshotInstanceProfilesInstanceProfile>
    (List) A page of instance profiles compatible with the snapshot.
    Id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    Identifier string
    InstanceProfiles []GetIsSnapshotInstanceProfilesInstanceProfile
    (List) A page of instance profiles compatible with the snapshot.
    id String
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier String
    instanceProfiles List<GetIsSnapshotInstanceProfilesInstanceProfile>
    (List) A page of instance profiles compatible with the snapshot.
    id string
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier string
    instanceProfiles GetIsSnapshotInstanceProfilesInstanceProfile[]
    (List) A page of instance profiles compatible with the snapshot.
    id str
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier str
    instance_profiles Sequence[GetIsSnapshotInstanceProfilesInstanceProfile]
    (List) A page of instance profiles compatible with the snapshot.
    id String
    The unique identifier of the SnapshotInstanceProfileCollection.
    identifier String
    instanceProfiles List<Property Map>
    (List) A page of instance profiles compatible with the snapshot.

    Supporting Types

    GetIsSnapshotInstanceProfilesInstanceProfile

    Href string
    (String) The URL for this virtual server instance profile.
    Name string
    (String) The globally unique name for this virtual server instance profile.
    ResourceType string
    (String) The resource type.
    Href string
    (String) The URL for this virtual server instance profile.
    Name string
    (String) The globally unique name for this virtual server instance profile.
    ResourceType string
    (String) The resource type.
    href String
    (String) The URL for this virtual server instance profile.
    name String
    (String) The globally unique name for this virtual server instance profile.
    resourceType String
    (String) The resource type.
    href string
    (String) The URL for this virtual server instance profile.
    name string
    (String) The globally unique name for this virtual server instance profile.
    resourceType string
    (String) The resource type.
    href str
    (String) The URL for this virtual server instance profile.
    name str
    (String) The globally unique name for this virtual server instance profile.
    resource_type str
    (String) The resource type.
    href String
    (String) The URL for this virtual server instance profile.
    name String
    (String) The globally unique name for this virtual server instance profile.
    resourceType String
    (String) The resource type.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud