region

package
v0.0.0-...-81f5abf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkgVersion

func PkgVersion() (semver.Version, error)

PkgVersion uses reflection to determine the version of the current package. If a version cannot be determined, v1 will be assumed. The second return value is always nil.

Types

type GetEnumerationArgs

type GetEnumerationArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert *bool `pulumi:"acceptSelfSignedCert"`
	// ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
	Dcid *string `pulumi:"dcid"`
	// Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
	Hostname string `pulumi:"hostname"`
	// Password for the user used to authenticate with the cloud Account
	Password string `pulumi:"password"`
	// Username to authenticate with the cloud account
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getEnumeration.

type GetEnumerationAwsArgs

type GetEnumerationAwsArgs struct {
	// Aws Access key ID.
	AccessKey string `pulumi:"accessKey"`
	// Aws Secret Access Key.
	SecretKey string `pulumi:"secretKey"`
}

A collection of arguments for invoking getEnumerationAws.

type GetEnumerationAwsOutputArgs

type GetEnumerationAwsOutputArgs struct {
	// Aws Access key ID.
	AccessKey pulumi.StringInput `pulumi:"accessKey"`
	// Aws Secret Access Key.
	SecretKey pulumi.StringInput `pulumi:"secretKey"`
}

A collection of arguments for invoking getEnumerationAws.

func (GetEnumerationAwsOutputArgs) ElementType

type GetEnumerationAwsResult

