Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
This is an example of how to lookup a content source data source:
Content source data source by id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getContentSource({
id: vraContentSourceId,
});
import pulumi
import pulumi_vra as vra
this = vra.get_content_source(id=vra_content_source_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.LookupContentSource(ctx, &vra.LookupContentSourceArgs{
Id: pulumi.StringRef(vraContentSourceId),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetContentSource.Invoke(new()
{
Id = vraContentSourceId,
});
});
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.GetContentSourceArgs;
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.getContentSource(GetContentSourceArgs.builder()
.id(vraContentSourceId)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getContentSource
arguments:
id: ${vraContentSourceId}
Content source data source by name:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getContentSource({
name: vraContentSourceName,
});
import pulumi
import pulumi_vra as vra
this = vra.get_content_source(name=vra_content_source_name)
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.LookupContentSource(ctx, &vra.LookupContentSourceArgs{
Name: pulumi.StringRef(vraContentSourceName),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetContentSource.Invoke(new()
{
Name = vraContentSourceName,
});
});
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.GetContentSourceArgs;
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.getContentSource(GetContentSourceArgs.builder()
.name(vraContentSourceName)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getContentSource
arguments:
name: ${vraContentSourceName}
Using getContentSource
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 getContentSource(args: GetContentSourceArgs, opts?: InvokeOptions): Promise<GetContentSourceResult>
function getContentSourceOutput(args: GetContentSourceOutputArgs, opts?: InvokeOptions): Output<GetContentSourceResult>def get_content_source(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetContentSourceResult
def get_content_source_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetContentSourceResult]func LookupContentSource(ctx *Context, args *LookupContentSourceArgs, opts ...InvokeOption) (*LookupContentSourceResult, error)
func LookupContentSourceOutput(ctx *Context, args *LookupContentSourceOutputArgs, opts ...InvokeOption) LookupContentSourceResultOutput> Note: This function is named LookupContentSource in the Go SDK.
public static class GetContentSource
{
public static Task<GetContentSourceResult> InvokeAsync(GetContentSourceArgs args, InvokeOptions? opts = null)
public static Output<GetContentSourceResult> Invoke(GetContentSourceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetContentSourceResult> getContentSource(GetContentSourceArgs args, InvokeOptions options)
public static Output<GetContentSourceResult> getContentSource(GetContentSourceArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getContentSource:getContentSource
arguments:
# arguments dictionaryThe following arguments are supported:
getContentSource Result
The following output properties are available:
- Configs
List<Get
Content Source Config> - 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 content source instance.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- 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 - Wether or not sync is enabled for this content source.
- Type
Id string - The type of this content source.
- Configs
[]Get
Content Source Config - 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 content source instance.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- 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 - Wether or not sync is enabled for this content source.
- Type
Id string - The type of this content source.
- configs
List<Get
Content Source Config> - 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 content source instance.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- 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 - Wether or not sync is enabled for this content source.
- type
Id String - The type of this content source.
- configs
Get
Content Source Config[] - 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 content source instance.
- id string
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- name string
- 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 - Wether or not sync is enabled for this content source.
- type
Id string - The type of this content source.
- configs
Sequence[Get
Content Source Config] - 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 content source instance.
- id str
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - The user the entity was last updated by.
- name str
- 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 - Wether or not sync is enabled for this content source.
- type_
id str - The type of this content source.
- configs List<Property Map>
- 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 content source instance.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- 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 - Wether or not sync is enabled for this content source.
- type
Id String - The type of this content source.
Supporting Types
GetContentSourceConfig
- Branch string
- The content source branch name.
- Content
Type string - The content source type.
- Integration
Id string - The content source integration id as seen integrations.
- Path string
- Path to refer to in the content source repository and branch.
- Project
Name string - The name of the project.
- Repository string
- The content source repository.
- Branch string
- The content source branch name.
- Content
Type string - The content source type.
- Integration
Id string - The content source integration id as seen integrations.
- Path string
- Path to refer to in the content source repository and branch.
- Project
Name string - The name of the project.
- Repository string
- The content source repository.
- branch String
- The content source branch name.
- content
Type String - The content source type.
- integration
Id String - The content source integration id as seen integrations.
- path String
- Path to refer to in the content source repository and branch.
- project
Name String - The name of the project.
- repository String
- The content source repository.
- branch string
- The content source branch name.
- content
Type string - The content source type.
- integration
Id string - The content source integration id as seen integrations.
- path string
- Path to refer to in the content source repository and branch.
- project
Name string - The name of the project.
- repository string
- The content source repository.
- branch str
- The content source branch name.
- content_
type str - The content source type.
- integration_
id str - The content source integration id as seen integrations.
- path str
- Path to refer to in the content source repository and branch.
- project_
name str - The name of the project.
- repository str
- The content source repository.
- branch String
- The content source branch name.
- content
Type String - The content source type.
- integration
Id String - The content source integration id as seen integrations.
- path String
- Path to refer to in the content source repository and branch.
- project
Name String - The name of the project.
- repository String
- The content source repository.
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
