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

vra.getCatalogSourceBlueprint

Explore with Pulumi AI

This data source provides information about a catalog source of type cloud template (blueprint) in vRA.

Example Usage

S

This is an example of how to get a vRA cloud template catalog source by its name.

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

const _this = vra.getCatalogSourceBlueprint({
    name: _var.catalog_source_name,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_catalog_source_blueprint(name=var["catalog_source_name"])
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.LookupCatalogSourceBlueprint(ctx, &vra.LookupCatalogSourceBlueprintArgs{
			Name: pulumi.StringRef(_var.Catalog_source_name),
		}, nil)
		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 = Vra.GetCatalogSourceBlueprint.Invoke(new()
    {
        Name = @var.Catalog_source_name,
    });

});
Copy
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.GetCatalogSourceBlueprintArgs;
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.getCatalogSourceBlueprint(GetCatalogSourceBlueprintArgs.builder()
            .name(var_.catalog_source_name())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getCatalogSourceBlueprint
      arguments:
        name: ${var.catalog_source_name}
Copy

This is an example of how to get a vRA cloud template catalog source by its id.

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

const _this = vra.getCatalogSourceBlueprint({
    id: _var.catalog_source_id,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_catalog_source_blueprint(id=var["catalog_source_id"])
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.LookupCatalogSourceBlueprint(ctx, &vra.LookupCatalogSourceBlueprintArgs{
			Id: pulumi.StringRef(_var.Catalog_source_id),
		}, nil)
		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 = Vra.GetCatalogSourceBlueprint.Invoke(new()
    {
        Id = @var.Catalog_source_id,
    });

});
Copy
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.GetCatalogSourceBlueprintArgs;
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.getCatalogSourceBlueprint(GetCatalogSourceBlueprintArgs.builder()
            .id(var_.catalog_source_id())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getCatalogSourceBlueprint
      arguments:
        id: ${var.catalog_source_id}
Copy

This is an example of how to get a vRA cloud template catalog source by the project id it is associated with.

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

const _this = vra.getCatalogSourceBlueprint({
    projectId: _var.project_id,
});
Copy
import pulumi
import pulumi_vra as vra

this = vra.get_catalog_source_blueprint(project_id=var["project_id"])
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.LookupCatalogSourceBlueprint(ctx, &vra.LookupCatalogSourceBlueprintArgs{
			ProjectId: pulumi.StringRef(_var.Project_id),
		}, nil)
		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 = Vra.GetCatalogSourceBlueprint.Invoke(new()
    {
        ProjectId = @var.Project_id,
    });

});
Copy
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.GetCatalogSourceBlueprintArgs;
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.getCatalogSourceBlueprint(GetCatalogSourceBlueprintArgs.builder()
            .projectId(var_.project_id())
            .build());

    }
}
Copy
variables:
  this:
    fn::invoke:
      function: vra:getCatalogSourceBlueprint
      arguments:
        projectId: ${var.project_id}
Copy

