image

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: 11 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 GetImageArgs

type GetImageArgs struct {
	// Search criteria to narrow down the image discovery.
	Filter string `pulumi:"filter"`
}

A collection of arguments for invoking getImage.

type GetImageOutputArgs

type GetImageOutputArgs struct {
	// Search criteria to narrow down the image discovery.
	Filter pulumi.StringInput `pulumi:"filter"`
}

A collection of arguments for invoking getImage.

func (GetImageOutputArgs) ElementType

func (GetImageOutputArgs) ElementType() reflect.Type

type GetImageResult

type GetImageResult struct {
	// A human-friendly description of the image.
	Description string `pulumi:"description"`
	// External entity id on the provider side.
	ExternalId string `pulumi:"externalId"`
	Filter     string `pulumi:"filter"`
	// The id of the image.
	Id string `pulumi:"id"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name string `pulumi:"name"`
	// Indicates whether this image is private. For vSphere, private images are templates and snapshots and public images are content library items.
	Private bool `pulumi:"private"`
	// The regionId of the image. For a vSphere cloud account, it is the `externalRegionId` such as `Datacenter:datacenter-2` and for an AWS cloud account, it is region name such as `us-east-1`, etc.
	Region string `pulumi:"region"`
}

A collection of values returned by getImage.

func GetImage

func GetImage(ctx *pulumi.Context, args *GetImageArgs, opts ...pulumi.InvokeOption) (*GetImageResult, error)

The `image.getImage` data source can be used to discover the lookup machine images with cloud accounts. This can then be used with resource that require an image. For example, to create an image profile using the `image.Profile` resource.

## Example Usage

This is an example of how to lookup images from a vSphere cloud account.

```go package main

import (

"fmt"

"github.com/pulumi/pulumi-vra/sdk/go/vra/cloudaccount"
"github.com/pulumi/pulumi-vra/sdk/go/vra/image"
"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/cloudaccount"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/image"
"github.com/pulumiverse/pulumi-vra/sdk/go/vra/region"

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		thisVSphere, err := cloudaccount.LookupVSphere(ctx, &cloudaccount.LookupVSphereArgs{
			Name: pulumi.StringRef(_var.Cloud_account),
		}, nil)
		if err != nil {
			return err
		}
		thisRegion, err := region.GetRegion(ctx, &region.GetRegionArgs{
			CloudAccountId: pulumi.StringRef(thisVSphere.Id),
			Region:         pulumi.StringRef(_var.Region),
		}, nil)
		if err != nil {
			return err
		}
		image0, err := image.GetImage(ctx, &image.GetImageArgs{
			Filter: fmt.Sprintf("name eq '%v' and cloudAccountId eq '%v' and externalRegionId eq '%v'", _var.Image_name_0, thisVSphere.Id, _var.Region),
		}, nil)
		if err != nil {
			return err
		}
		image1, err := image.GetImage(ctx, &image.GetImageArgs{
			Filter: fmt.Sprintf("name eq '%v' and cloudAccountId eq '%v' and externalRegionId eq '%v'", _var.Image_name_1, thisVSphere.Id, _var.Region),
		}, nil)
		if err != nil {
			return err
		}
		_, err = image.NewProfile(ctx, "thisProfile", &image.ProfileArgs{
			Description: pulumi.Any(_var.Image_profile_description),
			RegionId:    pulumi.String(thisRegion.Id),
			ImageMappings: image.ProfileImageMappingArray{
				&image.ProfileImageMappingArgs{
					Name:    pulumi.Any(_var.Image_name_0),
					ImageId: pulumi.String(image0.Id),
				},
				&image.ProfileImageMappingArgs{
					Name:    pulumi.Any(_var.Image_name_1),
					ImageId: pulumi.String(image1.Id),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

type GetImageResultOutput

type GetImageResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getImage.

func (GetImageResultOutput) Description

func (o GetImageResultOutput) Description() pulumi.StringOutput

A human-friendly description of the image.

func (GetImageResultOutput) ElementType

func (GetImageResultOutput) ElementType() reflect.Type

func (GetImageResultOutput) ExternalId

func (o GetImageResultOutput) ExternalId() pulumi.StringOutput

External entity id on the provider side.

func (GetImageResultOutput) Filter

func (GetImageResultOutput) Id

The id of the image.

func (GetImageResultOutput) Name

A human-friendly name used as an identifier in APIs that support this option.

func (GetImageResultOutput) Private

Indicates whether this image is private. For vSphere, private images are templates and snapshots and public images are content library items.

func (GetImageResultOutput) Region

The regionId of the image. For a vSphere cloud account, it is the `externalRegionId` such as `Datacenter:datacenter-2` and for an AWS cloud account, it is region name such as `us-east-1`, etc.

func (GetImageResultOutput) ToGetImageResultOutput

func (o GetImageResultOutput) ToGetImageResultOutput() GetImageResultOutput

func (GetImageResultOutput) ToGetImageResultOutputWithContext

func (o GetImageResultOutput) ToGetImageResultOutputWithContext(ctx context.Context) GetImageResultOutput

type GetProfileImageMapping

type GetProfileImageMapping struct {
	CloudConfig *string                            `pulumi:"cloudConfig"`
	Constraints []GetProfileImageMappingConstraint `pulumi:"constraints"`
	// A human-friendly description.
	Description string `pulumi:"description"`
	ExternalId  string `pulumi:"externalId"`
	// The external regionId of the resource.
	ExternalRegionId string  `pulumi:"externalRegionId"`
	ImageId          *string `pulumi:"imageId"`
	ImageName        *string `pulumi:"imageName"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name         string `pulumi:"name"`
	Organization string `pulumi:"organization"`
	OsFamily     string `pulumi:"osFamily"`
	// Email of the user that owns the entity.
	Owner   string `pulumi:"owner"`
	Private bool   `pulumi:"private"`
}

type GetProfileImageMappingArgs

type GetProfileImageMappingArgs struct {
	CloudConfig pulumi.StringPtrInput                      `pulumi:"cloudConfig"`
	Constraints GetProfileImageMappingConstraintArrayInput `pulumi:"constraints"`
	// A human-friendly description.
	Description pulumi.StringInput `pulumi:"description"`
	ExternalId  pulumi.StringInput `pulumi:"externalId"`
	// The external regionId of the resource.
	ExternalRegionId pulumi.StringInput    `pulumi:"externalRegionId"`
	ImageId          pulumi.StringPtrInput `pulumi:"imageId"`
	ImageName        pulumi.StringPtrInput `pulumi:"imageName"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name         pulumi.StringInput `pulumi:"name"`
	Organization pulumi.StringInput `pulumi:"organization"`
	OsFamily     pulumi.StringInput `pulumi:"osFamily"`
	// Email of the user that owns the entity.
	Owner   pulumi.StringInput `pulumi:"owner"`
	Private pulumi.BoolInput   `pulumi:"private"`
}

func (GetProfileImageMappingArgs) ElementType

func (GetProfileImageMappingArgs) ElementType() reflect.Type

func (GetProfileImageMappingArgs) ToGetProfileImageMappingOutput

func (i GetProfileImageMappingArgs) ToGetProfileImageMappingOutput() GetProfileImageMappingOutput

func (GetProfileImageMappingArgs) ToGetProfileImageMappingOutputWithContext

func (i GetProfileImageMappingArgs) ToGetProfileImageMappingOutputWithContext(ctx context.Context) GetProfileImageMappingOutput

type GetProfileImageMappingArray

type GetProfileImageMappingArray []GetProfileImageMappingInput

func (GetProfileImageMappingArray) ElementType

func (GetProfileImageMappingArray) ToGetProfileImageMappingArrayOutput

func (i GetProfileImageMappingArray) ToGetProfileImageMappingArrayOutput() GetProfileImageMappingArrayOutput

func (GetProfileImageMappingArray) ToGetProfileImageMappingArrayOutputWithContext

func (i GetProfileImageMappingArray) ToGetProfileImageMappingArrayOutputWithContext(ctx context.Context) GetProfileImageMappingArrayOutput

type GetProfileImageMappingArrayInput

type GetProfileImageMappingArrayInput interface {
	pulumi.Input

	ToGetProfileImageMappingArrayOutput() GetProfileImageMappingArrayOutput
	ToGetProfileImageMappingArrayOutputWithContext(context.Context) GetProfileImageMappingArrayOutput
}

GetProfileImageMappingArrayInput is an input type that accepts GetProfileImageMappingArray and GetProfileImageMappingArrayOutput values. You can construct a concrete instance of `GetProfileImageMappingArrayInput` via:

GetProfileImageMappingArray{ GetProfileImageMappingArgs{...} }

type GetProfileImageMappingArrayOutput

type GetProfileImageMappingArrayOutput struct{ *pulumi.OutputState }

func (GetProfileImageMappingArrayOutput) ElementType

func (GetProfileImageMappingArrayOutput) Index

func (GetProfileImageMappingArrayOutput) ToGetProfileImageMappingArrayOutput

func (o GetProfileImageMappingArrayOutput) ToGetProfileImageMappingArrayOutput() GetProfileImageMappingArrayOutput

func (GetProfileImageMappingArrayOutput) ToGetProfileImageMappingArrayOutputWithContext

func (o GetProfileImageMappingArrayOutput) ToGetProfileImageMappingArrayOutputWithContext(ctx context.Context) GetProfileImageMappingArrayOutput

type GetProfileImageMappingConstraint

type GetProfileImageMappingConstraint struct {
	Expression string `pulumi:"expression"`
	Mandatory  bool   `pulumi:"mandatory"`
}

type GetProfileImageMappingConstraintArgs

type GetProfileImageMappingConstraintArgs struct {
	Expression pulumi.StringInput `pulumi:"expression"`
	Mandatory  pulumi.BoolInput   `pulumi:"mandatory"`
}

func (GetProfileImageMappingConstraintArgs) ElementType

func (GetProfileImageMappingConstraintArgs) ToGetProfileImageMappingConstraintOutput

func (i GetProfileImageMappingConstraintArgs) ToGetProfileImageMappingConstraintOutput() GetProfileImageMappingConstraintOutput

func (GetProfileImageMappingConstraintArgs) ToGetProfileImageMappingConstraintOutputWithContext

func (i GetProfileImageMappingConstraintArgs) ToGetProfileImageMappingConstraintOutputWithContext(ctx context.Context) GetProfileImageMappingConstraintOutput

type GetProfileImageMappingConstraintArray

type GetProfileImageMappingConstraintArray []GetProfileImageMappingConstraintInput

func (GetProfileImageMappingConstraintArray) ElementType

func (GetProfileImageMappingConstraintArray) ToGetProfileImageMappingConstraintArrayOutput

func (i GetProfileImageMappingConstraintArray) ToGetProfileImageMappingConstraintArrayOutput() GetProfileImageMappingConstraintArrayOutput

func (GetProfileImageMappingConstraintArray) ToGetProfileImageMappingConstraintArrayOutputWithContext

func (i GetProfileImageMappingConstraintArray) ToGetProfileImageMappingConstraintArrayOutputWithContext(ctx context.Context) GetProfileImageMappingConstraintArrayOutput

type GetProfileImageMappingConstraintArrayInput

type GetProfileImageMappingConstraintArrayInput interface {
	pulumi.Input

	ToGetProfileImageMappingConstraintArrayOutput() GetProfileImageMappingConstraintArrayOutput
	ToGetProfileImageMappingConstraintArrayOutputWithContext(context.Context) GetProfileImageMappingConstraintArrayOutput
}

GetProfileImageMappingConstraintArrayInput is an input type that accepts GetProfileImageMappingConstraintArray and GetProfileImageMappingConstraintArrayOutput values. You can construct a concrete instance of `GetProfileImageMappingConstraintArrayInput` via:

GetProfileImageMappingConstraintArray{ GetProfileImageMappingConstraintArgs{...} }

type GetProfileImageMappingConstraintArrayOutput

type GetProfileImageMappingConstraintArrayOutput struct{ *pulumi.OutputState }

func (GetProfileImageMappingConstraintArrayOutput) ElementType

func (GetProfileImageMappingConstraintArrayOutput) Index

func (GetProfileImageMappingConstraintArrayOutput) ToGetProfileImageMappingConstraintArrayOutput

func (o GetProfileImageMappingConstraintArrayOutput) ToGetProfileImageMappingConstraintArrayOutput() GetProfileImageMappingConstraintArrayOutput

func (GetProfileImageMappingConstraintArrayOutput) ToGetProfileImageMappingConstraintArrayOutputWithContext

func (o GetProfileImageMappingConstraintArrayOutput) ToGetProfileImageMappingConstraintArrayOutputWithContext(ctx context.Context) GetProfileImageMappingConstraintArrayOutput

type GetProfileImageMappingConstraintInput

type GetProfileImageMappingConstraintInput interface {
	pulumi.Input

	ToGetProfileImageMappingConstraintOutput() GetProfileImageMappingConstraintOutput
	ToGetProfileImageMappingConstraintOutputWithContext(context.Context) GetProfileImageMappingConstraintOutput
}

GetProfileImageMappingConstraintInput is an input type that accepts GetProfileImageMappingConstraintArgs and GetProfileImageMappingConstraintOutput values. You can construct a concrete instance of `GetProfileImageMappingConstraintInput` via:

GetProfileImageMappingConstraintArgs{...}

type GetProfileImageMappingConstraintOutput

type GetProfileImageMappingConstraintOutput struct{ *pulumi.OutputState }

func (GetProfileImageMappingConstraintOutput) ElementType

func (GetProfileImageMappingConstraintOutput) Expression

func (GetProfileImageMappingConstraintOutput) Mandatory

func (GetProfileImageMappingConstraintOutput) ToGetProfileImageMappingConstraintOutput

func (o GetProfileImageMappingConstraintOutput) ToGetProfileImageMappingConstraintOutput() GetProfileImageMappingConstraintOutput

func (GetProfileImageMappingConstraintOutput) ToGetProfileImageMappingConstraintOutputWithContext

func (o GetProfileImageMappingConstraintOutput) ToGetProfileImageMappingConstraintOutputWithContext(ctx context.Context) GetProfileImageMappingConstraintOutput

type GetProfileImageMappingInput

type GetProfileImageMappingInput interface {
	pulumi.Input

	ToGetProfileImageMappingOutput() GetProfileImageMappingOutput
	ToGetProfileImageMappingOutputWithContext(context.Context) GetProfileImageMappingOutput
}

GetProfileImageMappingInput is an input type that accepts GetProfileImageMappingArgs and GetProfileImageMappingOutput values. You can construct a concrete instance of `GetProfileImageMappingInput` via:

GetProfileImageMappingArgs{...}

type GetProfileImageMappingOutput

type GetProfileImageMappingOutput struct{ *pulumi.OutputState }

func (GetProfileImageMappingOutput) CloudConfig

func (GetProfileImageMappingOutput) Constraints

func (GetProfileImageMappingOutput) Description

A human-friendly description.

func (GetProfileImageMappingOutput) ElementType

func (GetProfileImageMappingOutput) ExternalId

func (GetProfileImageMappingOutput) ExternalRegionId

func (o GetProfileImageMappingOutput) ExternalRegionId() pulumi.StringOutput

The external regionId of the resource.

func (GetProfileImageMappingOutput) ImageId

func (GetProfileImageMappingOutput) ImageName

func (GetProfileImageMappingOutput) Name

A human-friendly name used as an identifier in APIs that support this option.

func (GetProfileImageMappingOutput) Organization

func (GetProfileImageMappingOutput) OsFamily

func (GetProfileImageMappingOutput) Owner

Email of the user that owns the entity.

func (GetProfileImageMappingOutput) Private

func (GetProfileImageMappingOutput) ToGetProfileImageMappingOutput

func (o GetProfileImageMappingOutput) ToGetProfileImageMappingOutput() GetProfileImageMappingOutput

func (GetProfileImageMappingOutput) ToGetProfileImageMappingOutputWithContext

func (o GetProfileImageMappingOutput) ToGetProfileImageMappingOutputWithContext(ctx context.Context) GetProfileImageMappingOutput

type LookupProfileArgs

type LookupProfileArgs struct {
	// A human-friendly description.
	Description *string `pulumi:"description"`
	// Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
	Filter *string `pulumi:"filter"`
	// The id of the image profile instance.
	Id *string `pulumi:"id"`
	// Image mapping defined for the corresponding region.
	ImageMappings []GetProfileImageMapping `pulumi:"imageMappings"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name *string `pulumi:"name"`
	// The id of the region for which this profile is defined as in vRealize Automation(vRA).
	RegionId *string `pulumi:"regionId"`
}

A collection of arguments for invoking getProfile.

type LookupProfileOutputArgs

type LookupProfileOutputArgs struct {
	// A human-friendly description.
	Description pulumi.StringPtrInput `pulumi:"description"`
	// Filter query string that is supported by vRA multi-cloud IaaS API. Example: regionId eq '<regionId>' and cloudAccountId eq '<cloudAccountId>'.
	Filter pulumi.StringPtrInput `pulumi:"filter"`
	// The id of the image profile instance.
	Id pulumi.StringPtrInput `pulumi:"id"`
	// Image mapping defined for the corresponding region.
	ImageMappings GetProfileImageMappingArrayInput `pulumi:"imageMappings"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name pulumi.StringPtrInput `pulumi:"name"`
	// The id of the region for which this profile is defined as in vRealize Automation(vRA).
	RegionId pulumi.StringPtrInput `pulumi:"regionId"`
}

A collection of arguments for invoking getProfile.

func (LookupProfileOutputArgs) ElementType

func (LookupProfileOutputArgs) ElementType() reflect.Type

type LookupProfileResult

type LookupProfileResult struct {
	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt string `pulumi:"createdAt"`
	// A human-friendly description.
	Description *string `pulumi:"description"`
	// The external regionId of the resource.
	ExternalRegionId string  `pulumi:"externalRegionId"`
	Filter           *string `pulumi:"filter"`
	Id               string  `pulumi:"id"`
	// Image mapping defined for the corresponding region.
	ImageMappings []GetProfileImageMapping `pulumi:"imageMappings"`
	Name          string                   `pulumi:"name"`
	// Email of the user that owns the entity.
	Owner    string `pulumi:"owner"`
	RegionId string `pulumi:"regionId"`
	// Date when the entity was last updated. The date is ISO 8601 and UTC.
	UpdatedAt string `pulumi:"updatedAt"`
}

A collection of values returned by getProfile.

func LookupProfile

func LookupProfile(ctx *pulumi.Context, args *LookupProfileArgs, opts ...pulumi.InvokeOption) (*LookupProfileResult, error)

## Example Usage ### S This is an example of how to read an image profile as data source.

**Image profile data source by its id:**

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := image.LookupProfile(ctx, &image.LookupProfileArgs{
			Filter: pulumi.StringRef("name eq 'foobar'"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

**Vra image profile data source filter by region id:**

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := image.LookupProfile(ctx, &image.LookupProfileArgs{
			RegionId: pulumi.StringRef(vra_image_profile.This.Region_id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

```

An image profile data source supports the following arguments:

type LookupProfileResultOutput

type LookupProfileResultOutput struct{ *pulumi.OutputState }

A collection of values returned by getProfile.

func (LookupProfileResultOutput) CreatedAt

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

func (LookupProfileResultOutput) Description

A human-friendly description.

func (LookupProfileResultOutput) ElementType

func (LookupProfileResultOutput) ElementType() reflect.Type

func (LookupProfileResultOutput) ExternalRegionId

func (o LookupProfileResultOutput) ExternalRegionId() pulumi.StringOutput

The external regionId of the resource.

func (LookupProfileResultOutput) Filter

func (LookupProfileResultOutput) Id

func (LookupProfileResultOutput) ImageMappings

Image mapping defined for the corresponding region.

func (LookupProfileResultOutput) Name

func (LookupProfileResultOutput) Owner

Email of the user that owns the entity.

func (LookupProfileResultOutput) RegionId

func (LookupProfileResultOutput) ToLookupProfileResultOutput

func (o LookupProfileResultOutput) ToLookupProfileResultOutput() LookupProfileResultOutput

func (LookupProfileResultOutput) ToLookupProfileResultOutputWithContext

func (o LookupProfileResultOutput) ToLookupProfileResultOutputWithContext(ctx context.Context) LookupProfileResultOutput

func (LookupProfileResultOutput) UpdatedAt

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

type Profile

type Profile struct {
	pulumi.CustomResourceState

	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt pulumi.StringOutput `pulumi:"createdAt"`
	// A human-friendly description.
	Description pulumi.StringPtrOutput `pulumi:"description"`
	// The external regionId of the resource.
	ExternalRegionId pulumi.StringOutput `pulumi:"externalRegionId"`
	// Image mapping defined for the corresponding region.
	ImageMappings ProfileImageMappingArrayOutput `pulumi:"imageMappings"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name pulumi.StringOutput `pulumi:"name"`
	// Email of the user that owns the entity.
	Owner pulumi.StringOutput `pulumi:"owner"`
	// The id of the region for which this profile is defined as in vRealize Automation(vRA).
	RegionId pulumi.StringOutput `pulumi:"regionId"`
	// Date when the entity was last updated. The date is ISO 8601 and UTC.
	UpdatedAt pulumi.StringOutput `pulumi:"updatedAt"`
}

## Example Usage ### S This is an example of how to create an image profile resource.

**Image profile:**

```go package main

import (

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

)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := image.NewProfile(ctx, "this", &image.ProfileArgs{
			Description: pulumi.String("test image profile"),
			RegionId:    pulumi.Any(data.Vra_region.This.Id),
			ImageMappings: image.ProfileImageMappingArray{
				&image.ProfileImageMappingArgs{
					Name:    pulumi.String("centos"),
					ImageId: pulumi.Any(data.Vra_image.Centos.Id),
					Constraints: image.ProfileImageMappingConstraintArray{
						&image.ProfileImageMappingConstraintArgs{
							Mandatory:  pulumi.Bool(true),
							Expression: pulumi.String("!env:Test"),
						},
						&image.ProfileImageMappingConstraintArgs{
							Mandatory:  pulumi.Bool(false),
							Expression: pulumi.String("foo:bar"),
						},
					},
				},
				&image.ProfileImageMappingArgs{
					Name:        pulumi.String("photon"),
					ImageId:     pulumi.Any(data.Vra_image.Photon.Id),
					CloudConfig: pulumi.String("runcmd echo 'Hello'"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}

```

An image profile resource supports the following arguments:

func GetProfile

func GetProfile(ctx *pulumi.Context,
	name string, id pulumi.IDInput, state *ProfileState, opts ...pulumi.ResourceOption) (*Profile, error)

GetProfile gets an existing Profile resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).

func NewProfile

func NewProfile(ctx *pulumi.Context,
	name string, args *ProfileArgs, opts ...pulumi.ResourceOption) (*Profile, error)

NewProfile registers a new resource with the given unique name, arguments, and options.

func (*Profile) ElementType

func (*Profile) ElementType() reflect.Type

func (*Profile) ToProfileOutput

func (i *Profile) ToProfileOutput() ProfileOutput

func (*Profile) ToProfileOutputWithContext

func (i *Profile) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

type ProfileArgs

type ProfileArgs struct {
	// A human-friendly description.
	Description pulumi.StringPtrInput
	// Image mapping defined for the corresponding region.
	ImageMappings ProfileImageMappingArrayInput
	// A human-friendly name used as an identifier in APIs that support this option.
	Name pulumi.StringPtrInput
	// The id of the region for which this profile is defined as in vRealize Automation(vRA).
	RegionId pulumi.StringInput
}

The set of arguments for constructing a Profile resource.

func (ProfileArgs) ElementType

func (ProfileArgs) ElementType() reflect.Type

type ProfileArray

type ProfileArray []ProfileInput

func (ProfileArray) ElementType

func (ProfileArray) ElementType() reflect.Type

func (ProfileArray) ToProfileArrayOutput

func (i ProfileArray) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArray) ToProfileArrayOutputWithContext

func (i ProfileArray) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileArrayInput

type ProfileArrayInput interface {
	pulumi.Input

	ToProfileArrayOutput() ProfileArrayOutput
	ToProfileArrayOutputWithContext(context.Context) ProfileArrayOutput
}

ProfileArrayInput is an input type that accepts ProfileArray and ProfileArrayOutput values. You can construct a concrete instance of `ProfileArrayInput` via:

ProfileArray{ ProfileArgs{...} }

type ProfileArrayOutput

type ProfileArrayOutput struct{ *pulumi.OutputState }

func (ProfileArrayOutput) ElementType

func (ProfileArrayOutput) ElementType() reflect.Type

func (ProfileArrayOutput) Index

func (ProfileArrayOutput) ToProfileArrayOutput

func (o ProfileArrayOutput) ToProfileArrayOutput() ProfileArrayOutput

func (ProfileArrayOutput) ToProfileArrayOutputWithContext

func (o ProfileArrayOutput) ToProfileArrayOutputWithContext(ctx context.Context) ProfileArrayOutput

type ProfileImageMapping

type ProfileImageMapping struct {
	CloudConfig *string                         `pulumi:"cloudConfig"`
	Constraints []ProfileImageMappingConstraint `pulumi:"constraints"`
	// A human-friendly description.
	Description *string `pulumi:"description"`
	ExternalId  *string `pulumi:"externalId"`
	// The external regionId of the resource.
	ExternalRegionId *string `pulumi:"externalRegionId"`
	ImageId          *string `pulumi:"imageId"`
	ImageName        *string `pulumi:"imageName"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name         string  `pulumi:"name"`
	Organization *string `pulumi:"organization"`
	OsFamily     *string `pulumi:"osFamily"`
	// Email of the user that owns the entity.
	Owner   *string `pulumi:"owner"`
	Private *bool   `pulumi:"private"`
}

type ProfileImageMappingArgs

type ProfileImageMappingArgs struct {
	CloudConfig pulumi.StringPtrInput                   `pulumi:"cloudConfig"`
	Constraints ProfileImageMappingConstraintArrayInput `pulumi:"constraints"`
	// A human-friendly description.
	Description pulumi.StringPtrInput `pulumi:"description"`
	ExternalId  pulumi.StringPtrInput `pulumi:"externalId"`
	// The external regionId of the resource.
	ExternalRegionId pulumi.StringPtrInput `pulumi:"externalRegionId"`
	ImageId          pulumi.StringPtrInput `pulumi:"imageId"`
	ImageName        pulumi.StringPtrInput `pulumi:"imageName"`
	// A human-friendly name used as an identifier in APIs that support this option.
	Name         pulumi.StringInput    `pulumi:"name"`
	Organization pulumi.StringPtrInput `pulumi:"organization"`
	OsFamily     pulumi.StringPtrInput `pulumi:"osFamily"`
	// Email of the user that owns the entity.
	Owner   pulumi.StringPtrInput `pulumi:"owner"`
	Private pulumi.BoolPtrInput   `pulumi:"private"`
}

func (ProfileImageMappingArgs) ElementType

func (ProfileImageMappingArgs) ElementType() reflect.Type

func (ProfileImageMappingArgs) ToProfileImageMappingOutput

func (i ProfileImageMappingArgs) ToProfileImageMappingOutput() ProfileImageMappingOutput

func (ProfileImageMappingArgs) ToProfileImageMappingOutputWithContext

func (i ProfileImageMappingArgs) ToProfileImageMappingOutputWithContext(ctx context.Context) ProfileImageMappingOutput

type ProfileImageMappingArray

type ProfileImageMappingArray []ProfileImageMappingInput

func (ProfileImageMappingArray) ElementType

func (ProfileImageMappingArray) ElementType() reflect.Type

func (ProfileImageMappingArray) ToProfileImageMappingArrayOutput

func (i ProfileImageMappingArray) ToProfileImageMappingArrayOutput() ProfileImageMappingArrayOutput

func (ProfileImageMappingArray) ToProfileImageMappingArrayOutputWithContext

func (i ProfileImageMappingArray) ToProfileImageMappingArrayOutputWithContext(ctx context.Context) ProfileImageMappingArrayOutput

type ProfileImageMappingArrayInput

type ProfileImageMappingArrayInput interface {
	pulumi.Input

	ToProfileImageMappingArrayOutput() ProfileImageMappingArrayOutput
	ToProfileImageMappingArrayOutputWithContext(context.Context) ProfileImageMappingArrayOutput
}

ProfileImageMappingArrayInput is an input type that accepts ProfileImageMappingArray and ProfileImageMappingArrayOutput values. You can construct a concrete instance of `ProfileImageMappingArrayInput` via:

ProfileImageMappingArray{ ProfileImageMappingArgs{...} }

type ProfileImageMappingArrayOutput

type ProfileImageMappingArrayOutput struct{ *pulumi.OutputState }

func (ProfileImageMappingArrayOutput) ElementType

func (ProfileImageMappingArrayOutput) Index

func (ProfileImageMappingArrayOutput) ToProfileImageMappingArrayOutput

func (o ProfileImageMappingArrayOutput) ToProfileImageMappingArrayOutput() ProfileImageMappingArrayOutput

func (ProfileImageMappingArrayOutput) ToProfileImageMappingArrayOutputWithContext

func (o ProfileImageMappingArrayOutput) ToProfileImageMappingArrayOutputWithContext(ctx context.Context) ProfileImageMappingArrayOutput

type ProfileImageMappingConstraint

type ProfileImageMappingConstraint struct {
	Expression string `pulumi:"expression"`
	Mandatory  bool   `pulumi:"mandatory"`
}

type ProfileImageMappingConstraintArgs

type ProfileImageMappingConstraintArgs struct {
	Expression pulumi.StringInput `pulumi:"expression"`
	Mandatory  pulumi.BoolInput   `pulumi:"mandatory"`
}

func (ProfileImageMappingConstraintArgs) ElementType

func (ProfileImageMappingConstraintArgs) ToProfileImageMappingConstraintOutput

func (i ProfileImageMappingConstraintArgs) ToProfileImageMappingConstraintOutput() ProfileImageMappingConstraintOutput

func (ProfileImageMappingConstraintArgs) ToProfileImageMappingConstraintOutputWithContext

func (i ProfileImageMappingConstraintArgs) ToProfileImageMappingConstraintOutputWithContext(ctx context.Context) ProfileImageMappingConstraintOutput

type ProfileImageMappingConstraintArray

type ProfileImageMappingConstraintArray []ProfileImageMappingConstraintInput

func (ProfileImageMappingConstraintArray) ElementType

func (ProfileImageMappingConstraintArray) ToProfileImageMappingConstraintArrayOutput

func (i ProfileImageMappingConstraintArray) ToProfileImageMappingConstraintArrayOutput() ProfileImageMappingConstraintArrayOutput

func (ProfileImageMappingConstraintArray) ToProfileImageMappingConstraintArrayOutputWithContext

func (i ProfileImageMappingConstraintArray) ToProfileImageMappingConstraintArrayOutputWithContext(ctx context.Context) ProfileImageMappingConstraintArrayOutput

type ProfileImageMappingConstraintArrayInput

type ProfileImageMappingConstraintArrayInput interface {
	pulumi.Input

	ToProfileImageMappingConstraintArrayOutput() ProfileImageMappingConstraintArrayOutput
	ToProfileImageMappingConstraintArrayOutputWithContext(context.Context) ProfileImageMappingConstraintArrayOutput
}

ProfileImageMappingConstraintArrayInput is an input type that accepts ProfileImageMappingConstraintArray and ProfileImageMappingConstraintArrayOutput values. You can construct a concrete instance of `ProfileImageMappingConstraintArrayInput` via:

ProfileImageMappingConstraintArray{ ProfileImageMappingConstraintArgs{...} }

type ProfileImageMappingConstraintArrayOutput

type ProfileImageMappingConstraintArrayOutput struct{ *pulumi.OutputState }

func (ProfileImageMappingConstraintArrayOutput) ElementType

func (ProfileImageMappingConstraintArrayOutput) Index

func (ProfileImageMappingConstraintArrayOutput) ToProfileImageMappingConstraintArrayOutput

func (o ProfileImageMappingConstraintArrayOutput) ToProfileImageMappingConstraintArrayOutput() ProfileImageMappingConstraintArrayOutput

func (ProfileImageMappingConstraintArrayOutput) ToProfileImageMappingConstraintArrayOutputWithContext

func (o ProfileImageMappingConstraintArrayOutput) ToProfileImageMappingConstraintArrayOutputWithContext(ctx context.Context) ProfileImageMappingConstraintArrayOutput

type ProfileImageMappingConstraintInput

type ProfileImageMappingConstraintInput interface {
	pulumi.Input

	ToProfileImageMappingConstraintOutput() ProfileImageMappingConstraintOutput
	ToProfileImageMappingConstraintOutputWithContext(context.Context) ProfileImageMappingConstraintOutput
}

ProfileImageMappingConstraintInput is an input type that accepts ProfileImageMappingConstraintArgs and ProfileImageMappingConstraintOutput values. You can construct a concrete instance of `ProfileImageMappingConstraintInput` via:

ProfileImageMappingConstraintArgs{...}

type ProfileImageMappingConstraintOutput

type ProfileImageMappingConstraintOutput struct{ *pulumi.OutputState }

func (ProfileImageMappingConstraintOutput) ElementType

func (ProfileImageMappingConstraintOutput) Expression

func (ProfileImageMappingConstraintOutput) Mandatory

func (ProfileImageMappingConstraintOutput) ToProfileImageMappingConstraintOutput

func (o ProfileImageMappingConstraintOutput) ToProfileImageMappingConstraintOutput() ProfileImageMappingConstraintOutput

func (ProfileImageMappingConstraintOutput) ToProfileImageMappingConstraintOutputWithContext

func (o ProfileImageMappingConstraintOutput) ToProfileImageMappingConstraintOutputWithContext(ctx context.Context) ProfileImageMappingConstraintOutput

type ProfileImageMappingInput

type ProfileImageMappingInput interface {
	pulumi.Input

	ToProfileImageMappingOutput() ProfileImageMappingOutput
	ToProfileImageMappingOutputWithContext(context.Context) ProfileImageMappingOutput
}

ProfileImageMappingInput is an input type that accepts ProfileImageMappingArgs and ProfileImageMappingOutput values. You can construct a concrete instance of `ProfileImageMappingInput` via:

ProfileImageMappingArgs{...}

type ProfileImageMappingOutput

type ProfileImageMappingOutput struct{ *pulumi.OutputState }

func (ProfileImageMappingOutput) CloudConfig

func (ProfileImageMappingOutput) Constraints

func (ProfileImageMappingOutput) Description

A human-friendly description.

func (ProfileImageMappingOutput) ElementType

func (ProfileImageMappingOutput) ElementType() reflect.Type

func (ProfileImageMappingOutput) ExternalId

func (ProfileImageMappingOutput) ExternalRegionId

func (o ProfileImageMappingOutput) ExternalRegionId() pulumi.StringPtrOutput

The external regionId of the resource.

func (ProfileImageMappingOutput) ImageId

func (ProfileImageMappingOutput) ImageName

func (ProfileImageMappingOutput) Name

A human-friendly name used as an identifier in APIs that support this option.

func (ProfileImageMappingOutput) Organization

func (ProfileImageMappingOutput) OsFamily

func (ProfileImageMappingOutput) Owner

Email of the user that owns the entity.

func (ProfileImageMappingOutput) Private

func (ProfileImageMappingOutput) ToProfileImageMappingOutput

func (o ProfileImageMappingOutput) ToProfileImageMappingOutput() ProfileImageMappingOutput

func (ProfileImageMappingOutput) ToProfileImageMappingOutputWithContext

func (o ProfileImageMappingOutput) ToProfileImageMappingOutputWithContext(ctx context.Context) ProfileImageMappingOutput

type ProfileInput

type ProfileInput interface {
	pulumi.Input

	ToProfileOutput() ProfileOutput
	ToProfileOutputWithContext(ctx context.Context) ProfileOutput
}

type ProfileMap

type ProfileMap map[string]ProfileInput

func (ProfileMap) ElementType

func (ProfileMap) ElementType() reflect.Type

func (ProfileMap) ToProfileMapOutput

func (i ProfileMap) ToProfileMapOutput() ProfileMapOutput

func (ProfileMap) ToProfileMapOutputWithContext

func (i ProfileMap) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileMapInput

type ProfileMapInput interface {
	pulumi.Input

	ToProfileMapOutput() ProfileMapOutput
	ToProfileMapOutputWithContext(context.Context) ProfileMapOutput
}

ProfileMapInput is an input type that accepts ProfileMap and ProfileMapOutput values. You can construct a concrete instance of `ProfileMapInput` via:

ProfileMap{ "key": ProfileArgs{...} }

type ProfileMapOutput

type ProfileMapOutput struct{ *pulumi.OutputState }

func (ProfileMapOutput) ElementType

func (ProfileMapOutput) ElementType() reflect.Type

func (ProfileMapOutput) MapIndex

func (ProfileMapOutput) ToProfileMapOutput

func (o ProfileMapOutput) ToProfileMapOutput() ProfileMapOutput

func (ProfileMapOutput) ToProfileMapOutputWithContext

func (o ProfileMapOutput) ToProfileMapOutputWithContext(ctx context.Context) ProfileMapOutput

type ProfileOutput

type ProfileOutput struct{ *pulumi.OutputState }

func (ProfileOutput) CreatedAt

func (o ProfileOutput) CreatedAt() pulumi.StringOutput

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

func (ProfileOutput) Description

func (o ProfileOutput) Description() pulumi.StringPtrOutput

A human-friendly description.

func (ProfileOutput) ElementType

func (ProfileOutput) ElementType() reflect.Type

func (ProfileOutput) ExternalRegionId

func (o ProfileOutput) ExternalRegionId() pulumi.StringOutput

The external regionId of the resource.

func (ProfileOutput) ImageMappings

Image mapping defined for the corresponding region.

func (ProfileOutput) Name

A human-friendly name used as an identifier in APIs that support this option.

func (ProfileOutput) Owner

func (o ProfileOutput) Owner() pulumi.StringOutput

Email of the user that owns the entity.

func (ProfileOutput) RegionId

func (o ProfileOutput) RegionId() pulumi.StringOutput

The id of the region for which this profile is defined as in vRealize Automation(vRA).

func (ProfileOutput) ToProfileOutput

func (o ProfileOutput) ToProfileOutput() ProfileOutput

func (ProfileOutput) ToProfileOutputWithContext

func (o ProfileOutput) ToProfileOutputWithContext(ctx context.Context) ProfileOutput

func (ProfileOutput) UpdatedAt

func (o ProfileOutput) UpdatedAt() pulumi.StringOutput

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

type ProfileState

type ProfileState struct {
	// Date when the entity was created. The date is in ISO 6801 and UTC.
	CreatedAt pulumi.StringPtrInput
	// A human-friendly description.
	Description pulumi.StringPtrInput
	// The external regionId of the resource.
	ExternalRegionId pulumi.StringPtrInput
	// Image mapping defined for the corresponding region.
	ImageMappings ProfileImageMappingArrayInput
	// A human-friendly name used as an identifier in APIs that support this option.
	Name pulumi.StringPtrInput
	// Email of the user that owns the entity.
	Owner pulumi.StringPtrInput
	// The id of the region for which this profile is defined as in vRealize Automation(vRA).
	RegionId pulumi.StringPtrInput
	// Date when the entity was last updated. The date is ISO 8601 and UTC.
	UpdatedAt pulumi.StringPtrInput
}

func (ProfileState) ElementType

func (ProfileState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

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