type GetEnumerationAwsResult struct {
	AccessKey string `pulumi:"accessKey"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A set of Region names to enable provisioning on. Example: us-east-2, ap-northeast-1
	Regions   []string `pulumi:"regions"`
	SecretKey string   `pulumi:"secretKey"`
}

A collection of values returned by getEnumerationAws.

func GetEnumerationAws

func GetEnumerationAws(ctx *pulumi.Context, args *GetEnumerationAwsArgs, opts ...pulumi.InvokeOption) (*GetEnumerationAwsResult, error)

## Example Usage ### S

This is an example of how to lookup a region enumeration data source for AWS cloud account.

**Region enumeration data source for AWS, by the AWS account access key and secret key:** ```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetEnumerationAws(ctx, &region.GetEnumerationAwsArgs{
			AccessKey: _var.Access_key,
			SecretKey: _var.Secret_key,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The region enumeration data source for AWS cloud account supports the following arguments:

type GetEnumerationAwsResultOutput

type GetEnumerationAwsResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumerationAws.

func (GetEnumerationAwsResultOutput) AccessKey

func (GetEnumerationAwsResultOutput) ElementType

func (GetEnumerationAwsResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationAwsResultOutput) Regions

A set of Region names to enable provisioning on. Example: us-east-2, ap-northeast-1

func (GetEnumerationAwsResultOutput) SecretKey

func (GetEnumerationAwsResultOutput) ToGetEnumerationAwsResultOutput

func (o GetEnumerationAwsResultOutput) ToGetEnumerationAwsResultOutput() GetEnumerationAwsResultOutput

func (GetEnumerationAwsResultOutput) ToGetEnumerationAwsResultOutputWithContext

func (o GetEnumerationAwsResultOutput) ToGetEnumerationAwsResultOutputWithContext(ctx context.Context) GetEnumerationAwsResultOutput

type GetEnumerationAzureArgs

type GetEnumerationAzureArgs struct {
	// Azure Client Application ID
	ApplicationId string `pulumi:"applicationId"`
	// Azure Client Application Secret Key
	ApplicationKey string `pulumi:"applicationKey"`
	// Azure Subscription ID
	SubscriptionId string `pulumi:"subscriptionId"`
	// Azure Tenant ID
	TenantId string `pulumi:"tenantId"`
}

A collection of arguments for invoking getEnumerationAzure.

type GetEnumerationAzureOutputArgs

type GetEnumerationAzureOutputArgs struct {
	// Azure Client Application ID
	ApplicationId pulumi.StringInput `pulumi:"applicationId"`
	// Azure Client Application Secret Key
	ApplicationKey pulumi.StringInput `pulumi:"applicationKey"`
	// Azure Subscription ID
	SubscriptionId pulumi.StringInput `pulumi:"subscriptionId"`
	// Azure Tenant ID
	TenantId pulumi.StringInput `pulumi:"tenantId"`
}

A collection of arguments for invoking getEnumerationAzure.

func (GetEnumerationAzureOutputArgs) ElementType

type GetEnumerationAzureResult

type GetEnumerationAzureResult struct {
	ApplicationId  string `pulumi:"applicationId"`
	ApplicationKey string `pulumi:"applicationKey"`
	// The provider-assigned unique ID for this managed resource.
	Id string `pulumi:"id"`
	// A set of Region names to enable provisioning on. Example: northamerica-northeast1
	Regions        []string `pulumi:"regions"`
	SubscriptionId string   `pulumi:"subscriptionId"`
	TenantId       string   `pulumi:"tenantId"`
}

A collection of values returned by getEnumerationAzure.

func GetEnumerationAzure

func GetEnumerationAzure(ctx *pulumi.Context, args *GetEnumerationAzureArgs, opts ...pulumi.InvokeOption) (*GetEnumerationAzureResult, error)

## Example Usage ### S

This is an example of how to lookup a region enumeration data source for Azure cloud account.

**Region enumeration data source for Azure** ```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetEnumerationAzure(ctx, &region.GetEnumerationAzureArgs{
			ApplicationId:  _var.Application_id,
			ApplicationKey: _var.Application_key,
			SubscriptionId: _var.Subscription_id,
			TenantId:       _var.Tenant_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The region enumeration data source for Azure cloud account supports the following arguments:

type GetEnumerationAzureResultOutput

type GetEnumerationAzureResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumerationAzure.

func (GetEnumerationAzureResultOutput) ApplicationId

func (GetEnumerationAzureResultOutput) ApplicationKey

func (GetEnumerationAzureResultOutput) ElementType

func (GetEnumerationAzureResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationAzureResultOutput) Regions

A set of Region names to enable provisioning on. Example: northamerica-northeast1

func (GetEnumerationAzureResultOutput) SubscriptionId

func (GetEnumerationAzureResultOutput) TenantId

func (GetEnumerationAzureResultOutput) ToGetEnumerationAzureResultOutput

func (o GetEnumerationAzureResultOutput) ToGetEnumerationAzureResultOutput() GetEnumerationAzureResultOutput

func (GetEnumerationAzureResultOutput) ToGetEnumerationAzureResultOutputWithContext

func (o GetEnumerationAzureResultOutput) ToGetEnumerationAzureResultOutputWithContext(ctx context.Context) GetEnumerationAzureResultOutput

type GetEnumerationGcpArgs

type GetEnumerationGcpArgs struct {
	// Client E-mail ID.
	ClientEmail string `pulumi:"clientEmail"`
	// GCP Private key.
	PrivateKey string `pulumi:"privateKey"`
	// GCP Private key ID.
	PrivateKeyId string `pulumi:"privateKeyId"`
	// GCP Project ID.
	ProjectId string `pulumi:"projectId"`
}

A collection of arguments for invoking getEnumerationGcp.

type GetEnumerationGcpOutputArgs

type GetEnumerationGcpOutputArgs struct {
	// Client E-mail ID.
	ClientEmail pulumi.StringInput `pulumi:"clientEmail"`
	// GCP Private key.
	PrivateKey pulumi.StringInput `pulumi:"privateKey"`
	// GCP Private key ID.
	PrivateKeyId pulumi.StringInput `pulumi:"privateKeyId"`
	// GCP Project ID.
	ProjectId pulumi.StringInput `pulumi:"projectId"`
}

A collection of arguments for invoking getEnumerationGcp.

func (GetEnumerationGcpOutputArgs) ElementType

type GetEnumerationGcpResult

type GetEnumerationGcpResult struct {
	ClientEmail string `pulumi:"clientEmail"`
	// The provider-assigned unique ID for this managed resource.
	Id           string `pulumi:"id"`
	PrivateKey   string `pulumi:"privateKey"`
	PrivateKeyId string `pulumi:"privateKeyId"`
	ProjectId    string `pulumi:"projectId"`
	// A set of Region names to enable provisioning on. Example: northamerica-northeast1
	Regions []string `pulumi:"regions"`
}

A collection of values returned by getEnumerationGcp.

func GetEnumerationGcp

func GetEnumerationGcp(ctx *pulumi.Context, args *GetEnumerationGcpArgs, opts ...pulumi.InvokeOption) (*GetEnumerationGcpResult, error)

## Example Usage ### S

This is an example of how to lookup a region enumeration data source for GCP cloud account.

**Region enumeration data source for GCP** ```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetEnumerationGcp(ctx, &region.GetEnumerationGcpArgs{
			ClientEmail:  _var.Client_email,
			PrivateKeyId: _var.Private_key_id,
			PrivateKey:   _var.Private_key,
			ProjectId:    _var.Project_id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The region enumeration data source for GCP cloud account supports the following arguments:

type GetEnumerationGcpResultOutput

type GetEnumerationGcpResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumerationGcp.

func (GetEnumerationGcpResultOutput) ClientEmail

func (GetEnumerationGcpResultOutput) ElementType

func (GetEnumerationGcpResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationGcpResultOutput) PrivateKey

func (GetEnumerationGcpResultOutput) PrivateKeyId

func (GetEnumerationGcpResultOutput) ProjectId

func (GetEnumerationGcpResultOutput) Regions

A set of Region names to enable provisioning on. Example: northamerica-northeast1

func (GetEnumerationGcpResultOutput) ToGetEnumerationGcpResultOutput

func (o GetEnumerationGcpResultOutput) ToGetEnumerationGcpResultOutput() GetEnumerationGcpResultOutput

func (GetEnumerationGcpResultOutput) ToGetEnumerationGcpResultOutputWithContext

func (o GetEnumerationGcpResultOutput) ToGetEnumerationGcpResultOutputWithContext(ctx context.Context) GetEnumerationGcpResultOutput

type GetEnumerationOutputArgs

type GetEnumerationOutputArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert pulumi.BoolPtrInput `pulumi:"acceptSelfSignedCert"`
	// ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
	Dcid pulumi.StringPtrInput `pulumi:"dcid"`
	// Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
	Hostname pulumi.StringInput `pulumi:"hostname"`
	// Password for the user used to authenticate with the cloud Account
	Password pulumi.StringInput `pulumi:"password"`
	// Username to authenticate with the cloud account
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getEnumeration.

func (GetEnumerationOutputArgs) ElementType

func (GetEnumerationOutputArgs) ElementType() reflect.Type

type GetEnumerationResult

type GetEnumerationResult struct {
	AcceptSelfSignedCert *bool   `pulumi:"acceptSelfSignedCert"`
	Dcid                 *string `pulumi:"dcid"`
	Hostname             string  `pulumi:"hostname"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Password string `pulumi:"password"`
	// A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
	Regions  []string `pulumi:"regions"`
	Username string   `pulumi:"username"`
}

A collection of values returned by getEnumeration.

func GetEnumeration

func GetEnumeration(ctx *pulumi.Context, args *GetEnumerationArgs, opts ...pulumi.InvokeOption) (*GetEnumerationResult, error)

## Example Usage ### S

This is an example of how to lookup a region enumeration data source.

DeprecationMessage: 'region_enumeration' is deprecated. Use 'region_enumeration_vsphere' instead.

**Region enumeration data source for vSphere** ```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetEnumerationVSphere(ctx, &region.GetEnumerationVSphereArgs{
			AcceptSelfSignedCert: pulumi.BoolRef(false),
			Dcid:                 pulumi.StringRef(_var.Vra_data_collector_id),
			Hostname:             _var.Hostname,
			Password:             _var.Password,
			Username:             _var.Username,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The region enumeration data source supports the following arguments:

type GetEnumerationResultOutput

type GetEnumerationResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumeration.

func (GetEnumerationResultOutput) AcceptSelfSignedCert

func (o GetEnumerationResultOutput) AcceptSelfSignedCert() pulumi.BoolPtrOutput

func (GetEnumerationResultOutput) Dcid

func (GetEnumerationResultOutput) ElementType

func (GetEnumerationResultOutput) ElementType() reflect.Type

func (GetEnumerationResultOutput) Hostname

func (GetEnumerationResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationResultOutput) Password

func (GetEnumerationResultOutput) Regions

A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2

func (GetEnumerationResultOutput) ToGetEnumerationResultOutput

func (o GetEnumerationResultOutput) ToGetEnumerationResultOutput() GetEnumerationResultOutput

func (GetEnumerationResultOutput) ToGetEnumerationResultOutputWithContext

func (o GetEnumerationResultOutput) ToGetEnumerationResultOutputWithContext(ctx context.Context) GetEnumerationResultOutput

func (GetEnumerationResultOutput) Username

type GetEnumerationVSphereArgs

type GetEnumerationVSphereArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert *bool `pulumi:"acceptSelfSignedCert"`
	// ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
	Dcid *string `pulumi:"dcid"`
	// Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
	Hostname string `pulumi:"hostname"`
	// Password for the user used to authenticate with the cloud Account
	Password string `pulumi:"password"`
	// Username to authenticate with the cloud account
	Username string `pulumi:"username"`
}

A collection of arguments for invoking getEnumerationVSphere.

type GetEnumerationVSphereOutputArgs

type GetEnumerationVSphereOutputArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert pulumi.BoolPtrInput `pulumi:"acceptSelfSignedCert"`
	// ID of a data collector vm deployed in the on premise infrastructure. Example: d5316b00-f3b8-4895-9e9a-c4b98649c2ca
	Dcid pulumi.StringPtrInput `pulumi:"dcid"`
	// Host name for the cloud account endpoint. Example: dc1-lnd.mycompany.com
	Hostname pulumi.StringInput `pulumi:"hostname"`
	// Password for the user used to authenticate with the cloud Account
	Password pulumi.StringInput `pulumi:"password"`
	// Username to authenticate with the cloud account
	Username pulumi.StringInput `pulumi:"username"`
}

A collection of arguments for invoking getEnumerationVSphere.

func (GetEnumerationVSphereOutputArgs) ElementType

type GetEnumerationVSphereResult

type GetEnumerationVSphereResult struct {
	AcceptSelfSignedCert *bool   `pulumi:"acceptSelfSignedCert"`
	Dcid                 *string `pulumi:"dcid"`
	Hostname             string  `pulumi:"hostname"`
	// The provider-assigned unique ID for this managed resource.
	Id       string `pulumi:"id"`
	Password string `pulumi:"password"`
	// A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2
	Regions  []string `pulumi:"regions"`
	Username string   `pulumi:"username"`
}

A collection of values returned by getEnumerationVSphere.

func GetEnumerationVSphere

func GetEnumerationVSphere(ctx *pulumi.Context, args *GetEnumerationVSphereArgs, opts ...pulumi.InvokeOption) (*GetEnumerationVSphereResult, error)

## Example Usage

type GetEnumerationVSphereResultOutput

type GetEnumerationVSphereResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumerationVSphere.

func (GetEnumerationVSphereResultOutput) AcceptSelfSignedCert

func (o GetEnumerationVSphereResultOutput) AcceptSelfSignedCert() pulumi.BoolPtrOutput

func (GetEnumerationVSphereResultOutput) Dcid

func (GetEnumerationVSphereResultOutput) ElementType

func (GetEnumerationVSphereResultOutput) Hostname

func (GetEnumerationVSphereResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationVSphereResultOutput) Password

func (GetEnumerationVSphereResultOutput) Regions

A set of datacenter managed object reference identifiers to enable provisioning on. Example: Datacenter:datacenter-2

func (GetEnumerationVSphereResultOutput) ToGetEnumerationVSphereResultOutput

func (o GetEnumerationVSphereResultOutput) ToGetEnumerationVSphereResultOutput() GetEnumerationVSphereResultOutput

func (GetEnumerationVSphereResultOutput) ToGetEnumerationVSphereResultOutputWithContext

func (o GetEnumerationVSphereResultOutput) ToGetEnumerationVSphereResultOutputWithContext(ctx context.Context) GetEnumerationVSphereResultOutput

func (GetEnumerationVSphereResultOutput) Username

type GetEnumerationVmcArgs

type GetEnumerationVmcArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert *bool `pulumi:"acceptSelfSignedCert"`
	// API Token for the cloud account endpoint.
	ApiToken string `pulumi:"apiToken"`
	// ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
	DcId *string `pulumi:"dcId"`
	// The IP address of the NSX Manager server in the specified SDDC / FQDN.
	NsxHostname string `pulumi:"nsxHostname"`
	// Identifier of the on-premise SDDC to be used by this cloud account.
	SddcName string `pulumi:"sddcName"`
	// The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
	VcenterHostname string `pulumi:"vcenterHostname"`
	// Password for the user used to authenticate with the cloud Account
	VcenterPassword string `pulumi:"vcenterPassword"`
	// vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
	VcenterUsername string `pulumi:"vcenterUsername"`
}

A collection of arguments for invoking getEnumerationVmc.

type GetEnumerationVmcOutputArgs

type GetEnumerationVmcOutputArgs struct {
	// Accept self signed certificate when connecting to vSphere. Example: false
	AcceptSelfSignedCert pulumi.BoolPtrInput `pulumi:"acceptSelfSignedCert"`
	// API Token for the cloud account endpoint.
	ApiToken pulumi.StringInput `pulumi:"apiToken"`
	// ID of a data collector vm deployed in the on premise infrastructure. Refer to the data-collector API to create or list data collectors.
	DcId pulumi.StringPtrInput `pulumi:"dcId"`
	// The IP address of the NSX Manager server in the specified SDDC / FQDN.
	NsxHostname pulumi.StringInput `pulumi:"nsxHostname"`
	// Identifier of the on-premise SDDC to be used by this cloud account.
	SddcName pulumi.StringInput `pulumi:"sddcName"`
	// The IP address or FQDN of the vCenter Server in the specified SDDC. The cloud proxy belongs on this vCenter.
	VcenterHostname pulumi.StringInput `pulumi:"vcenterHostname"`
	// Password for the user used to authenticate with the cloud Account
	VcenterPassword pulumi.StringInput `pulumi:"vcenterPassword"`
	// vCenter user name for the specified SDDC.The specified user requires CloudAdmin credentials. The user does not require CloudGlobalAdmin credentials.
	VcenterUsername pulumi.StringInput `pulumi:"vcenterUsername"`
}

A collection of arguments for invoking getEnumerationVmc.

func (GetEnumerationVmcOutputArgs) ElementType

type GetEnumerationVmcResult

type GetEnumerationVmcResult struct {
	AcceptSelfSignedCert *bool   `pulumi:"acceptSelfSignedCert"`
	ApiToken             string  `pulumi:"apiToken"`
	DcId                 *string `pulumi:"dcId"`
	// The provider-assigned unique ID for this managed resource.
	Id          string `pulumi:"id"`
	NsxHostname string `pulumi:"nsxHostname"`
	// A set of Region names to enable provisioning on. Example: northamerica-northeast1
	Regions         []string `pulumi:"regions"`
	SddcName        string   `pulumi:"sddcName"`
	VcenterHostname string   `pulumi:"vcenterHostname"`
	VcenterPassword string   `pulumi:"vcenterPassword"`
	VcenterUsername string   `pulumi:"vcenterUsername"`
}

A collection of values returned by getEnumerationVmc.

func GetEnumerationVmc

func GetEnumerationVmc(ctx *pulumi.Context, args *GetEnumerationVmcArgs, opts ...pulumi.InvokeOption) (*GetEnumerationVmcResult, error)

## Example Usage ### S

This is an example of how to lookup a region enumeration data source for VMC cloud account.

**Region enumeration data source for VMC** ```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetEnumerationVmc(ctx, &region.GetEnumerationVmcArgs{
			AcceptSelfSignedCert: pulumi.BoolRef(true),
			DcId:                 pulumi.StringRef(_var.Vra_data_collector_id),
			ApiToken:             _var.Api_token,
			SddcName:             _var.Sddc_name,
			NsxHostname:          _var.Nsx_hostname,
			VcenterHostname:      _var.Vcenter_hostname,
			VcenterPassword:      _var.Vcenter_password,
			VcenterUsername:      _var.Vcenter_username,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

The region enumeration data source for VMC cloud account supports the following arguments:

type GetEnumerationVmcResultOutput

type GetEnumerationVmcResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getEnumerationVmc.

func (GetEnumerationVmcResultOutput) AcceptSelfSignedCert

func (o GetEnumerationVmcResultOutput) AcceptSelfSignedCert() pulumi.BoolPtrOutput

func (GetEnumerationVmcResultOutput) ApiToken

func (GetEnumerationVmcResultOutput) DcId

func (GetEnumerationVmcResultOutput) ElementType

func (GetEnumerationVmcResultOutput) Id

The provider-assigned unique ID for this managed resource.

func (GetEnumerationVmcResultOutput) NsxHostname

func (GetEnumerationVmcResultOutput) Regions

A set of Region names to enable provisioning on. Example: northamerica-northeast1

func (GetEnumerationVmcResultOutput) SddcName

func (GetEnumerationVmcResultOutput) ToGetEnumerationVmcResultOutput

func (o GetEnumerationVmcResultOutput) ToGetEnumerationVmcResultOutput() GetEnumerationVmcResultOutput

func (GetEnumerationVmcResultOutput) ToGetEnumerationVmcResultOutputWithContext

func (o GetEnumerationVmcResultOutput) ToGetEnumerationVmcResultOutputWithContext(ctx context.Context) GetEnumerationVmcResultOutput

func (GetEnumerationVmcResultOutput) VcenterHostname

func (GetEnumerationVmcResultOutput) VcenterPassword

func (GetEnumerationVmcResultOutput) VcenterUsername

type GetRegionArgs

type GetRegionArgs struct {
	// The id of the cloud account the region belongs to.
	CloudAccountId *string `pulumi:"cloudAccountId"`
	// Search criteria to narrow down Regions.
	Filter *string `pulumi:"filter"`
	// The id of the region instance.
	Id *string `pulumi:"id"`
	// The specific region associated with the cloud account. On vSphere, this is the external ID.
	Region *string `pulumi:"region"`
}

A collection of arguments for invoking getRegion.

type GetRegionOutputArgs

type GetRegionOutputArgs struct {
	// The id of the cloud account the region belongs to.
	CloudAccountId pulumi.StringPtrInput `pulumi:"cloudAccountId"`
	// Search criteria to narrow down Regions.
	Filter pulumi.StringPtrInput `pulumi:"filter"`
	// The id of the region instance.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// The specific region associated with the cloud account. On vSphere, this is the external ID.
	Region pulumi.StringPtrInput `pulumi:"region"`
}

A collection of arguments for invoking getRegion.

func (GetRegionOutputArgs) ElementType

func (GetRegionOutputArgs) ElementType() reflect.Type

type GetRegionResult

type GetRegionResult struct {
	CloudAccountId string `pulumi:"cloudAccountId"`
	// Date when the entity was created. The date is in ISO 8601 and UTC.
	CreatedAt string `pulumi:"createdAt"`
	// Unique identifier of region on the provider side.
	ExternalRegionId string  `pulumi:"externalRegionId"`
	Filter           *string `pulumi:"filter"`
	Id               string  `pulumi:"id"`
	// Name of region on the provider side. In vSphere, the name of the region is different from its id.
	Name string `pulumi:"name"`
	// The id of the organization this entity belongs to.
	OrgId string `pulumi:"orgId"`
	// Email of the user that owns the entity.
	Owner  string  `pulumi:"owner"`
	Region *string `pulumi:"region"`
	// Date when the entity was last updated. The date is ISO 8601 and UTC.
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getRegion.

func GetRegion

func GetRegion(ctx *pulumi.Context, args *GetRegionArgs, opts ...pulumi.InvokeOption) (*GetRegionResult, error)

This is an example of how to lookup a region data source:

**Region data source by id:**

```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetRegion(ctx, &region.GetRegionArgs{
			Id: pulumi.StringRef(_var.Vra_region_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

**Region data source by filter:**

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetRegion(ctx, &region.GetRegionArgs{
			Filter: pulumi.StringRef(fmt.Sprintf("name eq '%v'", _var.Vra_region_name)),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

**Region data source by cloud account id and region:**

```go package main

import (

"github.com/pulumi/pulumi-vra/sdk/go/vra/region"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := region.GetRegion(ctx, &region.GetRegionArgs{
			CloudAccountId: pulumi.StringRef(_var.Vra_cloud_account_id),
			Region:         pulumi.StringRef(_var.Vra_region_external_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetRegionResultOutput

type GetRegionResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getRegion.

func (GetRegionResultOutput) CloudAccountId

func (o GetRegionResultOutput) CloudAccountId() pulumi.StringOutput

func (GetRegionResultOutput) CreatedAt

Date when the entity was created. The date is in ISO 8601 and UTC.

func (GetRegionResultOutput) ElementType

func (GetRegionResultOutput) ElementType() reflect.Type

func (GetRegionResultOutput) ExternalRegionId

func (o GetRegionResultOutput) ExternalRegionId() pulumi.StringOutput

Unique identifier of region on the provider side.

func (GetRegionResultOutput) Filter

func (GetRegionResultOutput) Id

func (GetRegionResultOutput) Name

Name of region on the provider side. In vSphere, the name of the region is different from its id.

func (GetRegionResultOutput) OrgId

The id of the organization this entity belongs to.

func (GetRegionResultOutput) Owner

Email of the user that owns the entity.

func (GetRegionResultOutput) Region

func (GetRegionResultOutput) ToGetRegionResultOutput

func (o GetRegionResultOutput) ToGetRegionResultOutput() GetRegionResultOutput

func (GetRegionResultOutput) ToGetRegionResultOutputWithContext

func (o GetRegionResultOutput) ToGetRegionResultOutputWithContext(ctx context.Context) GetRegionResultOutput

func (GetRegionResultOutput) UpdatedAt

Date when the entity was last updated. The date is ISO 8601 and UTC.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL