vcd.getMultisiteSite
Explore with Pulumi AI
Provides a data source to read a VMware Cloud Director Site in the context of multi-site operatioos
Supported in provider v3.13+
Note: this data source requires System Administrator privileges
Example Usage
Note: there is only one site available for each VCD. No ID or name is necessary to identify it.
import * as pulumi from "@pulumi/pulumi";
import * as vcd from "@pulumi/vcd";
const currentSite = vcd.getMultisiteSite({});
import pulumi
import pulumi_vcd as vcd
current_site = vcd.get_multisite_site()
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.GetMultisiteSite(ctx, &vcd.GetMultisiteSiteArgs{}, 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.GetMultisiteSite.Invoke();
});
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.GetMultisiteSiteArgs;
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.getMultisiteSite();
}
}
variables:
currentSite:
fn::invoke:
function: vcd:getMultisiteSite
arguments: {}
More information
See Site and Org association for a broader description of association workflows.
Using getMultisiteSite
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 getMultisiteSite(args: GetMultisiteSiteArgs, opts?: InvokeOptions): Promise<GetMultisiteSiteResult>
function getMultisiteSiteOutput(args: GetMultisiteSiteOutputArgs, opts?: InvokeOptions): Output<GetMultisiteSiteResult>
def get_multisite_site(id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMultisiteSiteResult
def get_multisite_site_output(id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMultisiteSiteResult]
func GetMultisiteSite(ctx *Context, args *GetMultisiteSiteArgs, opts ...InvokeOption) (*GetMultisiteSiteResult, error)
func GetMultisiteSiteOutput(ctx *Context, args *GetMultisiteSiteOutputArgs, opts ...InvokeOption) GetMultisiteSiteResultOutput
> Note: This function is named GetMultisiteSite
in the Go SDK.
public static class GetMultisiteSite
{
public static Task<GetMultisiteSiteResult> InvokeAsync(GetMultisiteSiteArgs args, InvokeOptions? opts = null)
public static Output<GetMultisiteSiteResult> Invoke(GetMultisiteSiteInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMultisiteSiteResult> getMultisiteSite(GetMultisiteSiteArgs args, InvokeOptions options)
public static Output<GetMultisiteSiteResult> getMultisiteSite(GetMultisiteSiteArgs args, InvokeOptions options)
fn::invoke:
function: vcd:index/getMultisiteSite:getMultisiteSite
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The identification of the site. Used when associated to a remote site.
- Id string
- The identification of the site. Used when associated to a remote site.
- id String
- The identification of the site. Used when associated to a remote site.
- id string
- The identification of the site. Used when associated to a remote site.
- id str
- The identification of the site. Used when associated to a remote site.
- id String
- The identification of the site. Used when associated to a remote site.
getMultisiteSite Result
The following output properties are available:
- Associations List<string>
- An alphabetically sorted list of current associations.
- Description string
- An optional description of the site.
- Id string
- The identification of the site. Used when associated to a remote site.
- Name string
- The name of the site, which usually corresponds to its host name.
- Number
Of doubleAssociations - The number of current associations with other sites.
- Associations []string
- An alphabetically sorted list of current associations.
- Description string
- An optional description of the site.
- Id string
- The identification of the site. Used when associated to a remote site.
- Name string
- The name of the site, which usually corresponds to its host name.
- Number
Of float64Associations - The number of current associations with other sites.
- associations List<String>
- An alphabetically sorted list of current associations.
- description String
- An optional description of the site.
- id String
- The identification of the site. Used when associated to a remote site.
- name String
- The name of the site, which usually corresponds to its host name.
- number
Of DoubleAssociations - The number of current associations with other sites.
- associations string[]
- An alphabetically sorted list of current associations.
- description string
- An optional description of the site.
- id string
- The identification of the site. Used when associated to a remote site.
- name string
- The name of the site, which usually corresponds to its host name.
- number
Of numberAssociations - The number of current associations with other sites.
- associations Sequence[str]
- An alphabetically sorted list of current associations.
- description str
- An optional description of the site.
- id str
- The identification of the site. Used when associated to a remote site.
- name str
- The name of the site, which usually corresponds to its host name.
- number_
of_ floatassociations - The number of current associations with other sites.
- associations List<String>
- An alphabetically sorted list of current associations.
- description String
- An optional description of the site.
- id String
- The identification of the site. Used when associated to a remote site.
- name String
- The name of the site, which usually corresponds to its host name.
- number
Of NumberAssociations - The number of current associations with other sites.
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.