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

ibm.getIsClusterNetworkProfile

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 to retrieve information about a ClusterNetworkProfile. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const isClusterNetworkProfile = ibm.getIsClusterNetworkProfile({
        name: "h100",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    is_cluster_network_profile = ibm.get_is_cluster_network_profile(name="h100")
    
    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.LookupIsClusterNetworkProfile(ctx, &ibm.LookupIsClusterNetworkProfileArgs{
    			Name: "h100",
    		}, 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 isClusterNetworkProfile = Ibm.GetIsClusterNetworkProfile.Invoke(new()
        {
            Name = "h100",
        });
    
    });
    
    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.GetIsClusterNetworkProfileArgs;
    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 isClusterNetworkProfile = IbmFunctions.getIsClusterNetworkProfile(GetIsClusterNetworkProfileArgs.builder()
                .name("h100")
                .build());
    
        }
    }
    
    variables:
      isClusterNetworkProfile:
        fn::invoke:
          function: ibm:getIsClusterNetworkProfile
          arguments:
            name: h100
    

    Using getIsClusterNetworkProfile

    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 getIsClusterNetworkProfile(args: GetIsClusterNetworkProfileArgs, opts?: InvokeOptions): Promise<GetIsClusterNetworkProfileResult>
    function getIsClusterNetworkProfileOutput(args: GetIsClusterNetworkProfileOutputArgs, opts?: InvokeOptions): Output<GetIsClusterNetworkProfileResult>
    def get_is_cluster_network_profile(id: Optional[str] = None,
                                       name: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetIsClusterNetworkProfileResult
    def get_is_cluster_network_profile_output(id: Optional[pulumi.Input[str]] = None,
                                       name: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetIsClusterNetworkProfileResult]
    func LookupIsClusterNetworkProfile(ctx *Context, args *LookupIsClusterNetworkProfileArgs, opts ...InvokeOption) (*LookupIsClusterNetworkProfileResult, error)
    func LookupIsClusterNetworkProfileOutput(ctx *Context, args *LookupIsClusterNetworkProfileOutputArgs, opts ...InvokeOption) LookupIsClusterNetworkProfileResultOutput

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

    public static class GetIsClusterNetworkProfile 
    {
        public static Task<GetIsClusterNetworkProfileResult> InvokeAsync(GetIsClusterNetworkProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetIsClusterNetworkProfileResult> Invoke(GetIsClusterNetworkProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsClusterNetworkProfileResult> getIsClusterNetworkProfile(GetIsClusterNetworkProfileArgs args, InvokeOptions options)
    public static Output<GetIsClusterNetworkProfileResult> getIsClusterNetworkProfile(GetIsClusterNetworkProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsClusterNetworkProfile:getIsClusterNetworkProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The cluster network profile name.
    Id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    Name string
    The cluster network profile name.
    Id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name String
    The cluster network profile name.
    id String
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name string
    The cluster network profile name.
    id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name str
    The cluster network profile name.
    id str
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name String
    The cluster network profile name.
    id String
    The unique identifier of the ClusterNetworkProfile.(same as name)

    getIsClusterNetworkProfile Result

    The following output properties are available:

    Family string
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    Href string
    (String) The URL for this zone.
    Id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    Name string
    (String) The globally unique name for this zone.
    ResourceType string
    (String) The resource type.
    SupportedInstanceProfiles List<GetIsClusterNetworkProfileSupportedInstanceProfile>
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    Zones List<GetIsClusterNetworkProfileZone>
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:
    Family string
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    Href string
    (String) The URL for this zone.
    Id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    Name string
    (String) The globally unique name for this zone.
    ResourceType string
    (String) The resource type.
    SupportedInstanceProfiles []GetIsClusterNetworkProfileSupportedInstanceProfile
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    Zones []GetIsClusterNetworkProfileZone
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:
    family String
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    href String
    (String) The URL for this zone.
    id String
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name String
    (String) The globally unique name for this zone.
    resourceType String
    (String) The resource type.
    supportedInstanceProfiles List<GetIsClusterNetworkProfileSupportedInstanceProfile>
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    zones List<GetIsClusterNetworkProfileZone>
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:
    family string
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    href string
    (String) The URL for this zone.
    id string
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name string
    (String) The globally unique name for this zone.
    resourceType string
    (String) The resource type.
    supportedInstanceProfiles GetIsClusterNetworkProfileSupportedInstanceProfile[]
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    zones GetIsClusterNetworkProfileZone[]
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:
    family str
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    href str
    (String) The URL for this zone.
    id str
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name str
    (String) The globally unique name for this zone.
    resource_type str
    (String) The resource type.
    supported_instance_profiles Sequence[GetIsClusterNetworkProfileSupportedInstanceProfile]
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    zones Sequence[GetIsClusterNetworkProfileZone]
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:
    family String
    (String) The product family this cluster network profile belongs to.The enumerated values for this property mayexpand in the future.
    href String
    (String) The URL for this zone.
    id String
    The unique identifier of the ClusterNetworkProfile.(same as name)
    name String
    (String) The globally unique name for this zone.
    resourceType String
    (String) The resource type.
    supportedInstanceProfiles List<Property Map>
    (List) The instance profiles that support this cluster network profile. Nested schema for supported_instance_profiles:
    zones List<Property Map>
    (List) Zones in this region that support this cluster network profile. Nested schema for zones:

    Supporting Types

    GetIsClusterNetworkProfileSupportedInstanceProfile

    Href string
    (String) The URL for this zone.
    Name string
    The cluster network profile name.
    ResourceType string
    (String) The resource type.
    Href string
    (String) The URL for this zone.
    Name string
    The cluster network profile name.
    ResourceType string
    (String) The resource type.
    href String
    (String) The URL for this zone.
    name String
    The cluster network profile name.
    resourceType String
    (String) The resource type.
    href string
    (String) The URL for this zone.
    name string
    The cluster network profile name.
    resourceType string
    (String) The resource type.
    href str
    (String) The URL for this zone.
    name str
    The cluster network profile name.
    resource_type str
    (String) The resource type.
    href String
    (String) The URL for this zone.
    name String
    The cluster network profile name.
    resourceType String
    (String) The resource type.

    GetIsClusterNetworkProfileZone

    Href string
    (String) The URL for this zone.
    Name string
    The cluster network profile name.
    Href string
    (String) The URL for this zone.
    Name string
    The cluster network profile name.
    href String
    (String) The URL for this zone.
    name String
    The cluster network profile name.
    href string
    (String) The URL for this zone.
    name string
    The cluster network profile name.
    href str
    (String) The URL for this zone.
    name str
    The cluster network profile name.
    href String
    (String) The URL for this zone.
    name String
    The cluster network profile name.

    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