1. Packages
  2. Ibm Provider
  3. API Docs
  4. getCmOfferingInstance
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getCmOfferingInstance

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source for ibm.CmOfferingInstance. You can then reference the fields of the data source in other resources within the same configuration using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const cmOfferingInstance = ibm.getCmOfferingInstance({
        instanceIdentifier: "instance_identifier",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    cm_offering_instance = ibm.get_cm_offering_instance(instance_identifier="instance_identifier")
    
    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.LookupCmOfferingInstance(ctx, &ibm.LookupCmOfferingInstanceArgs{
    			InstanceIdentifier: "instance_identifier",
    		}, 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 cmOfferingInstance = Ibm.GetCmOfferingInstance.Invoke(new()
        {
            InstanceIdentifier = "instance_identifier",
        });
    
    });
    
    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.GetCmOfferingInstanceArgs;
    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 cmOfferingInstance = IbmFunctions.getCmOfferingInstance(GetCmOfferingInstanceArgs.builder()
                .instanceIdentifier("instance_identifier")
                .build());
    
        }
    }
    
    variables:
      cmOfferingInstance:
        fn::invoke:
          function: ibm:getCmOfferingInstance
          arguments:
            instanceIdentifier: instance_identifier
    

    Using getCmOfferingInstance

    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 getCmOfferingInstance(args: GetCmOfferingInstanceArgs, opts?: InvokeOptions): Promise<GetCmOfferingInstanceResult>
    function getCmOfferingInstanceOutput(args: GetCmOfferingInstanceOutputArgs, opts?: InvokeOptions): Output<GetCmOfferingInstanceResult>
    def get_cm_offering_instance(id: Optional[str] = None,
                                 instance_identifier: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCmOfferingInstanceResult
    def get_cm_offering_instance_output(id: Optional[pulumi.Input[str]] = None,
                                 instance_identifier: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCmOfferingInstanceResult]
    func LookupCmOfferingInstance(ctx *Context, args *LookupCmOfferingInstanceArgs, opts ...InvokeOption) (*LookupCmOfferingInstanceResult, error)
    func LookupCmOfferingInstanceOutput(ctx *Context, args *LookupCmOfferingInstanceOutputArgs, opts ...InvokeOption) LookupCmOfferingInstanceResultOutput

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

    public static class GetCmOfferingInstance 
    {
        public static Task<GetCmOfferingInstanceResult> InvokeAsync(GetCmOfferingInstanceArgs args, InvokeOptions? opts = null)
        public static Output<GetCmOfferingInstanceResult> Invoke(GetCmOfferingInstanceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCmOfferingInstanceResult> getCmOfferingInstance(GetCmOfferingInstanceArgs args, InvokeOptions options)
    public static Output<GetCmOfferingInstanceResult> getCmOfferingInstance(GetCmOfferingInstanceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getCmOfferingInstance:getCmOfferingInstance
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceIdentifier string
    The version instance identifier.
    Id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    InstanceIdentifier string
    The version instance identifier.
    Id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    instanceIdentifier String
    The version instance identifier.
    id String
    (String) The unique identifier of the ibm.CmOfferingInstance.
    instanceIdentifier string
    The version instance identifier.
    id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    instance_identifier str
    The version instance identifier.
    id str
    (String) The unique identifier of the ibm.CmOfferingInstance.
    instanceIdentifier String
    The version instance identifier.
    id String
    (String) The unique identifier of the ibm.CmOfferingInstance.

    getCmOfferingInstance Result

    The following output properties are available:

    CatalogId string
    (String) The catalog ID the instance that is created from.
    Channel string
    (String) Channel to target for the operator subscription. Required for operator bundles
    ClusterAllNamespaces bool
    (String) Designate to install into all namespaces.
    ClusterId string
    (String) The cluster ID.
    ClusterNamespaces List<string>
    (String) The list of target namespaces to install.
    ClusterRegion string
    (String) The cluster region for example, us-south.
    Crn string
    (String) The platform CRN for an instance.
    Id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    InstallPlan string
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    InstanceIdentifier string
    KindFormat string
    (String) The format this instance has such as helm, operator.
    Label string
    (String) The label for an instance.
    OfferingId string
    (String) The offering ID the instance that is created from.
    ParentCrn string
    (String) CRN of the parent instance.
    PlanId string
    (String) The plan ID.
    ResourceGroupId string
    (String) The ID of the resource group this instance was installed into
    SchematicsWorkspaceId string
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    Url string
    (String) The URL reference to an object.
    Version string
    (String) The version an instance is installed from (but not from the version ID).
    _rev string
    (string) The cloudant revisionn of this object
    CatalogId string
    (String) The catalog ID the instance that is created from.
    Channel string
    (String) Channel to target for the operator subscription. Required for operator bundles
    ClusterAllNamespaces bool
    (String) Designate to install into all namespaces.
    ClusterId string
    (String) The cluster ID.
    ClusterNamespaces []string
    (String) The list of target namespaces to install.
    ClusterRegion string
    (String) The cluster region for example, us-south.
    Crn string
    (String) The platform CRN for an instance.
    Id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    InstallPlan string
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    InstanceIdentifier string
    KindFormat string
    (String) The format this instance has such as helm, operator.
    Label string
    (String) The label for an instance.
    OfferingId string
    (String) The offering ID the instance that is created from.
    ParentCrn string
    (String) CRN of the parent instance.
    PlanId string
    (String) The plan ID.
    ResourceGroupId string
    (String) The ID of the resource group this instance was installed into
    SchematicsWorkspaceId string
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    Url string
    (String) The URL reference to an object.
    Version string
    (String) The version an instance is installed from (but not from the version ID).
    _rev string
    (string) The cloudant revisionn of this object
    _rev String
    (string) The cloudant revisionn of this object
    catalogId String
    (String) The catalog ID the instance that is created from.
    channel String
    (String) Channel to target for the operator subscription. Required for operator bundles
    clusterAllNamespaces Boolean
    (String) Designate to install into all namespaces.
    clusterId String
    (String) The cluster ID.
    clusterNamespaces List<String>
    (String) The list of target namespaces to install.
    clusterRegion String
    (String) The cluster region for example, us-south.
    crn String
    (String) The platform CRN for an instance.
    id String
    (String) The unique identifier of the ibm.CmOfferingInstance.
    installPlan String
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    instanceIdentifier String
    kindFormat String
    (String) The format this instance has such as helm, operator.
    label String
    (String) The label for an instance.
    offeringId String
    (String) The offering ID the instance that is created from.
    parentCrn String
    (String) CRN of the parent instance.
    planId String
    (String) The plan ID.
    resourceGroupId String
    (String) The ID of the resource group this instance was installed into
    schematicsWorkspaceId String
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    url String
    (String) The URL reference to an object.
    version String
    (String) The version an instance is installed from (but not from the version ID).
    _rev string
    (string) The cloudant revisionn of this object
    catalogId string
    (String) The catalog ID the instance that is created from.
    channel string
    (String) Channel to target for the operator subscription. Required for operator bundles
    clusterAllNamespaces boolean
    (String) Designate to install into all namespaces.
    clusterId string
    (String) The cluster ID.
    clusterNamespaces string[]
    (String) The list of target namespaces to install.
    clusterRegion string
    (String) The cluster region for example, us-south.
    crn string
    (String) The platform CRN for an instance.
    id string
    (String) The unique identifier of the ibm.CmOfferingInstance.
    installPlan string
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    instanceIdentifier string
    kindFormat string
    (String) The format this instance has such as helm, operator.
    label string
    (String) The label for an instance.
    offeringId string
    (String) The offering ID the instance that is created from.
    parentCrn string
    (String) CRN of the parent instance.
    planId string
    (String) The plan ID.
    resourceGroupId string
    (String) The ID of the resource group this instance was installed into
    schematicsWorkspaceId string
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    url string
    (String) The URL reference to an object.
    version string
    (String) The version an instance is installed from (but not from the version ID).
    _rev str
    (string) The cloudant revisionn of this object
    catalog_id str
    (String) The catalog ID the instance that is created from.
    channel str
    (String) Channel to target for the operator subscription. Required for operator bundles
    cluster_all_namespaces bool
    (String) Designate to install into all namespaces.
    cluster_id str
    (String) The cluster ID.
    cluster_namespaces Sequence[str]
    (String) The list of target namespaces to install.
    cluster_region str
    (String) The cluster region for example, us-south.
    crn str
    (String) The platform CRN for an instance.
    id str
    (String) The unique identifier of the ibm.CmOfferingInstance.
    install_plan str
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    instance_identifier str
    kind_format str
    (String) The format this instance has such as helm, operator.
    label str
    (String) The label for an instance.
    offering_id str
    (String) The offering ID the instance that is created from.
    parent_crn str
    (String) CRN of the parent instance.
    plan_id str
    (String) The plan ID.
    resource_group_id str
    (String) The ID of the resource group this instance was installed into
    schematics_workspace_id str
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    url str
    (String) The URL reference to an object.
    version str
    (String) The version an instance is installed from (but not from the version ID).
    _rev String
    (string) The cloudant revisionn of this object
    catalogId String
    (String) The catalog ID the instance that is created from.
    channel String
    (String) Channel to target for the operator subscription. Required for operator bundles
    clusterAllNamespaces Boolean
    (String) Designate to install into all namespaces.
    clusterId String
    (String) The cluster ID.
    clusterNamespaces List<String>
    (String) The list of target namespaces to install.
    clusterRegion String
    (String) The cluster region for example, us-south.
    crn String
    (String) The platform CRN for an instance.
    id String
    (String) The unique identifier of the ibm.CmOfferingInstance.
    installPlan String
    (String) Install plan for the subscription of the operator- can be either Automatic or Manual. Required for operator bundles
    instanceIdentifier String
    kindFormat String
    (String) The format this instance has such as helm, operator.
    label String
    (String) The label for an instance.
    offeringId String
    (String) The offering ID the instance that is created from.
    parentCrn String
    (String) CRN of the parent instance.
    planId String
    (String) The plan ID.
    resourceGroupId String
    (String) The ID of the resource group this instance was installed into
    schematicsWorkspaceId String
    (String) The ID of the schematics workspace, for offering instances installed through schematics
    url String
    (String) The URL reference to an object.
    version String
    (String) The version an instance is installed from (but not from the version ID).

    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.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud