vra.ContentSource
Explore with Pulumi AI
This resource provides a way to create a content source vRealize Automation(vRA).
Example Usage
S
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = new vra.ContentSource("this", {
    projectId: _var.project_id,
    typeId: "com.gitlab",
    description: "Some content Source",
    syncEnabled: false,
    config: {
        path: "blueprint01",
        branch: "master",
        repository: "vracontent/vra8_content_source_test",
        contentType: "BLUEPRINT",
        projectName: _var.project_name,
        integrationId: _var.integration_id,
    },
});
import pulumi
import pulumi_vra as vra
this = vra.ContentSource("this",
    project_id=var["project_id"],
    type_id="com.gitlab",
    description="Some content Source",
    sync_enabled=False,
    config={
        "path": "blueprint01",
        "branch": "master",
        "repository": "vracontent/vra8_content_source_test",
        "content_type": "BLUEPRINT",
        "project_name": var["project_name"],
        "integration_id": var["integration_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.NewContentSource(ctx, "this", &vra.ContentSourceArgs{
			ProjectId:   pulumi.Any(_var.Project_id),
			TypeId:      pulumi.String("com.gitlab"),
			Description: pulumi.String("Some content Source"),
			SyncEnabled: pulumi.Bool(false),
			Config: &vra.ContentSourceConfigArgs{
				Path:          pulumi.String("blueprint01"),
				Branch:        pulumi.String("master"),
				Repository:    pulumi.String("vracontent/vra8_content_source_test"),
				ContentType:   pulumi.String("BLUEPRINT"),
				ProjectName:   pulumi.Any(_var.Project_name),
				IntegrationId: pulumi.Any(_var.Integration_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.ContentSource("this", new()
    {
        ProjectId = @var.Project_id,
        TypeId = "com.gitlab",
        Description = "Some content Source",
        SyncEnabled = false,
        Config = new Vra.Inputs.ContentSourceConfigArgs
        {
            Path = "blueprint01",
            Branch = "master",
            Repository = "vracontent/vra8_content_source_test",
            ContentType = "BLUEPRINT",
            ProjectName = @var.Project_name,
            IntegrationId = @var.Integration_id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.ContentSource;
import com.pulumi.vra.ContentSourceArgs;
import com.pulumi.vra.inputs.ContentSourceConfigArgs;
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 ContentSource("this", ContentSourceArgs.builder()
            .projectId(var_.project_id())
            .typeId("com.gitlab")
            .description("Some content Source")
            .syncEnabled("false")
            .config(ContentSourceConfigArgs.builder()
                .path("blueprint01")
                .branch("master")
                .repository("vracontent/vra8_content_source_test")
                .contentType("BLUEPRINT")
                .projectName(var_.project_name())
                .integrationId(var_.integration_id())
                .build())
            .build());
    }
}
resources:
  this:
    type: vra:ContentSource
    properties:
      projectId: ${var.project_id}
      # type_id needs to be one of com.gitlab, com.github or com.vmware.marketplace
      typeId: com.gitlab
      description: Some content Source
      # whether automatically sync content or not
      syncEnabled: 'false'
      config:
        path: blueprint01
        branch: master
        repository: vracontent/vra8_content_source_test
        contentType: BLUEPRINT
        projectName: ${var.project_name}
        integrationId: ${var.integration_id}
Create ContentSource Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContentSource(name: string, args: ContentSourceArgs, opts?: CustomResourceOptions);@overload
def ContentSource(resource_name: str,
                  args: ContentSourceArgs,
                  opts: Optional[ResourceOptions] = None)
@overload
def ContentSource(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  config: Optional[ContentSourceConfigArgs] = None,
                  project_id: Optional[str] = None,
                  sync_enabled: Optional[bool] = None,
                  type_id: Optional[str] = None,
                  content_source_id: Optional[str] = None,
                  description: Optional[str] = None,
                  name: Optional[str] = None)func NewContentSource(ctx *Context, name string, args ContentSourceArgs, opts ...ResourceOption) (*ContentSource, error)public ContentSource(string name, ContentSourceArgs args, CustomResourceOptions? opts = null)
public ContentSource(String name, ContentSourceArgs args)
public ContentSource(String name, ContentSourceArgs args, CustomResourceOptions options)
type: vra:ContentSource
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 ContentSourceArgs
- 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 ContentSourceArgs
- 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 ContentSourceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContentSourceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContentSourceArgs
- 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 contentSourceResource = new Vra.ContentSource("contentSourceResource", new()
{
    Config = new Vra.Inputs.ContentSourceConfigArgs
    {
        IntegrationId = "string",
        Path = "string",
        ProjectName = "string",
        Branch = "string",
        ContentType = "string",
        Repository = "string",
    },
    ProjectId = "string",
    SyncEnabled = false,
    TypeId = "string",
    ContentSourceId = "string",
    Description = "string",
    Name = "string",
});
example, err := vra.NewContentSource(ctx, "contentSourceResource", &vra.ContentSourceArgs{
	Config: &vra.ContentSourceConfigArgs{
		IntegrationId: pulumi.String("string"),
		Path:          pulumi.String("string"),
		ProjectName:   pulumi.String("string"),
		Branch:        pulumi.String("string"),
		ContentType:   pulumi.String("string"),
		Repository:    pulumi.String("string"),
	},
	ProjectId:       pulumi.String("string"),
	SyncEnabled:     pulumi.Bool(false),
	TypeId:          pulumi.String("string"),
	ContentSourceId: pulumi.String("string"),
	Description:     pulumi.String("string"),
	Name:            pulumi.String("string"),
})
var contentSourceResource = new ContentSource("contentSourceResource", ContentSourceArgs.builder()
    .config(ContentSourceConfigArgs.builder()
        .integrationId("string")
        .path("string")
        .projectName("string")
        .branch("string")
        .contentType("string")
        .repository("string")
        .build())
    .projectId("string")
    .syncEnabled(false)
    .typeId("string")
    .contentSourceId("string")
    .description("string")
    .name("string")
    .build());
content_source_resource = vra.ContentSource("contentSourceResource",
    config={
        "integration_id": "string",
        "path": "string",
        "project_name": "string",
        "branch": "string",
        "content_type": "string",
        "repository": "string",
    },
    project_id="string",
    sync_enabled=False,
    type_id="string",
    content_source_id="string",
    description="string",
    name="string")
const contentSourceResource = new vra.ContentSource("contentSourceResource", {
    config: {
        integrationId: "string",
        path: "string",
        projectName: "string",
        branch: "string",
        contentType: "string",
        repository: "string",
    },
    projectId: "string",
    syncEnabled: false,
    typeId: "string",
    contentSourceId: "string",
    description: "string",
    name: "string",
});
type: vra:ContentSource
properties:
    config:
        branch: string
        contentType: string
        integrationId: string
        path: string
        projectName: string
        repository: string
    contentSourceId: string
    description: string
    name: string
    projectId: string
    syncEnabled: false
    typeId: string
ContentSource 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 ContentSource resource accepts the following input properties:
- Config
ContentSource Config 
- Content source custom configuration.
- ProjectId string
- The id of the project this entity belongs to.
- SyncEnabled bool
- Flag indicating whether sync is enabled for this content source.
- TypeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- ContentSource stringId 
- The id of this cloud template.
- Description string
- A human-friendly description.
- Name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- Config
ContentSource Config Args 
- Content source custom configuration.
- ProjectId string
- The id of the project this entity belongs to.
- SyncEnabled bool
- Flag indicating whether sync is enabled for this content source.
- TypeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- ContentSource stringId 
- The id of this cloud template.
- Description string
- A human-friendly description.
- Name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- config
ContentSource Config 
- Content source custom configuration.
- projectId String
- The id of the project this entity belongs to.
- syncEnabled Boolean
- Flag indicating whether sync is enabled for this content source.
- typeId String
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- contentSource StringId 
- The id of this cloud template.
- description String
- A human-friendly description.
- name String
- A human-friendly name for content source used as an identifier in APIs that support this option.
- config
ContentSource Config 
- Content source custom configuration.
- projectId string
- The id of the project this entity belongs to.
- syncEnabled boolean
- Flag indicating whether sync is enabled for this content source.
- typeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- contentSource stringId 
- The id of this cloud template.
- description string
- A human-friendly description.
- name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- config
ContentSource Config Args 
- Content source custom configuration.
- project_id str
- The id of the project this entity belongs to.
- sync_enabled bool
- Flag indicating whether sync is enabled for this content source.
- type_id str
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- content_source_ strid 
- The id of this cloud template.
- description str
- A human-friendly description.
- name str
- A human-friendly name for content source used as an identifier in APIs that support this option.
- config Property Map
- Content source custom configuration.
- projectId String
- The id of the project this entity belongs to.
- syncEnabled Boolean
- Flag indicating whether sync is enabled for this content source.
- typeId String
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- contentSource StringId 
- The id of this cloud template.
- description String
- A human-friendly description.
- name String
- A human-friendly name for content source used as an identifier in APIs that support this option.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContentSource resource produces the following output properties:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- LastUpdated stringBy 
- The user the entity was last updated by.
- OrgId string
- The id of the organization this entity belongs to.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- LastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- LastUpdated stringBy 
- The user the entity was last updated by.
- OrgId string
- The id of the organization this entity belongs to.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated StringBy 
- The user the entity was last updated by.
- orgId String
- The id of the organization this entity belongs to.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- lastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated stringBy 
- The user the entity was last updated by.
- orgId string
- The id of the organization this entity belongs to.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- last_updated_ strat 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last_updated_ strby 
- The user the entity was last updated by.
- org_id str
- The id of the organization this entity belongs to.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- lastUpdated StringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated StringBy 
- The user the entity was last updated by.
- orgId String
- The id of the organization this entity belongs to.
Look up Existing ContentSource Resource
Get an existing ContentSource 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?: ContentSourceState, opts?: CustomResourceOptions): ContentSource@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        config: Optional[ContentSourceConfigArgs] = None,
        content_source_id: Optional[str] = None,
        created_at: Optional[str] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        last_updated_at: Optional[str] = None,
        last_updated_by: Optional[str] = None,
        name: Optional[str] = None,
        org_id: Optional[str] = None,
        project_id: Optional[str] = None,
        sync_enabled: Optional[bool] = None,
        type_id: Optional[str] = None) -> ContentSourcefunc GetContentSource(ctx *Context, name string, id IDInput, state *ContentSourceState, opts ...ResourceOption) (*ContentSource, error)public static ContentSource Get(string name, Input<string> id, ContentSourceState? state, CustomResourceOptions? opts = null)public static ContentSource get(String name, Output<String> id, ContentSourceState state, CustomResourceOptions options)resources:  _:    type: vra:ContentSource    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.
- Config
ContentSource Config 
- Content source custom configuration.
- ContentSource stringId 
- The id of this cloud template.
- 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.
- LastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- LastUpdated stringBy 
- The user the entity was last updated by.
- Name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- OrgId string
- The id of the organization this entity belongs to.
- ProjectId string
- The id of the project this entity belongs to.
- SyncEnabled bool
- Flag indicating whether sync is enabled for this content source.
- TypeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- Config
ContentSource Config Args 
- Content source custom configuration.
- ContentSource stringId 
- The id of this cloud template.
- 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.
- LastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- LastUpdated stringBy 
- The user the entity was last updated by.
- Name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- OrgId string
- The id of the organization this entity belongs to.
- ProjectId string
- The id of the project this entity belongs to.
- SyncEnabled bool
- Flag indicating whether sync is enabled for this content source.
- TypeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- config
ContentSource Config 
- Content source custom configuration.
- contentSource StringId 
- The id of this cloud template.
- 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.
- lastUpdated StringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated StringBy 
- The user the entity was last updated by.
- name String
- A human-friendly name for content source used as an identifier in APIs that support this option.
- orgId String
- The id of the organization this entity belongs to.
- projectId String
- The id of the project this entity belongs to.
- syncEnabled Boolean
- Flag indicating whether sync is enabled for this content source.
- typeId String
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- config
ContentSource Config 
- Content source custom configuration.
- contentSource stringId 
- The id of this cloud template.
- 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.
- lastUpdated stringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated stringBy 
- The user the entity was last updated by.
- name string
- A human-friendly name for content source used as an identifier in APIs that support this option.
- orgId string
- The id of the organization this entity belongs to.
- projectId string
- The id of the project this entity belongs to.
- syncEnabled boolean
- Flag indicating whether sync is enabled for this content source.
- typeId string
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- config
ContentSource Config Args 
- Content source custom configuration.
- content_source_ strid 
- The id of this cloud template.
- 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.
- last_updated_ strat 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last_updated_ strby 
- The user the entity was last updated by.
- name str
- A human-friendly name for content source used as an identifier in APIs that support this option.
- org_id str
- The id of the organization this entity belongs to.
- project_id str
- The id of the project this entity belongs to.
- sync_enabled bool
- Flag indicating whether sync is enabled for this content source.
- type_id str
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
- config Property Map
- Content source custom configuration.
- contentSource StringId 
- The id of this cloud template.
- 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.
- lastUpdated StringAt 
- Date when the entity was last updated. The date is in ISO 6801 and UTC.
- lastUpdated StringBy 
- The user the entity was last updated by.
- name String
- A human-friendly name for content source used as an identifier in APIs that support this option.
- orgId String
- The id of the organization this entity belongs to.
- projectId String
- The id of the project this entity belongs to.
- syncEnabled Boolean
- Flag indicating whether sync is enabled for this content source.
- typeId String
- Content Source type. Supported values are com.gitlab,com.github,com.vmware.marketplace,org.bitbucket.
Supporting Types
ContentSourceConfig, ContentSourceConfigArgs      
- IntegrationId string
- Content source integration id as seen in vRA integrations.
- Path string
- Path to refer to in the content source repository and branch.
- ProjectName string
- Name of the project.
- Branch string
- Content source branch name.
- ContentType string
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- Repository string
- Content source repository.
- IntegrationId string
- Content source integration id as seen in vRA integrations.
- Path string
- Path to refer to in the content source repository and branch.
- ProjectName string
- Name of the project.
- Branch string
- Content source branch name.
- ContentType string
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- Repository string
- Content source repository.
- integrationId String
- Content source integration id as seen in vRA integrations.
- path String
- Path to refer to in the content source repository and branch.
- projectName String
- Name of the project.
- branch String
- Content source branch name.
- contentType String
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- repository String
- Content source repository.
- integrationId string
- Content source integration id as seen in vRA integrations.
- path string
- Path to refer to in the content source repository and branch.
- projectName string
- Name of the project.
- branch string
- Content source branch name.
- contentType string
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- repository string
- Content source repository.
- integration_id str
- Content source integration id as seen in vRA integrations.
- path str
- Path to refer to in the content source repository and branch.
- project_name str
- Name of the project.
- branch str
- Content source branch name.
- content_type str
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- repository str
- Content source repository.
- integrationId String
- Content source integration id as seen in vRA integrations.
- path String
- Path to refer to in the content source repository and branch.
- projectName String
- Name of the project.
- branch String
- Content source branch name.
- contentType String
- Content source type. Supported values are BLUEPRINT,IMAGE,ABX_SCRIPTS,TERRAFORM_CONFIGURATION.
- repository String
- Content source repository.
Import
Content source can be imported using the id, e.g.
$ pulumi import vra:index/contentSource:ContentSource 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 vraTerraform Provider.