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
Content
Source Config - Content source custom configuration.
- Project
Id string - The id of the project this entity belongs to.
- Sync
Enabled bool - Flag indicating whether sync is enabled for this content source.
- Type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
. - Content
Source 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
Content
Source Config Args - Content source custom configuration.
- Project
Id string - The id of the project this entity belongs to.
- Sync
Enabled bool - Flag indicating whether sync is enabled for this content source.
- Type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
. - Content
Source 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
Content
Source Config - Content source custom configuration.
- project
Id String - The id of the project this entity belongs to.
- sync
Enabled Boolean - Flag indicating whether sync is enabled for this content source.
- type
Id String - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
. - content
Source 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
Content
Source Config - Content source custom configuration.
- project
Id string - The id of the project this entity belongs to.
- sync
Enabled boolean - Flag indicating whether sync is enabled for this content source.
- type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
. - content
Source 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
Content
Source 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.
- project
Id String - The id of the project this entity belongs to.
- sync
Enabled Boolean - Flag indicating whether sync is enabled for this content source.
- type
Id String - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
. - content
Source 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:
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Org
Id string - The id of the organization this entity belongs to.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Org
Id string - The id of the organization this entity belongs to.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- org
Id String - The id of the organization this entity belongs to.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- org
Id 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.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated StringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- org
Id 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) -> ContentSource
func 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
Content
Source Config - Content source custom configuration.
- Content
Source stringId - The id of this cloud template.
- 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.
- Last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- Last
Updated 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.
- Org
Id string - The id of the organization this entity belongs to.
- Project
Id string - The id of the project this entity belongs to.
- Sync
Enabled bool - Flag indicating whether sync is enabled for this content source.
- Type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
.
- Config
Content
Source Config Args - Content source custom configuration.
- Content
Source stringId - The id of this cloud template.
- 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.
- Last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- Last
Updated 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.
- Org
Id string - The id of the organization this entity belongs to.
- Project
Id string - The id of the project this entity belongs to.
- Sync
Enabled bool - Flag indicating whether sync is enabled for this content source.
- Type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
.
- config
Content
Source Config - Content source custom configuration.
- content
Source StringId - The id of this cloud template.
- 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.
- last
Updated StringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated 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.
- org
Id String - The id of the organization this entity belongs to.
- project
Id String - The id of the project this entity belongs to.
- sync
Enabled Boolean - Flag indicating whether sync is enabled for this content source.
- type
Id String - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
.
- config
Content
Source Config - Content source custom configuration.
- content
Source stringId - The id of this cloud template.
- 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.
- last
Updated stringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated 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.
- org
Id string - The id of the organization this entity belongs to.
- project
Id string - The id of the project this entity belongs to.
- sync
Enabled boolean - Flag indicating whether sync is enabled for this content source.
- type
Id string - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
.
- config
Content
Source 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.
- content
Source StringId - The id of this cloud template.
- 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.
- last
Updated StringAt - Date when the entity was last updated. The date is in ISO 6801 and UTC.
- last
Updated 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.
- org
Id String - The id of the organization this entity belongs to.
- project
Id String - The id of the project this entity belongs to.
- sync
Enabled Boolean - Flag indicating whether sync is enabled for this content source.
- type
Id String - Content Source type. Supported values are
com.gitlab
,com.github
,com.vmware.marketplace
,org.bitbucket
.
Supporting Types
ContentSourceConfig, ContentSourceConfigArgs
- Integration
Id string - Content source integration id as seen in vRA integrations.
- Path string
- Path to refer to in the content source repository and branch.
- Project
Name string - Name of the project.
- Branch string
- Content source branch name.
- Content
Type string - Content source type. Supported values are
BLUEPRINT
,IMAGE
,ABX_SCRIPTS
,TERRAFORM_CONFIGURATION
. - Repository string
- Content source repository.
- Integration
Id string - Content source integration id as seen in vRA integrations.
- Path string
- Path to refer to in the content source repository and branch.
- Project
Name string - Name of the project.
- Branch string
- Content source branch name.
- Content
Type string - Content source type. Supported values are
BLUEPRINT
,IMAGE
,ABX_SCRIPTS
,TERRAFORM_CONFIGURATION
. - Repository string
- Content source repository.
- integration
Id String - Content source integration id as seen in vRA integrations.
- path String
- Path to refer to in the content source repository and branch.
- project
Name String - Name of the project.
- branch String
- Content source branch name.
- content
Type String - Content source type. Supported values are
BLUEPRINT
,IMAGE
,ABX_SCRIPTS
,TERRAFORM_CONFIGURATION
. - repository String
- Content source repository.
- integration
Id string - Content source integration id as seen in vRA integrations.
- path string
- Path to refer to in the content source repository and branch.
- project
Name string - Name of the project.
- branch string
- Content source branch name.
- content
Type 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.
- integration
Id String - Content source integration id as seen in vRA integrations.
- path String
- Path to refer to in the content source repository and branch.
- project
Name String - Name of the project.
- branch String
- Content source branch name.
- content
Type 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
vra
Terraform Provider.