1. Packages
  2. Vcd Provider
  3. API Docs
  4. getMultisiteSiteData
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",
});
Copy
import pulumi
import pulumi_vcd as vcd

current_site = vcd.get_multisite_site_data(download_to_file="filename.xml")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  currentSite:
    fn::invoke:
      function: vcd:getMultisiteSiteData
      arguments:
        downloadToFile: filename.xml
Copy

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>
Copy
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]
Copy
func GetMultisiteSiteData(ctx *Context, args *GetMultisiteSiteDataArgs, opts ...InvokeOption) (*GetMultisiteSiteDataResult, error)
func GetMultisiteSiteDataOutput(ctx *Context, args *GetMultisiteSiteDataOutputArgs, opts ...InvokeOption) GetMultisiteSiteDataResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetMultisiteSiteDataResult> getMultisiteSiteData(GetMultisiteSiteDataArgs args, InvokeOptions options)
public static Output<GetMultisiteSiteDataResult> getMultisiteSiteData(GetMultisiteSiteDataArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: vcd:index/getMultisiteSiteData:getMultisiteSiteData
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DownloadToFile string
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
DownloadToFile string
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
downloadToFile String
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
downloadToFile string
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_file str
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
downloadToFile String
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:

AssociationData 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
DownloadToFile string
AssociationData 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
DownloadToFile string
associationData 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
downloadToFile String
associationData 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
downloadToFile string
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_file str
associationData 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
downloadToFile String

Package Details

Repository
vcd vmware/terraform-provider-vcd
License
Notes
This Pulumi package is based on the vcd Terraform Provider.