1. Packages
  2. Xen Orchestra
  3. API Docs
  4. getXoaCloudConfig
xenorchestra v1.5.2 published on Monday, Mar 10, 2025 by Vates

xenorchestra.getXoaCloudConfig

Explore with Pulumi AI

xenorchestra v1.5.2 published on Monday, Mar 10, 2025 by Vates

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as xenorchestra from "@pulumi/xenorchestra";

const cloudConfig = xenorchestra.getXoaCloudConfig({
    name: "Name of cloud config",
});
Copy
import pulumi
import pulumi_xenorchestra as xenorchestra

cloud_config = xenorchestra.get_xoa_cloud_config(name="Name of cloud config")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/vatesfr/pulumi-xenorchestra/sdk/go/xenorchestra"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := xenorchestra.GetXoaCloudConfig(ctx, &xenorchestra.GetXoaCloudConfigArgs{
			Name: "Name of cloud config",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Xenorchestra = Pulumi.Xenorchestra;

return await Deployment.RunAsync(() => 
{
    var cloudConfig = Xenorchestra.GetXoaCloudConfig.Invoke(new()
    {
        Name = "Name of cloud config",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.xenorchestra.XenorchestraFunctions;
import com.pulumi.xenorchestra.inputs.GetXoaCloudConfigArgs;
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 cloudConfig = XenorchestraFunctions.getXoaCloudConfig(GetXoaCloudConfigArgs.builder()
            .name("Name of cloud config")
            .build());

    }
}
Copy
variables:
  cloudConfig:
    fn::invoke:
      function: xenorchestra:getXoaCloudConfig
      arguments:
        name: Name of cloud config
Copy

Using getXoaCloudConfig

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 getXoaCloudConfig(args: GetXoaCloudConfigArgs, opts?: InvokeOptions): Promise<GetXoaCloudConfigResult>
function getXoaCloudConfigOutput(args: GetXoaCloudConfigOutputArgs, opts?: InvokeOptions): Output<GetXoaCloudConfigResult>
Copy
def get_xoa_cloud_config(name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetXoaCloudConfigResult
def get_xoa_cloud_config_output(name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetXoaCloudConfigResult]
Copy
func GetXoaCloudConfig(ctx *Context, args *GetXoaCloudConfigArgs, opts ...InvokeOption) (*GetXoaCloudConfigResult, error)
func GetXoaCloudConfigOutput(ctx *Context, args *GetXoaCloudConfigOutputArgs, opts ...InvokeOption) GetXoaCloudConfigResultOutput
Copy

> Note: This function is named GetXoaCloudConfig in the Go SDK.

public static class GetXoaCloudConfig 
{
    public static Task<GetXoaCloudConfigResult> InvokeAsync(GetXoaCloudConfigArgs args, InvokeOptions? opts = null)
    public static Output<GetXoaCloudConfigResult> Invoke(GetXoaCloudConfigInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetXoaCloudConfigResult> getXoaCloudConfig(GetXoaCloudConfigArgs args, InvokeOptions options)
public static Output<GetXoaCloudConfigResult> getXoaCloudConfig(GetXoaCloudConfigArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: xenorchestra:index/getXoaCloudConfig:getXoaCloudConfig
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the cloud config you want to look up.
Name This property is required. string
The name of the cloud config you want to look up.
name This property is required. String
The name of the cloud config you want to look up.
name This property is required. string
The name of the cloud config you want to look up.
name This property is required. str
The name of the cloud config you want to look up.
name This property is required. String
The name of the cloud config you want to look up.

getXoaCloudConfig Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the cloud config you want to look up.
Template string
The contents of the cloud-config.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the cloud config you want to look up.
Template string
The contents of the cloud-config.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the cloud config you want to look up.
template String
The contents of the cloud-config.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the cloud config you want to look up.
template string
The contents of the cloud-config.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the cloud config you want to look up.
template str
The contents of the cloud-config.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the cloud config you want to look up.
template String
The contents of the cloud-config.

Package Details

Repository
xenorchestra vatesfr/pulumi-xenorchestra
License
Apache-2.0
Notes
This Pulumi package is based on the xenorchestra Terraform Provider.
xenorchestra v1.5.2 published on Monday, Mar 10, 2025 by Vates