vra 0.12.0 published on Monday, Apr 14, 2025 by vmware
vra.getBlueprint
Explore with Pulumi AI
This data source provides information about a cloud template (blueprint) in vRA.
Example Usage
S
This is an example of how to get a vRA 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 vRA 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.
 - Content
Source stringId  - The id of the content source.
 - Content
Source stringPath  - Content source path.
 - Content
Source stringSync At  - Content source last sync at.
 - Content
Source List<string>Sync Messages  - Content source last sync messages.
 - Content
Source stringSync Status  - Content source last sync status. Supported values: 
SUCCESSFUL,FAILED. - Content
Source stringType  - Content source type.
 - Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Created
By string - The user the entity was created by.
 - Description string
 - A human-friendly description.
 - Id string
 - Name string
 - Org
Id string - The id of the organization this entity belongs to.
 - Project
Id string - Project
Name string - 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 string - HATEOAS of the entity.
 - Status string
 - Status of the cloud template. Supported values: 
DRAFT,VERSIONED,RELEASED. - Total
Released doubleVersions  - Total number of released versions.
 - Total
Versions double - Total number of versions.
 - Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Updated
By string - 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 List<GetBlueprint Validation Message>  - List of validations messages.
- message - Validation message.
 
 
- Content string
 - Blueprint YAML content.
 - Content
Source stringId  - The id of the content source.
 - Content
Source stringPath  - Content source path.
 - Content
Source stringSync At  - Content source last sync at.
 - Content
Source []stringSync Messages  - Content source last sync messages.
 - Content
Source stringSync Status  - Content source last sync status. Supported values: 
SUCCESSFUL,FAILED. - Content
Source stringType  - Content source type.
 - Created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - Created
By string - The user the entity was created by.
 - Description string
 - A human-friendly description.
 - Id string
 - Name string
 - Org
Id string - The id of the organization this entity belongs to.
 - Project
Id string - Project
Name string - 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 string - HATEOAS of the entity.
 - Status string
 - Status of the cloud template. Supported values: 
DRAFT,VERSIONED,RELEASED. - Total
Released float64Versions  - Total number of released versions.
 - Total
Versions float64 - Total number of versions.
 - Updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - Updated
By string - 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 []GetBlueprint Validation Message  - List of validations messages.
- message - Validation message.
 
 
- content String
 - Blueprint YAML content.
 - content
Source StringId  - The id of the content source.
 - content
Source StringPath  - Content source path.
 - content
Source StringSync At  - Content source last sync at.
 - content
Source List<String>Sync Messages  - Content source last sync messages.
 - content
Source StringSync Status  - Content source last sync status. Supported values: 
SUCCESSFUL,FAILED. - content
Source StringType  - Content source type.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - created
By String - The user the entity was created by.
 - description String
 - A human-friendly description.
 - id String
 - name String
 - org
Id String - The id of the organization this entity belongs to.
 - project
Id String - project
Name String - The name of the project the entity belongs to.
 - request
Scope BooleanOrg  - Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
 - self
Link String - HATEOAS of the entity.
 - status String
 - Status of the cloud template. Supported values: 
DRAFT,VERSIONED,RELEASED. - total
Released DoubleVersions  - Total number of released versions.
 - total
Versions Double - Total number of versions.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - updated
By String - The user the entity was last updated by.
 - valid Boolean
 - Flag to indicate if the current content of the cloud template is valid.
 - validation
Messages List<GetBlueprint Validation Message>  - List of validations messages.
- message - Validation message.
 
 
- content string
 - Blueprint YAML content.
 - content
Source stringId  - The id of the content source.
 - content
Source stringPath  - Content source path.
 - content
Source stringSync At  - Content source last sync at.
 - content
Source string[]Sync Messages  - Content source last sync messages.
 - content
Source stringSync Status  - Content source last sync status. Supported values: 
SUCCESSFUL,FAILED. - content
Source stringType  - Content source type.
 - created
At string - Date when the entity was created. The date is in ISO 6801 and UTC.
 - created
By string - The user the entity was created by.
 - description string
 - A human-friendly description.
 - id string
 - name string
 - org
Id string - The id of the organization this entity belongs to.
 - project
Id string - project
Name string - The name of the project the entity belongs to.
 - request
Scope booleanOrg  - Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
 - self
Link string - HATEOAS of the entity.
 - status string
 - Status of the cloud template. Supported values: 
DRAFT,VERSIONED,RELEASED. - total
Released numberVersions  - Total number of released versions.
 - total
Versions number - Total number of versions.
 - updated
At string - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - updated
By string - The user the entity was last updated by.
 - valid boolean
 - Flag to indicate if the current content of the cloud template is valid.
 - validation
Messages GetBlueprint Validation Message[]  - List of validations messages.
- message - Validation message.
 
 
- 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 - 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.
- message - Validation message.
 
 
- content String
 - Blueprint YAML content.
 - content
Source StringId  - The id of the content source.
 - content
Source StringPath  - Content source path.
 - content
Source StringSync At  - Content source last sync at.
 - content
Source List<String>Sync Messages  - Content source last sync messages.
 - content
Source StringSync Status  - Content source last sync status. Supported values: 
SUCCESSFUL,FAILED. - content
Source StringType  - Content source type.
 - created
At String - Date when the entity was created. The date is in ISO 6801 and UTC.
 - created
By String - The user the entity was created by.
 - description String
 - A human-friendly description.
 - id String
 - name String
 - org
Id String - The id of the organization this entity belongs to.
 - project
Id String - project
Name String - The name of the project the entity belongs to.
 - request
Scope BooleanOrg  - Flag to indicate whether this blueprint can be requested from any project in the organization this entity belongs to.
 - self
Link String - HATEOAS of the entity.
 - status String
 - Status of the cloud template. Supported values: 
DRAFT,VERSIONED,RELEASED. - total
Released NumberVersions  - Total number of released versions.
 - total
Versions Number - Total number of versions.
 - updated
At String - Date when the entity was last updated. The date is ISO 8601 and UTC.
 - updated
By String - The user the entity was last updated by.
 - valid Boolean
 - Flag to indicate if the current content of the cloud template is valid.
 - validation
Messages List<Property Map> - List of validations messages.
- message - Validation message.
 
 
Supporting Types
GetBlueprintValidationMessage   
- Message string
 - Metadata Dictionary<string, string>
 - Path string
 - Resource
Name string - Type string
 
- Message string
 - Metadata map[string]string
 - Path string
 - Resource
Name string - Type string
 
- message String
 - metadata Map<String,String>
 - path String
 - resource
Name String - type String
 
- message string
 - metadata {[key: string]: string}
 - path string
 - resource
Name string - type string
 
- message str
 - metadata Mapping[str, str]
 - path str
 - resource_
name str - type str
 
- message String
 - metadata Map<String>
 - path String
 - resource
Name String - type String
 
Package Details
- Repository
 - vra vmware/terraform-provider-vra
 - License
 - Notes
 - This Pulumi package is based on the 
vraTerraform Provider.