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

ibm.getIsImageInstanceProfiles

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 ImageInstanceProfileCollection.For more information, about infrastructure image instance profiles, see IBM Cloud Importing and managing custom images.

    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.getIsImageInstanceProfiles({
        identifier: "ibm_is_image.isExampleImage.id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_image_instance_profiles(identifier="ibm_is_image.isExampleImage.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.GetIsImageInstanceProfiles(ctx, &ibm.GetIsImageInstanceProfilesArgs{
    			Identifier: "ibm_is_image.isExampleImage.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.GetIsImageInstanceProfiles.Invoke(new()
        {
            Identifier = "ibm_is_image.isExampleImage.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.GetIsImageInstanceProfilesArgs;
    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.getIsImageInstanceProfiles(GetIsImageInstanceProfilesArgs.builder()
                .identifier("ibm_is_image.isExampleImage.id")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsImageInstanceProfiles
          arguments:
            identifier: ibm_is_image.isExampleImage.id
    

    Using getIsImageInstanceProfiles

    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 getIsImageInstanceProfiles(args: GetIsImageInstanceProfilesArgs, opts?: InvokeOptions): Promise<GetIsImageInstanceProfilesResult>
    function getIsImageInstanceProfilesOutput(args: GetIsImageInstanceProfilesOutputArgs, opts?: InvokeOptions): Output<GetIsImageInstanceProfilesResult>
    def get_is_image_instance_profiles(id: Optional[str] = None,
                                       identifier: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetIsImageInstanceProfilesResult
    def get_is_image_instance_profiles_output(id: Optional[pulumi.Input[str]] = None,
                                       identifier: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetIsImageInstanceProfilesResult]
    func GetIsImageInstanceProfiles(ctx *Context, args *GetIsImageInstanceProfilesArgs, opts ...InvokeOption) (*GetIsImageInstanceProfilesResult, error)
    func GetIsImageInstanceProfilesOutput(ctx *Context, args *GetIsImageInstanceProfilesOutputArgs, opts ...InvokeOption) GetIsImageInstanceProfilesResultOutput

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

    public static class GetIsImageInstanceProfiles 
    {
        public static Task<GetIsImageInstanceProfilesResult> InvokeAsync(GetIsImageInstanceProfilesArgs args, InvokeOptions? opts = null)
        public static Output<GetIsImageInstanceProfilesResult> Invoke(GetIsImageInstanceProfilesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsImageInstanceProfilesResult> getIsImageInstanceProfiles(GetIsImageInstanceProfilesArgs args, InvokeOptions options)
    public static Output<GetIsImageInstanceProfilesResult> getIsImageInstanceProfiles(GetIsImageInstanceProfilesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsImageInstanceProfiles:getIsImageInstanceProfiles
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    The image identifier.
    Id string
    The unique identifier of the ImageInstanceProfileCollection.
    Identifier string
    The image identifier.
    Id string
    The unique identifier of the ImageInstanceProfileCollection.
    identifier String
    The image identifier.
    id String
    The unique identifier of the ImageInstanceProfileCollection.
    identifier string
    The image identifier.
    id string
    The unique identifier of the ImageInstanceProfileCollection.
    identifier str
    The image identifier.
    id str
    The unique identifier of the ImageInstanceProfileCollection.
    identifier String
    The image identifier.
    id String
    The unique identifier of the ImageInstanceProfileCollection.

    getIsImageInstanceProfiles Result

    The following output properties are available:

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

    Supporting Types

    GetIsImageInstanceProfilesInstanceProfile

    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