Using getCatalogSourceBlueprint

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 getCatalogSourceBlueprint(args: GetCatalogSourceBlueprintArgs, opts?: InvokeOptions): Promise<GetCatalogSourceBlueprintResult>
function getCatalogSourceBlueprintOutput(args: GetCatalogSourceBlueprintOutputArgs, opts?: InvokeOptions): Output<GetCatalogSourceBlueprintResult>
Copy
def get_catalog_source_blueprint(config: Optional[Mapping[str, str]] = None,
                                 description: Optional[str] = None,
                                 id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 project_id: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCatalogSourceBlueprintResult
def get_catalog_source_blueprint_output(config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                                 description: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 name: Optional[pulumi.Input[str]] = None,
                                 project_id: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCatalogSourceBlueprintResult]
Copy
func LookupCatalogSourceBlueprint(ctx *Context, args *LookupCatalogSourceBlueprintArgs, opts ...InvokeOption) (*LookupCatalogSourceBlueprintResult, error)
func LookupCatalogSourceBlueprintOutput(ctx *Context, args *LookupCatalogSourceBlueprintOutputArgs, opts ...InvokeOption) LookupCatalogSourceBlueprintResultOutput
Copy

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

public static class GetCatalogSourceBlueprint 
{
    public static Task<GetCatalogSourceBlueprintResult> InvokeAsync(GetCatalogSourceBlueprintArgs args, InvokeOptions? opts = null)
    public static Output<GetCatalogSourceBlueprintResult> Invoke(GetCatalogSourceBlueprintInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCatalogSourceBlueprintResult> getCatalogSourceBlueprint(GetCatalogSourceBlueprintArgs args, InvokeOptions options)
public static Output<GetCatalogSourceBlueprintResult> getCatalogSourceBlueprint(GetCatalogSourceBlueprintArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vra:index/getCatalogSourceBlueprint:getCatalogSourceBlueprint
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Config Dictionary<string, string>
Custom configuration of the catalog source as a map of key values.
Description string
Catalog source description.
Id string
The id of catalog source. One of id, name or project_id must be provided.
Name string
Name of the catalog source. One of id, name or project_id must be provided.
ProjectId string
The id of the project. One of id, name or project_id must be provided.
Config map[string]string
Custom configuration of the catalog source as a map of key values.
Description string
Catalog source description.
Id string
The id of catalog source. One of id, name or project_id must be provided.
Name string
Name of the catalog source. One of id, name or project_id must be provided.
ProjectId string
The id of the project. One of id, name or project_id must be provided.
config Map<String,String>
Custom configuration of the catalog source as a map of key values.
description String
Catalog source description.
id String
The id of catalog source. One of id, name or project_id must be provided.
name String
Name of the catalog source. One of id, name or project_id must be provided.
projectId String
The id of the project. One of id, name or project_id must be provided.
config {[key: string]: string}
Custom configuration of the catalog source as a map of key values.
description string
Catalog source description.
id string
The id of catalog source. One of id, name or project_id must be provided.
name string
Name of the catalog source. One of id, name or project_id must be provided.
projectId string
The id of the project. One of id, name or project_id must be provided.
config Mapping[str, str]
Custom configuration of the catalog source as a map of key values.
description str
Catalog source description.
id str
The id of catalog source. One of id, name or project_id must be provided.
name str
Name of the catalog source. One of id, name or project_id must be provided.
project_id str
The id of the project. One of id, name or project_id must be provided.
config Map<String>
Custom configuration of the catalog source as a map of key values.
description String
Catalog source description.
id String
The id of catalog source. One of id, name or project_id must be provided.
name String
Name of the catalog source. One of id, name or project_id must be provided.
projectId String
The id of the project. One of id, name or project_id must be provided.

getCatalogSourceBlueprint Result

The following output properties are available:

Config Dictionary<string, string>
Custom configuration of the catalog source as a map of key values.
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.
Global bool
A flag indicating that all the items can be requested across all projects.
ItemsFound string
Number of items found in the catalog source.
ItemsImported string
Number of items imported from the catalog source.
LastImportCompletedAt string
Time at which the last import was completed at.
LastImportErrors List<string>
A list of errors seen at last time the catalog source is imported.
LastImportStartedAt string
Time at which the last import was started at.
LastUpdatedBy string
The user that last updated the catalog source.
Name string
ProjectId string
TypeId string
Type of catalog source. Example: blueprint, CFT, etc.
Description string
Catalog source description.
Id string
Config map[string]string
Custom configuration of the catalog source as a map of key values.
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.
Global bool
A flag indicating that all the items can be requested across all projects.
ItemsFound string
Number of items found in the catalog source.
ItemsImported string
Number of items imported from the catalog source.
LastImportCompletedAt string
Time at which the last import was completed at.
LastImportErrors []string
A list of errors seen at last time the catalog source is imported.
LastImportStartedAt string
Time at which the last import was started at.
LastUpdatedBy string
The user that last updated the catalog source.
Name string
ProjectId string
TypeId string
Type of catalog source. Example: blueprint, CFT, etc.
Description string
Catalog source description.
Id string
config Map<String,String>
Custom configuration of the catalog source as a map of key values.
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.
global Boolean
A flag indicating that all the items can be requested across all projects.
itemsFound String
Number of items found in the catalog source.
itemsImported String
Number of items imported from the catalog source.
lastImportCompletedAt String
Time at which the last import was completed at.
lastImportErrors List<String>
A list of errors seen at last time the catalog source is imported.
lastImportStartedAt String
Time at which the last import was started at.
lastUpdatedBy String
The user that last updated the catalog source.
name String
projectId String
typeId String
Type of catalog source. Example: blueprint, CFT, etc.
description String
Catalog source description.
id String
config {[key: string]: string}
Custom configuration of the catalog source as a map of key values.
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.
global boolean
A flag indicating that all the items can be requested across all projects.
itemsFound string
Number of items found in the catalog source.
itemsImported string
Number of items imported from the catalog source.
lastImportCompletedAt string
Time at which the last import was completed at.
lastImportErrors string[]
A list of errors seen at last time the catalog source is imported.
lastImportStartedAt string
Time at which the last import was started at.
lastUpdatedBy string
The user that last updated the catalog source.
name string
projectId string
typeId string
Type of catalog source. Example: blueprint, CFT, etc.
description string
Catalog source description.
id string
config Mapping[str, str]
Custom configuration of the catalog source as a map of key values.
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.
global_ bool
A flag indicating that all the items can be requested across all projects.
items_found str
Number of items found in the catalog source.
items_imported str
Number of items imported from the catalog source.
last_import_completed_at str
Time at which the last import was completed at.
last_import_errors Sequence[str]
A list of errors seen at last time the catalog source is imported.
last_import_started_at str
Time at which the last import was started at.
last_updated_by str
The user that last updated the catalog source.
name str
project_id str
type_id str
Type of catalog source. Example: blueprint, CFT, etc.
description str
Catalog source description.
id str
config Map<String>
Custom configuration of the catalog source as a map of key values.
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.
global Boolean
A flag indicating that all the items can be requested across all projects.
itemsFound String
Number of items found in the catalog source.
itemsImported String
Number of items imported from the catalog source.
lastImportCompletedAt String
Time at which the last import was completed at.
lastImportErrors List<String>
A list of errors seen at last time the catalog source is imported.
lastImportStartedAt String
Time at which the last import was started at.
lastUpdatedBy String
The user that last updated the catalog source.
name String
projectId String
typeId String
Type of catalog source. Example: blueprint, CFT, etc.
description String
Catalog source description.
id String

Package Details

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