1. Packages
  2. Vra Provider
  3. API Docs
  4. BlueprintVersion
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

vra.BlueprintVersion

Explore with Pulumi AI

Creates a VMware vRealize Automation cloud template (blueprint) version resource.

Example Usage

S

The following example shows how to create a cloud template (blueprint) version resource.

import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";

const _this = new vra.BlueprintVersion("this", {
    blueprintId: _var.vra_blueprint_id,
    changeLog: "First version",
    description: "Released from vRA terraform provider",
    release: true,
    version: random_integer.suffix.result / random_integer.suffix.result,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.BlueprintVersion("this",
    blueprint_id=var["vra_blueprint_id"],
    change_log="First version",
    description="Released from vRA terraform provider",
    release=True,
    version=random_integer["suffix"]["result"] / random_integer["suffix"]["result"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := vra.NewBlueprintVersion(ctx, "this", &vra.BlueprintVersionArgs{
			BlueprintId: pulumi.Any(_var.Vra_blueprint_id),
			ChangeLog:   pulumi.String("First version"),
			Description: pulumi.String("Released from vRA terraform provider"),
			Release:     pulumi.Bool(true),
			Version:     pulumi.String(random_integer.Suffix.Result / random_integer.Suffix.Result),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;

return await Deployment.RunAsync(() => 
{
    var @this = new Vra.BlueprintVersion("this", new()
    {
        BlueprintId = @var.Vra_blueprint_id,
        ChangeLog = "First version",
        Description = "Released from vRA terraform provider",
        Release = true,
        Version = random_integer.Suffix.Result / random_integer.Suffix.Result,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.BlueprintVersion;
import com.pulumi.vra.BlueprintVersionArgs;
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) {
        var this_ = new BlueprintVersion("this", BlueprintVersionArgs.builder()
            .blueprintId(var_.vra_blueprint_id())
            .changeLog("First version")
            .description("Released from vRA terraform provider")
            .release(true)
            .version(random_integer.suffix().result() / random_integer.suffix().result())
            .build());

    }
}
Copy
Coming soon!

Create BlueprintVersion Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new BlueprintVersion(name: string, args: BlueprintVersionArgs, opts?: CustomResourceOptions);
@overload
def BlueprintVersion(resource_name: str,
                     args: BlueprintVersionArgs,
                     opts: Optional[ResourceOptions] = None)

@overload
def BlueprintVersion(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     blueprint_id: Optional[str] = None,
                     version: Optional[str] = None,
                     blueprint_version_id: Optional[str] = None,
                     change_log: Optional[str] = None,
                     description: Optional[str] = None,
                     release: Optional[bool] = None)
func NewBlueprintVersion(ctx *Context, name string, args BlueprintVersionArgs, opts ...ResourceOption) (*BlueprintVersion, error)
public BlueprintVersion(string name, BlueprintVersionArgs args, CustomResourceOptions? opts = null)
public BlueprintVersion(String name, BlueprintVersionArgs args)
public BlueprintVersion(String name, BlueprintVersionArgs args, CustomResourceOptions options)
type: vra:BlueprintVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. BlueprintVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. BlueprintVersionArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. BlueprintVersionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. BlueprintVersionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. BlueprintVersionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var blueprintVersionResource = new Vra.BlueprintVersion("blueprintVersionResource", new()
{
    BlueprintId = "string",
    Version = "string",
    BlueprintVersionId = "string",
    ChangeLog = "string",
    Description = "string",
    Release = false,
});
Copy
example, err := vra.NewBlueprintVersion(ctx, "blueprintVersionResource", &vra.BlueprintVersionArgs{
BlueprintId: pulumi.String("string"),
Version: pulumi.String("string"),
BlueprintVersionId: pulumi.String("string"),
ChangeLog: pulumi.String("string"),
Description: pulumi.String("string"),
Release: pulumi.Bool(false),
})
Copy
var blueprintVersionResource = new BlueprintVersion("blueprintVersionResource", BlueprintVersionArgs.builder()
    .blueprintId("string")
    .version("string")
    .blueprintVersionId("string")
    .changeLog("string")
    .description("string")
    .release(false)
    .build());
Copy
blueprint_version_resource = vra.BlueprintVersion("blueprintVersionResource",
    blueprint_id="string",
    version="string",
    blueprint_version_id="string",
    change_log="string",
    description="string",
    release=False)
Copy
const blueprintVersionResource = new vra.BlueprintVersion("blueprintVersionResource", {
    blueprintId: "string",
    version: "string",
    blueprintVersionId: "string",
    changeLog: "string",
    description: "string",
    release: false,
});
Copy
type: vra:BlueprintVersion
properties:
    blueprintId: string
    blueprintVersionId: string
    changeLog: string
    description: string
    release: false
    version: string
Copy

BlueprintVersion Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The BlueprintVersion resource accepts the following input properties:

BlueprintId This property is required. string
ID of the cloud template (blueprint).
Version This property is required. string
Cloud template (blueprint) version.
BlueprintVersionId string
ID of cloud template (blueprint) version.
ChangeLog string
Cloud template (blueprint) version log.
Description string
Human-friendly description for the cloud template (blueprint) version.
Release bool
Flag to indicate whether to release the version.
BlueprintId This property is required. string
ID of the cloud template (blueprint).
Version This property is required. string
Cloud template (blueprint) version.
BlueprintVersionId string
ID of cloud template (blueprint) version.
ChangeLog string
Cloud template (blueprint) version log.
Description string
Human-friendly description for the cloud template (blueprint) version.
Release bool
Flag to indicate whether to release the version.
blueprintId This property is required. String
ID of the cloud template (blueprint).
version This property is required. String
Cloud template (blueprint) version.
blueprintVersionId String
ID of cloud template (blueprint) version.
changeLog String
Cloud template (blueprint) version log.
description String
Human-friendly description for the cloud template (blueprint) version.
release Boolean
Flag to indicate whether to release the version.
blueprintId This property is required. string
ID of the cloud template (blueprint).
version This property is required. string
Cloud template (blueprint) version.
blueprintVersionId string
ID of cloud template (blueprint) version.
changeLog string
Cloud template (blueprint) version log.
description string
Human-friendly description for the cloud template (blueprint) version.
release boolean
Flag to indicate whether to release the version.
blueprint_id This property is required. str
ID of the cloud template (blueprint).
version This property is required. str
Cloud template (blueprint) version.
blueprint_version_id str
ID of cloud template (blueprint) version.
change_log str
Cloud template (blueprint) version log.
description str
Human-friendly description for the cloud template (blueprint) version.
release bool
Flag to indicate whether to release the version.
blueprintId This property is required. String
ID of the cloud template (blueprint).
version This property is required. String
Cloud template (blueprint) version.
blueprintVersionId String
ID of cloud template (blueprint) version.
changeLog String
Cloud template (blueprint) version log.
description String
Human-friendly description for the cloud template (blueprint) version.
release Boolean
Flag to indicate whether to release the version.

Outputs

All input properties are implicitly available as output properties. Additionally, the BlueprintVersion resource produces the following output properties:

BlueprintDescription string
Description of cloud template (blueprint).
Content string
Blueprint YAML content.
CreatedAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
CreatedBy string
User who created the entity.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of cloud template (blueprint) version.
OrgId string
ID of organization that entity belongs to.
ProjectId string
ID of project that entity belongs to.
ProjectName string
Name of project that entity belongs to.
Status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
UpdatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
UpdatedBy string
User who last updated the entity.
Valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
BlueprintDescription string
Description of cloud template (blueprint).
Content string
Blueprint YAML content.
CreatedAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
CreatedBy string
User who created the entity.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Name of cloud template (blueprint) version.
OrgId string
ID of organization that entity belongs to.
ProjectId string
ID of project that entity belongs to.
ProjectName string
Name of project that entity belongs to.
Status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
UpdatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
UpdatedBy string
User who last updated the entity.
Valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
blueprintDescription String
Description of cloud template (blueprint).
content String
Blueprint YAML content.
createdAt String
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy String
User who created the entity.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of cloud template (blueprint) version.
orgId String
ID of organization that entity belongs to.
projectId String
ID of project that entity belongs to.
projectName String
Name of project that entity belongs to.
status String
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt String
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy String
User who last updated the entity.
valid String
Flag to indicate if the current content of the cloud template (blueprint) is valid.
blueprintDescription string
Description of cloud template (blueprint).
content string
Blueprint YAML content.
createdAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy string
User who created the entity.
id string
The provider-assigned unique ID for this managed resource.
name string
Name of cloud template (blueprint) version.
orgId string
ID of organization that entity belongs to.
projectId string
ID of project that entity belongs to.
projectName string
Name of project that entity belongs to.
status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy string
User who last updated the entity.
valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
blueprint_description str
Description of cloud template (blueprint).
content str
Blueprint YAML content.
created_at str
Date when the entity was created. Date and time format is ISO 8601 and UTC.
created_by str
User who created the entity.
id str
The provider-assigned unique ID for this managed resource.
name str
Name of cloud template (blueprint) version.
org_id str
ID of organization that entity belongs to.
project_id str
ID of project that entity belongs to.
project_name str
Name of project that entity belongs to.
status str
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updated_at str
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updated_by str
User who last updated the entity.
valid str
Flag to indicate if the current content of the cloud template (blueprint) is valid.
blueprintDescription String
Description of cloud template (blueprint).
content String
Blueprint YAML content.
createdAt String
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy String
User who created the entity.
id String
The provider-assigned unique ID for this managed resource.
name String
Name of cloud template (blueprint) version.
orgId String
ID of organization that entity belongs to.
projectId String
ID of project that entity belongs to.
projectName String
Name of project that entity belongs to.
status String
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt String
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy String
User who last updated the entity.
valid String
Flag to indicate if the current content of the cloud template (blueprint) is valid.

Look up Existing BlueprintVersion Resource

Get an existing BlueprintVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: BlueprintVersionState, opts?: CustomResourceOptions): BlueprintVersion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        blueprint_description: Optional[str] = None,
        blueprint_id: Optional[str] = None,
        blueprint_version_id: Optional[str] = None,
        change_log: Optional[str] = None,
        content: Optional[str] = None,
        created_at: Optional[str] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        project_name: Optional[str] = None,
        release: Optional[bool] = None,
        status: Optional[str] = None,
        updated_at: Optional[str] = None,
        updated_by: Optional[str] = None,
        valid: Optional[str] = None,
        version: Optional[str] = None) -> BlueprintVersion
func GetBlueprintVersion(ctx *Context, name string, id IDInput, state *BlueprintVersionState, opts ...ResourceOption) (*BlueprintVersion, error)
public static BlueprintVersion Get(string name, Input<string> id, BlueprintVersionState? state, CustomResourceOptions? opts = null)
public static BlueprintVersion get(String name, Output<String> id, BlueprintVersionState state, CustomResourceOptions options)
resources:  _:    type: vra:BlueprintVersion    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
BlueprintDescription string
Description of cloud template (blueprint).
BlueprintId string
ID of the cloud template (blueprint).
BlueprintVersionId string
ID of cloud template (blueprint) version.
ChangeLog string
Cloud template (blueprint) version log.
Content string
Blueprint YAML content.
CreatedAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
CreatedBy string
User who created the entity.
Description string
Human-friendly description for the cloud template (blueprint) version.
Name string
Name of cloud template (blueprint) version.
OrgId string
ID of organization that entity belongs to.
ProjectId string
ID of project that entity belongs to.
ProjectName string
Name of project that entity belongs to.
Release bool
Flag to indicate whether to release the version.
Status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
UpdatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
UpdatedBy string
User who last updated the entity.
Valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
Version string
Cloud template (blueprint) version.
BlueprintDescription string
Description of cloud template (blueprint).
BlueprintId string
ID of the cloud template (blueprint).
BlueprintVersionId string
ID of cloud template (blueprint) version.
ChangeLog string
Cloud template (blueprint) version log.
Content string
Blueprint YAML content.
CreatedAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
CreatedBy string
User who created the entity.
Description string
Human-friendly description for the cloud template (blueprint) version.
Name string
Name of cloud template (blueprint) version.
OrgId string
ID of organization that entity belongs to.
ProjectId string
ID of project that entity belongs to.
ProjectName string
Name of project that entity belongs to.
Release bool
Flag to indicate whether to release the version.
Status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
UpdatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
UpdatedBy string
User who last updated the entity.
Valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
Version string
Cloud template (blueprint) version.
blueprintDescription String
Description of cloud template (blueprint).
blueprintId String
ID of the cloud template (blueprint).
blueprintVersionId String
ID of cloud template (blueprint) version.
changeLog String
Cloud template (blueprint) version log.
content String
Blueprint YAML content.
createdAt String
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy String
User who created the entity.
description String
Human-friendly description for the cloud template (blueprint) version.
name String
Name of cloud template (blueprint) version.
orgId String
ID of organization that entity belongs to.
projectId String
ID of project that entity belongs to.
projectName String
Name of project that entity belongs to.
release Boolean
Flag to indicate whether to release the version.
status String
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt String
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy String
User who last updated the entity.
valid String
Flag to indicate if the current content of the cloud template (blueprint) is valid.
version String
Cloud template (blueprint) version.
blueprintDescription string
Description of cloud template (blueprint).
blueprintId string
ID of the cloud template (blueprint).
blueprintVersionId string
ID of cloud template (blueprint) version.
changeLog string
Cloud template (blueprint) version log.
content string
Blueprint YAML content.
createdAt string
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy string
User who created the entity.
description string
Human-friendly description for the cloud template (blueprint) version.
name string
Name of cloud template (blueprint) version.
orgId string
ID of organization that entity belongs to.
projectId string
ID of project that entity belongs to.
projectName string
Name of project that entity belongs to.
release boolean
Flag to indicate whether to release the version.
status string
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt string
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy string
User who last updated the entity.
valid string
Flag to indicate if the current content of the cloud template (blueprint) is valid.
version string
Cloud template (blueprint) version.
blueprint_description str
Description of cloud template (blueprint).
blueprint_id str
ID of the cloud template (blueprint).
blueprint_version_id str
ID of cloud template (blueprint) version.
change_log str
Cloud template (blueprint) version log.
content str
Blueprint YAML content.
created_at str
Date when the entity was created. Date and time format is ISO 8601 and UTC.
created_by str
User who created the entity.
description str
Human-friendly description for the cloud template (blueprint) version.
name str
Name of cloud template (blueprint) version.
org_id str
ID of organization that entity belongs to.
project_id str
ID of project that entity belongs to.
project_name str
Name of project that entity belongs to.
release bool
Flag to indicate whether to release the version.
status str
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updated_at str
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updated_by str
User who last updated the entity.
valid str
Flag to indicate if the current content of the cloud template (blueprint) is valid.
version str
Cloud template (blueprint) version.
blueprintDescription String
Description of cloud template (blueprint).
blueprintId String
ID of the cloud template (blueprint).
blueprintVersionId String
ID of cloud template (blueprint) version.
changeLog String
Cloud template (blueprint) version log.
content String
Blueprint YAML content.
createdAt String
Date when the entity was created. Date and time format is ISO 8601 and UTC.
createdBy String
User who created the entity.
description String
Human-friendly description for the cloud template (blueprint) version.
name String
Name of cloud template (blueprint) version.
orgId String
ID of organization that entity belongs to.
projectId String
ID of project that entity belongs to.
projectName String
Name of project that entity belongs to.
release Boolean
Flag to indicate whether to release the version.
status String
Status of the cloud template (blueprint). Supported values: DRAFT, VERSIONED, RELEASED.
updatedAt String
Date when the entity was last updated. Date and time format is ISO 8601 and UTC.
updatedBy String
User who last updated the entity.
valid String
Flag to indicate if the current content of the cloud template (blueprint) is valid.
version String
Cloud template (blueprint) version.

Import

To import the cloud template (blueprint) version, use the ID as in the following example:

$ pulumi import vra:index/blueprintVersion:BlueprintVersion this 05956583-6488-4e7d-84c9-92a7b7219a15`
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
vra vmware/terraform-provider-vra
License
Notes
This Pulumi package is based on the vra Terraform Provider.