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

vra.getBlueprintVersion

Explore with Pulumi AI

vra logo
vra 0.12.0 published on Monday, Apr 14, 2025 by vmware

    This data source provides information about a cloud template (blueprint) version in vRA.

    Example Usage

    S

    import * as pulumi from "@pulumi/pulumi";
    import * as vra from "@pulumi/vra";
    
    const _this = vra.getBlueprintVersion({
        blueprintId: _var.blueprint_id,
        id: _var.blueprint_version_id,
    });
    
    import pulumi
    import pulumi_vra as vra
    
    this = vra.get_blueprint_version(blueprint_id=var["blueprint_id"],
        id=var["blueprint_version_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.LookupBlueprintVersion(ctx, &vra.LookupBlueprintVersionArgs{
    			BlueprintId: _var.Blueprint_id,
    			Id:          _var.Blueprint_version_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.GetBlueprintVersion.Invoke(new()
        {
            BlueprintId = @var.Blueprint_id,
            Id = @var.Blueprint_version_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.GetBlueprintVersionArgs;
    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.getBlueprintVersion(GetBlueprintVersionArgs.builder()
                .blueprintId(var_.blueprint_id())
                .id(var_.blueprint_version_id())
                .build());
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: vra:getBlueprintVersion
          arguments:
            blueprintId: ${var.blueprint_id}
            id: ${var.blueprint_version_id}
    

    Using getBlueprintVersion

    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 getBlueprintVersion(args: GetBlueprintVersionArgs, opts?: InvokeOptions): Promise<GetBlueprintVersionResult>
    function getBlueprintVersionOutput(args: GetBlueprintVersionOutputArgs, opts?: InvokeOptions): Output<GetBlueprintVersionResult>
    def get_blueprint_version(blueprint_id: Optional[str] = None,
                              id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetBlueprintVersionResult
    def get_blueprint_version_output(blueprint_id: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetBlueprintVersionResult]
    func LookupBlueprintVersion(ctx *Context, args *LookupBlueprintVersionArgs, opts ...InvokeOption) (*LookupBlueprintVersionResult, error)
    func LookupBlueprintVersionOutput(ctx *Context, args *LookupBlueprintVersionOutputArgs, opts ...InvokeOption) LookupBlueprintVersionResultOutput

    > Note: This function is named LookupBlueprintVersion in the Go SDK.

    public static class GetBlueprintVersion 
    {
        public static Task<GetBlueprintVersionResult> InvokeAsync(GetBlueprintVersionArgs args, InvokeOptions? opts = null)
        public static Output<GetBlueprintVersionResult> Invoke(GetBlueprintVersionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetBlueprintVersionResult> getBlueprintVersion(GetBlueprintVersionArgs args, InvokeOptions options)
    public static Output<GetBlueprintVersionResult> getBlueprintVersion(GetBlueprintVersionArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vra:index/getBlueprintVersion:getBlueprintVersion
      arguments:
        # arguments dictionary

    The following arguments are supported:

    BlueprintId string
    Name of the cloud template. One of id or name must be provided.
    Id string
    The id of the cloud template version.
    BlueprintId string
    Name of the cloud template. One of id or name must be provided.
    Id string
    The id of the cloud template version.
    blueprintId String
    Name of the cloud template. One of id or name must be provided.
    id String
    The id of the cloud template version.
    blueprintId string
    Name of the cloud template. One of id or name must be provided.
    id string
    The id of the cloud template version.
    blueprint_id str
    Name of the cloud template. One of id or name must be provided.
    id str
    The id of the cloud template version.
    blueprintId String
    Name of the cloud template. One of id or name must be provided.
    id String
    The id of the cloud template version.

    getBlueprintVersion Result

    The following output properties are available:

    BlueprintDescription string
    Description of the cloud template.
    BlueprintId string
    Content string
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    Id string
    Name string
    Name of the cloud template version.
    OrgId string
    The id of the organization this entity belongs to.
    ProjectId string
    The id of the project this entity belongs to.
    ProjectName string
    The name of the project the entity belongs to.
    Status string
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 string
    Flag to indicate if the current content of the cloud template is valid.
    Version string
    Cloud template version.
    VersionChangeLog string
    Cloud template version change log.
    BlueprintDescription string
    Description of the cloud template.
    BlueprintId string
    Content string
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    Id string
    Name string
    Name of the cloud template version.
    OrgId string
    The id of the organization this entity belongs to.
    ProjectId string
    The id of the project this entity belongs to.
    ProjectName string
    The name of the project the entity belongs to.
    Status string
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 string
    Flag to indicate if the current content of the cloud template is valid.
    Version string
    Cloud template version.
    VersionChangeLog string
    Cloud template version change log.
    blueprintDescription String
    Description of the cloud template.
    blueprintId String
    content String
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    id String
    name String
    Name of the cloud template version.
    orgId String
    The id of the organization this entity belongs to.
    projectId String
    The id of the project this entity belongs to.
    projectName String
    The name of the project the entity belongs to.
    status String
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 String
    Flag to indicate if the current content of the cloud template is valid.
    version String
    Cloud template version.
    versionChangeLog String
    Cloud template version change log.
    blueprintDescription string
    Description of the cloud template.
    blueprintId string
    content string
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    id string
    name string
    Name of the cloud template version.
    orgId string
    The id of the organization this entity belongs to.
    projectId string
    The id of the project this entity belongs to.
    projectName string
    The name of the project the entity belongs to.
    status string
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 string
    Flag to indicate if the current content of the cloud template is valid.
    version string
    Cloud template version.
    versionChangeLog string
    Cloud template version change log.
    blueprint_description str
    Description of the cloud template.
    blueprint_id str
    content str
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    id str
    name str
    Name of the cloud template version.
    org_id str
    The id of the organization this entity belongs to.
    project_id str
    The id of the project this entity belongs to.
    project_name str
    The name of the project the entity belongs to.
    status str
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 str
    Flag to indicate if the current content of the cloud template is valid.
    version str
    Cloud template version.
    version_change_log str
    Cloud template version change log.
    blueprintDescription String
    Description of the cloud template.
    blueprintId String
    content String
    Blueprint YAML content.
    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
    (Optional) Cloud template version description.
    id String
    name String
    Name of the cloud template version.
    orgId String
    The id of the organization this entity belongs to.
    projectId String
    The id of the project this entity belongs to.
    projectName String
    The name of the project the entity belongs to.
    status String
    Status of the cloud template. Supported values: DRAFT, VERSIONED, RELEASED.
    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 String
    Flag to indicate if the current content of the cloud template is valid.
    version String
    Cloud template version.
    versionChangeLog String
    Cloud template version change log.

    Package Details

    Repository
    vra vmware/terraform-provider-vra
    License
    Notes
    This Pulumi package is based on the vra Terraform Provider.
    vra logo
    vra 0.12.0 published on Monday, Apr 14, 2025 by vmware