vcd 3.14.1 published on Monday, Apr 14, 2025 by vmware
vcd.getMultisiteSiteData
Explore with Pulumi AI
Provides a data source to read a VMware Cloud Director Site association data to be used for association with another site.
Supported in provider v3.13+
Example Usage
Note: there is only one site available for each VCD. No ID or name is necessary to identify it.
Note: this data source requires System Administrator privileges
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const currentSite = vcd.getMultisiteSiteData({
downloadToFile: "filename.xml",
});
import pulumi
import pulumi_vcd as vcd
current_site = vcd.get_multisite_site_data(download_to_file="filename.xml")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vcd/v3/vcd"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vcd.GetMultisiteSiteData(ctx, &vcd.GetMultisiteSiteDataArgs{
DownloadToFile: pulumi.StringRef("filename.xml"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vcd = Pulumi.Vcd;
return await Deployment.RunAsync(() =>
{
var currentSite = Vcd.GetMultisiteSiteData.Invoke(new()
{
DownloadToFile = "filename.xml",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vcd.VcdFunctions;
import com.pulumi.vcd.inputs.GetMultisiteSiteDataArgs;
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 currentSite = VcdFunctions.getMultisiteSiteData(GetMultisiteSiteDataArgs.builder()
.downloadToFile("filename.xml")
.build());
}
}
variables:
currentSite:
fn::invoke:
function: vcd:getMultisiteSiteData
arguments:
downloadToFile: filename.xml
Using getMultisiteSiteData
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 getMultisiteSiteData(args: GetMultisiteSiteDataArgs, opts?: InvokeOptions): Promise<GetMultisiteSiteDataResult>
function getMultisiteSiteDataOutput(args: GetMultisiteSiteDataOutputArgs, opts?: InvokeOptions): Output<GetMultisiteSiteDataResult>
def get_multisite_site_data(download_to_file: Optional[str] = None,
id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMultisiteSiteDataResult
def get_multisite_site_data_output(download_to_file: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMultisiteSiteDataResult]
func GetMultisiteSiteData(ctx *Context, args *GetMultisiteSiteDataArgs, opts ...InvokeOption) (*GetMultisiteSiteDataResult, error)
func GetMultisiteSiteDataOutput(ctx *Context, args *GetMultisiteSiteDataOutputArgs, opts ...InvokeOption) GetMultisiteSiteDataResultOutput
> Note: This function is named GetMultisiteSiteData
in the Go SDK.
public static class GetMultisiteSiteData
{
public static Task<GetMultisiteSiteDataResult> InvokeAsync(GetMultisiteSiteDataArgs args, InvokeOptions? opts = null)
public static Output<GetMultisiteSiteDataResult> Invoke(GetMultisiteSiteDataInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMultisiteSiteDataResult> getMultisiteSiteData(GetMultisiteSiteDataArgs args, InvokeOptions options)
public static Output<GetMultisiteSiteDataResult> getMultisiteSiteData(GetMultisiteSiteDataArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getMultisiteSiteData:getMultisiteSiteData
arguments:
# arguments dictionary
The following arguments are supported:
- Download
To stringFile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - Id string
- Download
To stringFile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - Id string
- download
To StringFile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - id String
- download
To stringFile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - id string
- download_
to_ strfile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - id str
- download
To StringFile - Name of the file that will contain the data needed to associate this site to a remote one.
Contains the same data returned in
association_data
. - id String
getMultisiteSiteData Result
The following output properties are available:
- Association
Data string - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - Id string
- Download
To stringFile
- Association
Data string - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - Id string
- Download
To stringFile
- association
Data String - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - id String
- download
To StringFile
- association
Data string - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - id string
- download
To stringFile
- association_
data str - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - id str
- download_
to_ strfile
- association
Data String - The data needed to associate this site to another one. Contains the same data that would be saved into
the file defined in
download_to_file
. - id String
- download
To StringFile
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.