1. Packages
  2. Ibm Provider
  3. API Docs
  4. getIsDedicatedHostGroup
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.getIsDedicatedHostGroup

Explore with Pulumi AI

ibm logo
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

    Retrieve the dedicated host group data sources. For more information, about dedicated host group in your IBM Cloud VPC, see dedicated hosts groups.

    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.getIsDedicatedHostGroup({
        name: "example-host-group",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    example = ibm.get_is_dedicated_host_group(name="example-host-group")
    
    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.LookupIsDedicatedHostGroup(ctx, &ibm.LookupIsDedicatedHostGroupArgs{
    			Name: "example-host-group",
    		}, 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.GetIsDedicatedHostGroup.Invoke(new()
        {
            Name = "example-host-group",
        });
    
    });
    
    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.GetIsDedicatedHostGroupArgs;
    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.getIsDedicatedHostGroup(GetIsDedicatedHostGroupArgs.builder()
                .name("example-host-group")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: ibm:getIsDedicatedHostGroup
          arguments:
            name: example-host-group
    

    Using getIsDedicatedHostGroup

    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 getIsDedicatedHostGroup(args: GetIsDedicatedHostGroupArgs, opts?: InvokeOptions): Promise<GetIsDedicatedHostGroupResult>
    function getIsDedicatedHostGroupOutput(args: GetIsDedicatedHostGroupOutputArgs, opts?: InvokeOptions): Output<GetIsDedicatedHostGroupResult>
    def get_is_dedicated_host_group(id: Optional[str] = None,
                                    name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetIsDedicatedHostGroupResult
    def get_is_dedicated_host_group_output(id: Optional[pulumi.Input[str]] = None,
                                    name: Optional[pulumi.Input[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetIsDedicatedHostGroupResult]
    func LookupIsDedicatedHostGroup(ctx *Context, args *LookupIsDedicatedHostGroupArgs, opts ...InvokeOption) (*LookupIsDedicatedHostGroupResult, error)
    func LookupIsDedicatedHostGroupOutput(ctx *Context, args *LookupIsDedicatedHostGroupOutputArgs, opts ...InvokeOption) LookupIsDedicatedHostGroupResultOutput

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

    public static class GetIsDedicatedHostGroup 
    {
        public static Task<GetIsDedicatedHostGroupResult> InvokeAsync(GetIsDedicatedHostGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetIsDedicatedHostGroupResult> Invoke(GetIsDedicatedHostGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIsDedicatedHostGroupResult> getIsDedicatedHostGroup(GetIsDedicatedHostGroupArgs args, InvokeOptions options)
    public static Output<GetIsDedicatedHostGroupResult> getIsDedicatedHostGroup(GetIsDedicatedHostGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getIsDedicatedHostGroup:getIsDedicatedHostGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The unique user defined name of this dedicated host group.
    Id string
    (String) The unique identifier of the dedicated host group.
    Name string
    The unique user defined name of this dedicated host group.
    Id string
    (String) The unique identifier of the dedicated host group.
    name String
    The unique user defined name of this dedicated host group.
    id String
    (String) The unique identifier of the dedicated host group.
    name string
    The unique user defined name of this dedicated host group.
    id string
    (String) The unique identifier of the dedicated host group.
    name str
    The unique user defined name of this dedicated host group.
    id str
    (String) The unique identifier of the dedicated host group.
    name String
    The unique user defined name of this dedicated host group.
    id String
    (String) The unique identifier of the dedicated host group.

    getIsDedicatedHostGroup Result

    The following output properties are available:

    Class string
    (String) The dedicated host profile class for hosts in this group.
    CreatedAt string
    (String) The date and time that the dedicated host group was created.
    Crn string
    (String) The CRN for this dedicated host.
    DedicatedHosts List<GetIsDedicatedHostGroupDedicatedHost>
    (List) The dedicated hosts that are in this dedicated host group.
    Family string
    (String) The dedicated host profile family for hosts in this group.
    Href string
    (String) The URL for this virtual server instance profile.
    Id string
    (String) The unique identifier of the dedicated host group.
    Name string
    (String) The unique name for this virtual server instance profile.
    ResourceGroup string
    (String) The unique identifier of the resource group for this dedicated host.
    ResourceType string
    (String) The type of resource referenced.
    SupportedInstanceProfiles List<GetIsDedicatedHostGroupSupportedInstanceProfile>
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    Zone string
    (String) The zone this dedicated host group resides in.
    Class string
    (String) The dedicated host profile class for hosts in this group.
    CreatedAt string
    (String) The date and time that the dedicated host group was created.
    Crn string
    (String) The CRN for this dedicated host.
    DedicatedHosts []GetIsDedicatedHostGroupDedicatedHost
    (List) The dedicated hosts that are in this dedicated host group.
    Family string
    (String) The dedicated host profile family for hosts in this group.
    Href string
    (String) The URL for this virtual server instance profile.
    Id string
    (String) The unique identifier of the dedicated host group.
    Name string
    (String) The unique name for this virtual server instance profile.
    ResourceGroup string
    (String) The unique identifier of the resource group for this dedicated host.
    ResourceType string
    (String) The type of resource referenced.
    SupportedInstanceProfiles []GetIsDedicatedHostGroupSupportedInstanceProfile
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    Zone string
    (String) The zone this dedicated host group resides in.
    class_ String
    (String) The dedicated host profile class for hosts in this group.
    createdAt String
    (String) The date and time that the dedicated host group was created.
    crn String
    (String) The CRN for this dedicated host.
    dedicatedHosts List<GetIsDedicatedHostGroupDedicatedHost>
    (List) The dedicated hosts that are in this dedicated host group.
    family String
    (String) The dedicated host profile family for hosts in this group.
    href String
    (String) The URL for this virtual server instance profile.
    id String
    (String) The unique identifier of the dedicated host group.
    name String
    (String) The unique name for this virtual server instance profile.
    resourceGroup String
    (String) The unique identifier of the resource group for this dedicated host.
    resourceType String
    (String) The type of resource referenced.
    supportedInstanceProfiles List<GetIsDedicatedHostGroupSupportedInstanceProfile>
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    zone String
    (String) The zone this dedicated host group resides in.
    class string
    (String) The dedicated host profile class for hosts in this group.
    createdAt string
    (String) The date and time that the dedicated host group was created.
    crn string
    (String) The CRN for this dedicated host.
    dedicatedHosts GetIsDedicatedHostGroupDedicatedHost[]
    (List) The dedicated hosts that are in this dedicated host group.
    family string
    (String) The dedicated host profile family for hosts in this group.
    href string
    (String) The URL for this virtual server instance profile.
    id string
    (String) The unique identifier of the dedicated host group.
    name string
    (String) The unique name for this virtual server instance profile.
    resourceGroup string
    (String) The unique identifier of the resource group for this dedicated host.
    resourceType string
    (String) The type of resource referenced.
    supportedInstanceProfiles GetIsDedicatedHostGroupSupportedInstanceProfile[]
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    zone string
    (String) The zone this dedicated host group resides in.
    class_ str
    (String) The dedicated host profile class for hosts in this group.
    created_at str
    (String) The date and time that the dedicated host group was created.
    crn str
    (String) The CRN for this dedicated host.
    dedicated_hosts Sequence[GetIsDedicatedHostGroupDedicatedHost]
    (List) The dedicated hosts that are in this dedicated host group.
    family str
    (String) The dedicated host profile family for hosts in this group.
    href str
    (String) The URL for this virtual server instance profile.
    id str
    (String) The unique identifier of the dedicated host group.
    name str
    (String) The unique name for this virtual server instance profile.
    resource_group str
    (String) The unique identifier of the resource group for this dedicated host.
    resource_type str
    (String) The type of resource referenced.
    supported_instance_profiles Sequence[GetIsDedicatedHostGroupSupportedInstanceProfile]
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    zone str
    (String) The zone this dedicated host group resides in.
    class String
    (String) The dedicated host profile class for hosts in this group.
    createdAt String
    (String) The date and time that the dedicated host group was created.
    crn String
    (String) The CRN for this dedicated host.
    dedicatedHosts List<Property Map>
    (List) The dedicated hosts that are in this dedicated host group.
    family String
    (String) The dedicated host profile family for hosts in this group.
    href String
    (String) The URL for this virtual server instance profile.
    id String
    (String) The unique identifier of the dedicated host group.
    name String
    (String) The unique name for this virtual server instance profile.
    resourceGroup String
    (String) The unique identifier of the resource group for this dedicated host.
    resourceType String
    (String) The type of resource referenced.
    supportedInstanceProfiles List<Property Map>
    (List) Array of instance profiles that can be used by instances placed on this dedicated host group.
    zone String
    (String) The zone this dedicated host group resides in.

    Supporting Types

    GetIsDedicatedHostGroupDedicatedHost

    Crn string
    (String) The CRN for this dedicated host.
    Deleteds List<GetIsDedicatedHostGroupDedicatedHostDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    Href string
    (String) The URL for this virtual server instance profile.
    Id string
    (String) The unique identifier of the dedicated host group.
    Name string
    The unique user defined name of this dedicated host group.
    ResourceType string
    (String) The type of resource referenced.
    Crn string
    (String) The CRN for this dedicated host.
    Deleteds []GetIsDedicatedHostGroupDedicatedHostDeleted
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    Href string
    (String) The URL for this virtual server instance profile.
    Id string
    (String) The unique identifier of the dedicated host group.
    Name string
    The unique user defined name of this dedicated host group.
    ResourceType string
    (String) The type of resource referenced.
    crn String
    (String) The CRN for this dedicated host.
    deleteds List<GetIsDedicatedHostGroupDedicatedHostDeleted>
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    href String
    (String) The URL for this virtual server instance profile.
    id String
    (String) The unique identifier of the dedicated host group.
    name String
    The unique user defined name of this dedicated host group.
    resourceType String
    (String) The type of resource referenced.
    crn string
    (String) The CRN for this dedicated host.
    deleteds GetIsDedicatedHostGroupDedicatedHostDeleted[]
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    href string
    (String) The URL for this virtual server instance profile.
    id string
    (String) The unique identifier of the dedicated host group.
    name string
    The unique user defined name of this dedicated host group.
    resourceType string
    (String) The type of resource referenced.
    crn str
    (String) The CRN for this dedicated host.
    deleteds Sequence[GetIsDedicatedHostGroupDedicatedHostDeleted]
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    href str
    (String) The URL for this virtual server instance profile.
    id str
    (String) The unique identifier of the dedicated host group.
    name str
    The unique user defined name of this dedicated host group.
    resource_type str
    (String) The type of resource referenced.
    crn String
    (String) The CRN for this dedicated host.
    deleteds List<Property Map>
    (List) If present, this property indicates the referenced resource has been deleted and provides supplementary information. Nested deleted blocks have the following structure.
    href String
    (String) The URL for this virtual server instance profile.
    id String
    (String) The unique identifier of the dedicated host group.
    name String
    The unique user defined name of this dedicated host group.
    resourceType String
    (String) The type of resource referenced.

    GetIsDedicatedHostGroupDedicatedHostDeleted

    MoreInfo string
    (String) Link to documentation about deleted resources.
    MoreInfo string
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.
    moreInfo string
    (String) Link to documentation about deleted resources.
    more_info str
    (String) Link to documentation about deleted resources.
    moreInfo String
    (String) Link to documentation about deleted resources.

    GetIsDedicatedHostGroupSupportedInstanceProfile

    Href string
    (String) The URL for this virtual server instance profile.
    Name string
    The unique user defined name of this dedicated host group.
    Href string
    (String) The URL for this virtual server instance profile.
    Name string
    The unique user defined name of this dedicated host group.
    href String
    (String) The URL for this virtual server instance profile.
    name String
    The unique user defined name of this dedicated host group.
    href string
    (String) The URL for this virtual server instance profile.
    name string
    The unique user defined name of this dedicated host group.
    href str
    (String) The URL for this virtual server instance profile.
    name str
    The unique user defined name of this dedicated host group.
    href String
    (String) The URL for this virtual server instance profile.
    name String
    The unique user defined name of this dedicated host group.

    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.77.1 published on Monday, Apr 14, 2025 by ibm-cloud