vra 0.15.0 published on Tuesday, Aug 19, 2025 by vmware
vra.getBlueprint
This data source provides information about a cloud template (blueprint).
Example Usage
S
This is an example of how to get a cloud template by its name.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getBlueprint({
    name: vra_blueprint["this"].name,
});
import pulumi
import pulumi_vra as vra
this = vra.get_blueprint(name=vra_blueprint["this"]["name"])
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.LookupBlueprint(ctx, &vra.LookupBlueprintArgs{
			Name: pulumi.StringRef(vra_blueprint.This.Name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() => 
{
    var @this = Vra.GetBlueprint.Invoke(new()
    {
        Name = vra_blueprint.This.Name,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetBlueprintArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var this = VraFunctions.getBlueprint(GetBlueprintArgs.builder()
            .name(vra_blueprint.this().name())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getBlueprint
      arguments:
        name: ${vra_blueprint.this.name}
This is an example of how to get a cloud template by its id.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getBlueprint({
    id: vra_blueprint["this"].id,
});
import pulumi
import pulumi_vra as vra
this = vra.get_blueprint(id=vra_blueprint["this"]["id"])
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.LookupBlueprint(ctx, &vra.LookupBlueprintArgs{
			Id: pulumi.StringRef(vra_blueprint.This.Id),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() => 
{
    var @this = Vra.GetBlueprint.Invoke(new()
    {
        Id = vra_blueprint.This.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetBlueprintArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var this = VraFunctions.getBlueprint(GetBlueprintArgs.builder()
            .id(vra_blueprint.this().id())
            .build());
    }
}
variables:
  this:
    fn::invoke:
      function: vra:getBlueprint
      arguments:
        id: ${vra_blueprint.this.id}
Using getBlueprint
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBlueprint(args: GetBlueprintArgs, opts?: InvokeOptions): Promise<GetBlueprintResult>
function getBlueprintOutput(args: GetBlueprintOutputArgs, opts?: InvokeOptions): Output<GetBlueprintResult>def get_blueprint(id: Optional[str] = None,
                  name: Optional[str] = None,
                  project_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetBlueprintResult
def get_blueprint_output(id: Optional[pulumi.Input[str]] = None,
                  name: Optional[pulumi.Input[str]] = None,
                  project_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetBlueprintResult]func LookupBlueprint(ctx *Context, args *LookupBlueprintArgs, opts ...InvokeOption) (*LookupBlueprintResult, error)
func LookupBlueprintOutput(ctx *Context, args *LookupBlueprintOutputArgs, opts ...InvokeOption) LookupBlueprintResultOutput> Note: This function is named LookupBlueprint in the Go SDK.
public static class GetBlueprint 
{
    public static Task<GetBlueprintResult> InvokeAsync(GetBlueprintArgs args, InvokeOptions? opts = null)
    public static Output<GetBlueprintResult> Invoke(GetBlueprintInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBlueprintResult> getBlueprint(GetBlueprintArgs args, InvokeOptions options)
public static Output<GetBlueprintResult> getBlueprint(GetBlueprintArgs args, InvokeOptions options)
fn::invoke:
  function: vra:index/getBlueprint:getBlueprint
  arguments:
    # arguments dictionaryThe following arguments are supported:
- id str
- The id of this cloud template. One of idornamemust be provided.
- name str
- Name of the cloud template. One of idornamemust be provided.
- project_id str
- The id of the project to narrow the search while looking for cloud templates.
getBlueprint Result
The following output properties are available:
- Content string
- Blueprint YAML content.
- ContentSource stringId 
- The id of the content source.
- ContentSource stringPath 
- Content source path.
- ContentSource stringSync At 
- Content source last sync at.
- ContentSource List<string>Sync Messages 
- Content source last sync messages.
- ContentSource stringSync Status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- ContentSource stringType 
- Content source type.
- CreatedAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- CreatedBy string
- The user the entity was created by.
- Description string
- A human-friendly description.
- Id string
- Name string
- OrgId string
- The id of the organization this entity belongs to.
- ProjectId string
- ProjectName string
- The name of the project the entity belongs to.
- RequestScope boolOrg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- SelfLink string
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Status string
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- TotalReleased doubleVersions 
- Total number of released versions.
- TotalVersions double
- Total number of versions.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- UpdatedBy string
- The user the entity was last updated by.
- Valid bool
- Flag to indicate if the current content of the cloud template is valid.
- ValidationMessages List<GetBlueprint Validation Message> 
- List of validations messages.
- Content string
- Blueprint YAML content.
- ContentSource stringId 
- The id of the content source.
- ContentSource stringPath 
- Content source path.
- ContentSource stringSync At 
- Content source last sync at.
- ContentSource []stringSync Messages 
- Content source last sync messages.
- ContentSource stringSync Status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- ContentSource stringType 
- Content source type.
- CreatedAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- CreatedBy string
- The user the entity was created by.
- Description string
- A human-friendly description.
- Id string
- Name string
- OrgId string
- The id of the organization this entity belongs to.
- ProjectId string
- ProjectName string
- The name of the project the entity belongs to.
- RequestScope boolOrg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- SelfLink string
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- Status string
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- TotalReleased float64Versions 
- Total number of released versions.
- TotalVersions float64
- Total number of versions.
- UpdatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- UpdatedBy string
- The user the entity was last updated by.
- Valid bool
- Flag to indicate if the current content of the cloud template is valid.
- ValidationMessages []GetBlueprint Validation Message 
- List of validations messages.
- content String
- Blueprint YAML content.
- contentSource StringId 
- The id of the content source.
- contentSource StringPath 
- Content source path.
- contentSource StringSync At 
- Content source last sync at.
- contentSource List<String>Sync Messages 
- Content source last sync messages.
- contentSource StringSync Status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- contentSource StringType 
- Content source type.
- createdAt String
- Date when the entity was created. The date is in ISO 6801 and UTC.
- createdBy String
- The user the entity was created by.
- description String
- A human-friendly description.
- id String
- name String
- orgId String
- The id of the organization this entity belongs to.
- projectId String
- projectName String
- The name of the project the entity belongs to.
- requestScope BooleanOrg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- selfLink String
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- status String
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- totalReleased DoubleVersions 
- Total number of released versions.
- totalVersions Double
- Total number of versions.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- updatedBy String
- The user the entity was last updated by.
- valid Boolean
- Flag to indicate if the current content of the cloud template is valid.
- validationMessages List<GetBlueprint Validation Message> 
- List of validations messages.
- content string
- Blueprint YAML content.
- contentSource stringId 
- The id of the content source.
- contentSource stringPath 
- Content source path.
- contentSource stringSync At 
- Content source last sync at.
- contentSource string[]Sync Messages 
- Content source last sync messages.
- contentSource stringSync Status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- contentSource stringType 
- Content source type.
- createdAt string
- Date when the entity was created. The date is in ISO 6801 and UTC.
- createdBy string
- The user the entity was created by.
- description string
- A human-friendly description.
- id string
- name string
- orgId string
- The id of the organization this entity belongs to.
- projectId string
- projectName string
- The name of the project the entity belongs to.
- requestScope booleanOrg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- selfLink string
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- status string
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- totalReleased numberVersions 
- Total number of released versions.
- totalVersions number
- Total number of versions.
- updatedAt string
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- updatedBy string
- The user the entity was last updated by.
- valid boolean
- Flag to indicate if the current content of the cloud template is valid.
- validationMessages GetBlueprint Validation Message[] 
- List of validations messages.
- content str
- Blueprint YAML content.
- content_source_ strid 
- The id of the content source.
- content_source_ strpath 
- Content source path.
- content_source_ strsync_ at 
- Content source last sync at.
- content_source_ Sequence[str]sync_ messages 
- Content source last sync messages.
- content_source_ strsync_ status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- content_source_ strtype 
- Content source type.
- created_at str
- Date when the entity was created. The date is in ISO 6801 and UTC.
- created_by str
- The user the entity was created by.
- description str
- A human-friendly description.
- id str
- name str
- org_id str
- The id of the organization this entity belongs to.
- project_id str
- project_name str
- The name of the project the entity belongs to.
- request_scope_ boolorg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- self_link str
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- status str
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- total_released_ floatversions 
- Total number of released versions.
- total_versions float
- Total number of versions.
- updated_at str
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- updated_by str
- The user the entity was last updated by.
- valid bool
- Flag to indicate if the current content of the cloud template is valid.
- validation_messages Sequence[GetBlueprint Validation Message] 
- List of validations messages.
- content String
- Blueprint YAML content.
- contentSource StringId 
- The id of the content source.
- contentSource StringPath 
- Content source path.
- contentSource StringSync At 
- Content source last sync at.
- contentSource List<String>Sync Messages 
- Content source last sync messages.
- contentSource StringSync Status 
- Content source last sync status. Supported values: SUCCESSFUL,FAILED.
- contentSource StringType 
- Content source type.
- createdAt String
- Date when the entity was created. The date is in ISO 6801 and UTC.
- createdBy String
- The user the entity was created by.
- description String
- A human-friendly description.
- id String
- name String
- orgId String
- The id of the organization this entity belongs to.
- projectId String
- projectName String
- The name of the project the entity belongs to.
- requestScope BooleanOrg 
- Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
- selfLink String
- Hypermedia as the Engine of Application State (HATEOAS) of the entity.
- status String
- Status of the cloud template. Supported values: DRAFT,VERSIONED,RELEASED.
- totalReleased NumberVersions 
- Total number of released versions.
- totalVersions Number
- Total number of versions.
- updatedAt String
- Date when the entity was last updated. The date is ISO 8601 and UTC.
- updatedBy String
- The user the entity was last updated by.
- valid Boolean
- Flag to indicate if the current content of the cloud template is valid.
- validationMessages List<Property Map>
- List of validations messages.
Supporting Types
GetBlueprintValidationMessage   
- Message string
- Validation message.
- Metadata Dictionary<string, string>
- Validation metadata.
- Path string
- Validation path.
- ResourceName string
- Name of the resource.
- Type string
- Message type. Supported values: INFO,WARNING,ERROR.
- Message string
- Validation message.
- Metadata map[string]string
- Validation metadata.
- Path string
- Validation path.
- ResourceName string
- Name of the resource.
- Type string
- Message type. Supported values: INFO,WARNING,ERROR.
- message String
- Validation message.
- metadata Map<String,String>
- Validation metadata.
- path String
- Validation path.
- resourceName String
- Name of the resource.
- type String
- Message type. Supported values: INFO,WARNING,ERROR.
- message string
- Validation message.
- metadata {[key: string]: string}
- Validation metadata.
- path string
- Validation path.
- resourceName string
- Name of the resource.
- type string
- Message type. Supported values: INFO,WARNING,ERROR.
- message str
- Validation message.
- metadata Mapping[str, str]
- Validation metadata.
- path str
- Validation path.
- resource_name str
- Name of the resource.
- type str
- Message type. Supported values: INFO,WARNING,ERROR.
- message String
- Validation message.
- metadata Map<String>
- Validation metadata.
- path String
- Validation path.
- resourceName String
- Name of the resource.
- type String
- Message type. Supported values: INFO,WARNING,ERROR.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the vraTerraform Provider.
