This repository has been archived by the owner on Mar 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
getDedicatedHostGroup.go
50 lines (45 loc) · 2.69 KB
/
getDedicatedHostGroup.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// *** WARNING: this file was generated by the Pulumi SDK Generator. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package v20200601
import (
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func LookupDedicatedHostGroup(ctx *pulumi.Context, args *LookupDedicatedHostGroupArgs, opts ...pulumi.InvokeOption) (*LookupDedicatedHostGroupResult, error) {
var rv LookupDedicatedHostGroupResult
err := ctx.Invoke("azure-nextgen:compute/v20200601:getDedicatedHostGroup", args, &rv, opts...)
if err != nil {
return nil, err
}
return &rv, nil
}
type LookupDedicatedHostGroupArgs struct {
// The expand expression to apply on the operation. The response shows the list of instance view of the dedicated hosts under the dedicated host group.
Expand *string `pulumi:"expand"`
// The name of the dedicated host group.
HostGroupName string `pulumi:"hostGroupName"`
// The name of the resource group.
ResourceGroupName string `pulumi:"resourceGroupName"`
}
// Specifies information about the dedicated host group that the dedicated hosts should be assigned to. <br><br> Currently, a dedicated host can only be added to a dedicated host group at creation time. An existing dedicated host cannot be added to another dedicated host group.
type LookupDedicatedHostGroupResult struct {
// A list of references to all dedicated hosts in the dedicated host group.
Hosts []SubResourceReadOnlyResponse `pulumi:"hosts"`
// Resource Id
Id string `pulumi:"id"`
// The dedicated host group instance view, which has the list of instance view of the dedicated hosts under the dedicated host group.
InstanceView DedicatedHostGroupInstanceViewResponse `pulumi:"instanceView"`
// Resource location
Location string `pulumi:"location"`
// Resource name
Name string `pulumi:"name"`
// Number of fault domains that the host group can span.
PlatformFaultDomainCount int `pulumi:"platformFaultDomainCount"`
// Specifies whether virtual machines or virtual machine scale sets can be placed automatically on the dedicated host group. Automatic placement means resources are allocated on dedicated hosts, that are chosen by Azure, under the dedicated host group. The value is defaulted to 'false' when not provided. <br><br>Minimum api-version: 2020-06-01.
SupportAutomaticPlacement *bool `pulumi:"supportAutomaticPlacement"`
// Resource tags
Tags map[string]string `pulumi:"tags"`
// Resource type
Type string `pulumi:"type"`
// Availability Zone to use for this host group. Only single zone is supported. The zone can be assigned only during creation. If not provided, the group supports all zones in the region. If provided, enforces each host in the group to be in the same zone.
Zones []string `pulumi:"zones"`
}