ibm.getIsDedicatedHostGroup
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
getIsDedicatedHostGroup Result
The following output properties are available:
- Class string
 - (String) The dedicated host profile class for hosts in this group.
 - Created
At string - (String) The date and time that the dedicated host group was created.
 - Crn string
 - (String) The CRN for this dedicated host.
 - Dedicated
Hosts List<GetIs Dedicated Host Group Dedicated Host>  - (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.
 - Resource
Group string - (String) The unique identifier of the resource group for this dedicated host.
 - Resource
Type string - (String) The type of resource referenced.
 - Supported
Instance List<GetProfiles Is Dedicated Host Group Supported Instance Profile>  - (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.
 - Created
At string - (String) The date and time that the dedicated host group was created.
 - Crn string
 - (String) The CRN for this dedicated host.
 - Dedicated
Hosts []GetIs Dedicated Host Group Dedicated Host  - (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.
 - Resource
Group string - (String) The unique identifier of the resource group for this dedicated host.
 - Resource
Type string - (String) The type of resource referenced.
 - Supported
Instance []GetProfiles Is Dedicated Host Group Supported Instance Profile  - (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.
 - created
At String - (String) The date and time that the dedicated host group was created.
 - crn String
 - (String) The CRN for this dedicated host.
 - dedicated
Hosts List<GetIs Dedicated Host Group Dedicated Host>  - (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.
 - resource
Group String - (String) The unique identifier of the resource group for this dedicated host.
 - resource
Type String - (String) The type of resource referenced.
 - supported
Instance List<GetProfiles Is Dedicated Host Group Supported Instance Profile>  - (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.
 - created
At string - (String) The date and time that the dedicated host group was created.
 - crn string
 - (String) The CRN for this dedicated host.
 - dedicated
Hosts GetIs Dedicated Host Group Dedicated Host[]  - (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.
 - resource
Group string - (String) The unique identifier of the resource group for this dedicated host.
 - resource
Type string - (String) The type of resource referenced.
 - supported
Instance GetProfiles Is Dedicated Host Group Supported Instance Profile[]  - (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[GetIs Dedicated Host Group Dedicated Host]  - (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_ Sequence[Getprofiles Is Dedicated Host Group Supported Instance Profile]  - (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.
 - created
At String - (String) The date and time that the dedicated host group was created.
 - crn String
 - (String) The CRN for this dedicated host.
 - dedicated
Hosts 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.
 - resource
Group String - (String) The unique identifier of the resource group for this dedicated host.
 - resource
Type String - (String) The type of resource referenced.
 - supported
Instance List<Property Map>Profiles  - (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<Get
Is Dedicated Host Group Dedicated Host Deleted>  - (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.
 - Resource
Type string - (String) The type of resource referenced.
 
- Crn string
 - (String) The CRN for this dedicated host.
 - Deleteds
[]Get
Is Dedicated Host Group Dedicated Host Deleted  - (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.
 - Resource
Type string - (String) The type of resource referenced.
 
- crn String
 - (String) The CRN for this dedicated host.
 - deleteds
List<Get
Is Dedicated Host Group Dedicated Host Deleted>  - (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.
 - resource
Type String - (String) The type of resource referenced.
 
- crn string
 - (String) The CRN for this dedicated host.
 - deleteds
Get
Is Dedicated Host Group Dedicated Host Deleted[]  - (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.
 - resource
Type string - (String) The type of resource referenced.
 
- crn str
 - (String) The CRN for this dedicated host.
 - deleteds
Sequence[Get
Is Dedicated Host Group Dedicated Host Deleted]  - (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.
 - resource
Type String - (String) The type of resource referenced.
 
GetIsDedicatedHostGroupDedicatedHostDeleted       
- More
Info string - (String) Link to documentation about deleted resources.
 
- More
Info string - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
- more
Info string - (String) Link to documentation about deleted resources.
 
- more_
info str - (String) Link to documentation about deleted resources.
 
- more
Info String - (String) Link to documentation about deleted resources.
 
GetIsDedicatedHostGroupSupportedInstanceProfile       
Package Details
- Repository
 - ibm ibm-cloud/terraform-provider-ibm
 - License
 - Notes
 - This Pulumi package is based on the 
ibmTerraform Provider.