vra.CatalogSourceBlueprint
Explore with Pulumi AI
Creates a catalog source resource of type cloud template (blueprint).
Example Usage
S
The following example shows how to create a catalog source resource.
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = new vra.CatalogSourceBlueprint("this", {projectId: _var.vra_project_id});
import pulumi
import pulumi_vra as vra
this = vra.CatalogSourceBlueprint("this", project_id=var["vra_project_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.NewCatalogSourceBlueprint(ctx, "this", &vra.CatalogSourceBlueprintArgs{
ProjectId: pulumi.Any(_var.Vra_project_id),
})
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 = new Vra.CatalogSourceBlueprint("this", new()
{
ProjectId = @var.Vra_project_id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.CatalogSourceBlueprint;
import com.pulumi.vra.CatalogSourceBlueprintArgs;
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 CatalogSourceBlueprint("this", CatalogSourceBlueprintArgs.builder()
.projectId(var_.vra_project_id())
.build());
}
}
resources:
this:
type: vra:CatalogSourceBlueprint
properties:
projectId: ${var.vra_project_id}
Create CatalogSourceBlueprint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CatalogSourceBlueprint(name: string, args: CatalogSourceBlueprintArgs, opts?: CustomResourceOptions);
@overload
def CatalogSourceBlueprint(resource_name: str,
args: CatalogSourceBlueprintArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CatalogSourceBlueprint(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
catalog_source_blueprint_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewCatalogSourceBlueprint(ctx *Context, name string, args CatalogSourceBlueprintArgs, opts ...ResourceOption) (*CatalogSourceBlueprint, error)
public CatalogSourceBlueprint(string name, CatalogSourceBlueprintArgs args, CustomResourceOptions? opts = null)
public CatalogSourceBlueprint(String name, CatalogSourceBlueprintArgs args)
public CatalogSourceBlueprint(String name, CatalogSourceBlueprintArgs args, CustomResourceOptions options)
type: vra:CatalogSourceBlueprint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CatalogSourceBlueprintArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CatalogSourceBlueprintArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CatalogSourceBlueprintArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CatalogSourceBlueprintArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CatalogSourceBlueprintArgs
- 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 catalogSourceBlueprintResource = new Vra.CatalogSourceBlueprint("catalogSourceBlueprintResource", new()
{
ProjectId = "string",
CatalogSourceBlueprintId = "string",
Description = "string",
Name = "string",
});
example, err := vra.NewCatalogSourceBlueprint(ctx, "catalogSourceBlueprintResource", &vra.CatalogSourceBlueprintArgs{
ProjectId: pulumi.String("string"),
CatalogSourceBlueprintId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var catalogSourceBlueprintResource = new CatalogSourceBlueprint("catalogSourceBlueprintResource", CatalogSourceBlueprintArgs.builder()
.projectId("string")
.catalogSourceBlueprintId("string")
.description("string")
.name("string")
.build());
catalog_source_blueprint_resource = vra.CatalogSourceBlueprint("catalogSourceBlueprintResource",
project_id="string",
catalog_source_blueprint_id="string",
description="string",
name="string")
const catalogSourceBlueprintResource = new vra.CatalogSourceBlueprint("catalogSourceBlueprintResource", {
projectId: "string",
catalogSourceBlueprintId: "string",
description: "string",
name: "string",
});
type: vra:CatalogSourceBlueprint
properties:
catalogSourceBlueprintId: string
description: string
name: string
projectId: string
CatalogSourceBlueprint 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 CatalogSourceBlueprint resource accepts the following input properties:
- Project
Id string - The id of the project the blueprint content source instance belongs to.
- Catalog
Source stringBlueprint Id - Description string
- A human-friendly description for the blueprint content source instance.
- Name string
- The name of the blueprint content source instance.
- Project
Id string - The id of the project the blueprint content source instance belongs to.
- Catalog
Source stringBlueprint Id - Description string
- A human-friendly description for the blueprint content source instance.
- Name string
- The name of the blueprint content source instance.
- project
Id String - The id of the project the blueprint content source instance belongs to.
- catalog
Source StringBlueprint Id - description String
- A human-friendly description for the blueprint content source instance.
- name String
- The name of the blueprint content source instance.
- project
Id string - The id of the project the blueprint content source instance belongs to.
- catalog
Source stringBlueprint Id - description string
- A human-friendly description for the blueprint content source instance.
- name string
- The name of the blueprint content source instance.
- project_
id str - The id of the project the blueprint content source instance belongs to.
- catalog_
source_ strblueprint_ id - description str
- A human-friendly description for the blueprint content source instance.
- name str
- The name of the blueprint content source instance.
- project
Id String - The id of the project the blueprint content source instance belongs to.
- catalog
Source StringBlueprint Id - description String
- A human-friendly description for the blueprint content source instance.
- name String
- The name of the blueprint content source instance.
Outputs
All input properties are implicitly available as output properties. Additionally, the CatalogSourceBlueprint resource produces the following output properties:
- Config Dictionary<string, string>
- The content source custom configuration.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Global bool
- Global flag indicating that all the items can be requested across all projects.
- Icon
Id string - Default Icon Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
Found double - Number of items found.
- Items
Imported double - Number of items imported.
- Last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- Last
Import List<string>Errors - A list of errors seen at last time the content source is imported.
- Last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- Config map[string]string
- The content source custom configuration.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Global bool
- Global flag indicating that all the items can be requested across all projects.
- Icon
Id string - Default Icon Identifier.
- Id string
- The provider-assigned unique ID for this managed resource.
- Items
Found float64 - Number of items found.
- Items
Imported float64 - Number of items imported.
- Last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- Last
Import []stringErrors - A list of errors seen at last time the content source is imported.
- Last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- config Map<String,String>
- The content source custom configuration.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- global Boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id String - Default Icon Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- items
Found Double - Number of items found.
- items
Imported Double - Number of items imported.
- last
Import StringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import List<String>Errors - A list of errors seen at last time the content source is imported.
- last
Import StringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- type
Id String - The type of this content source. Example:
blueprint
,CFT
, etc.
- config {[key: string]: string}
- The content source custom configuration.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- global boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id string - Default Icon Identifier.
- id string
- The provider-assigned unique ID for this managed resource.
- items
Found number - Number of items found.
- items
Imported number - Number of items imported.
- last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import string[]Errors - A list of errors seen at last time the content source is imported.
- last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- config Mapping[str, str]
- The content source custom configuration.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- global_ bool
- Global flag indicating that all the items can be requested across all projects.
- icon_
id str - Default Icon Identifier.
- id str
- The provider-assigned unique ID for this managed resource.
- items_
found float - Number of items found.
- items_
imported float - Number of items imported.
- last_
import_ strcompleted_ at - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last_
import_ Sequence[str]errors - A list of errors seen at last time the content source is imported.
- last_
import_ strstarted_ at - Date when the last import was started. The date is in ISO 8601 and UTC.
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - Date when the entity was last updated. The date is ISO 8601 and UTC.
- type_
id str - The type of this content source. Example:
blueprint
,CFT
, etc.
- config Map<String>
- The content source custom configuration.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- global Boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id String - Default Icon Identifier.
- id String
- The provider-assigned unique ID for this managed resource.
- items
Found Number - Number of items found.
- items
Imported Number - Number of items imported.
- last
Import StringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import List<String>Errors - A list of errors seen at last time the content source is imported.
- last
Import StringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- type
Id String - The type of this content source. Example:
blueprint
,CFT
, etc.
Look up Existing CatalogSourceBlueprint Resource
Get an existing CatalogSourceBlueprint 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?: CatalogSourceBlueprintState, opts?: CustomResourceOptions): CatalogSourceBlueprint
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
catalog_source_blueprint_id: Optional[str] = None,
config: Optional[Mapping[str, str]] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
description: Optional[str] = None,
global_: Optional[bool] = None,
icon_id: Optional[str] = None,
items_found: Optional[float] = None,
items_imported: Optional[float] = None,
last_import_completed_at: Optional[str] = None,
last_import_errors: Optional[Sequence[str]] = None,
last_import_started_at: Optional[str] = None,
last_updated_at: Optional[str] = None,
last_updated_by: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
type_id: Optional[str] = None) -> CatalogSourceBlueprint
func GetCatalogSourceBlueprint(ctx *Context, name string, id IDInput, state *CatalogSourceBlueprintState, opts ...ResourceOption) (*CatalogSourceBlueprint, error)
public static CatalogSourceBlueprint Get(string name, Input<string> id, CatalogSourceBlueprintState? state, CustomResourceOptions? opts = null)
public static CatalogSourceBlueprint get(String name, Output<String> id, CatalogSourceBlueprintState state, CustomResourceOptions options)
resources: _: type: vra:CatalogSourceBlueprint get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Catalog
Source stringBlueprint Id - Config Dictionary<string, string>
- The content source custom configuration.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Description string
- A human-friendly description for the blueprint content source instance.
- Global bool
- Global flag indicating that all the items can be requested across all projects.
- Icon
Id string - Default Icon Identifier.
- Items
Found double - Number of items found.
- Items
Imported double - Number of items imported.
- Last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- Last
Import List<string>Errors - A list of errors seen at last time the content source is imported.
- Last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Name string
- The name of the blueprint content source instance.
- Project
Id string - The id of the project the blueprint content source instance belongs to.
- Type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- Catalog
Source stringBlueprint Id - Config map[string]string
- The content source custom configuration.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Description string
- A human-friendly description for the blueprint content source instance.
- Global bool
- Global flag indicating that all the items can be requested across all projects.
- Icon
Id string - Default Icon Identifier.
- Items
Found float64 - Number of items found.
- Items
Imported float64 - Number of items imported.
- Last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- Last
Import []stringErrors - A list of errors seen at last time the content source is imported.
- Last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Name string
- The name of the blueprint content source instance.
- Project
Id string - The id of the project the blueprint content source instance belongs to.
- Type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- catalog
Source StringBlueprint Id - config Map<String,String>
- The content source custom configuration.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- description String
- A human-friendly description for the blueprint content source instance.
- global Boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id String - Default Icon Identifier.
- items
Found Double - Number of items found.
- items
Imported Double - Number of items imported.
- last
Import StringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import List<String>Errors - A list of errors seen at last time the content source is imported.
- last
Import StringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- name String
- The name of the blueprint content source instance.
- project
Id String - The id of the project the blueprint content source instance belongs to.
- type
Id String - The type of this content source. Example:
blueprint
,CFT
, etc.
- catalog
Source stringBlueprint Id - config {[key: string]: string}
- The content source custom configuration.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- description string
- A human-friendly description for the blueprint content source instance.
- global boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id string - Default Icon Identifier.
- items
Found number - Number of items found.
- items
Imported number - Number of items imported.
- last
Import stringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import string[]Errors - A list of errors seen at last time the content source is imported.
- last
Import stringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- name string
- The name of the blueprint content source instance.
- project
Id string - The id of the project the blueprint content source instance belongs to.
- type
Id string - The type of this content source. Example:
blueprint
,CFT
, etc.
- catalog_
source_ strblueprint_ id - config Mapping[str, str]
- The content source custom configuration.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- description str
- A human-friendly description for the blueprint content source instance.
- global_ bool
- Global flag indicating that all the items can be requested across all projects.
- icon_
id str - Default Icon Identifier.
- items_
found float - Number of items found.
- items_
imported float - Number of items imported.
- last_
import_ strcompleted_ at - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last_
import_ Sequence[str]errors - A list of errors seen at last time the content source is imported.
- last_
import_ strstarted_ at - Date when the last import was started. The date is in ISO 8601 and UTC.
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - Date when the entity was last updated. The date is ISO 8601 and UTC.
- name str
- The name of the blueprint content source instance.
- project_
id str - The id of the project the blueprint content source instance belongs to.
- type_
id str - The type of this content source. Example:
blueprint
,CFT
, etc.
- catalog
Source StringBlueprint Id - config Map<String>
- The content source custom configuration.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- description String
- A human-friendly description for the blueprint content source instance.
- global Boolean
- Global flag indicating that all the items can be requested across all projects.
- icon
Id String - Default Icon Identifier.
- items
Found Number - Number of items found.
- items
Imported Number - Number of items imported.
- last
Import StringCompleted At - Date when the last import was completed. The date is in ISO 8601 and UTC.
- last
Import List<String>Errors - A list of errors seen at last time the content source is imported.
- last
Import StringStarted At - Date when the last import was started. The date is in ISO 8601 and UTC.
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - Date when the entity was last updated. The date is ISO 8601 and UTC.
- name String
- The name of the blueprint content source instance.
- project
Id String - The id of the project the blueprint content source instance belongs to.
- type
Id String - The type of this content source. Example:
blueprint
,CFT
, etc.
Import
To import the cloud template catalog source, use the ID as in the following example:
$ pulumi import vra:index/catalogSourceBlueprint:CatalogSourceBlueprint this 05956583-6488-4e7d-84c9-92a7b7219a15`
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.