1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. CloudaccountVsphere
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

spectrocloud.CloudaccountVsphere

Explore with Pulumi AI

A resource to manage a vSphere cloud account in Pallette.

Example Usage

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

const config = new pulumi.Config();
const privateCloudGatewayId = config.require("privateCloudGatewayId");
const account = new spectrocloud.CloudaccountVsphere("account", {
    context: "tenant",
    privateCloudGatewayId: privateCloudGatewayId,
    vsphereVcenter: _var.vsphere_vcenter,
    vsphereUsername: _var.vsphere_username,
    vspherePassword: _var.vsphere_password,
    vsphereIgnoreInsecureError: true,
});
export const same = account.cloudaccountVsphereId;
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

config = pulumi.Config()
private_cloud_gateway_id = config.require("privateCloudGatewayId")
account = spectrocloud.CloudaccountVsphere("account",
    context="tenant",
    private_cloud_gateway_id=private_cloud_gateway_id,
    vsphere_vcenter=var["vsphere_vcenter"],
    vsphere_username=var["vsphere_username"],
    vsphere_password=var["vsphere_password"],
    vsphere_ignore_insecure_error=True)
pulumi.export("same", account.cloudaccount_vsphere_id)
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		cfg := config.New(ctx, "")
		privateCloudGatewayId := cfg.Require("privateCloudGatewayId")
		account, err := spectrocloud.NewCloudaccountVsphere(ctx, "account", &spectrocloud.CloudaccountVsphereArgs{
			Context:                    pulumi.String("tenant"),
			PrivateCloudGatewayId:      pulumi.String(privateCloudGatewayId),
			VsphereVcenter:             pulumi.Any(_var.Vsphere_vcenter),
			VsphereUsername:            pulumi.Any(_var.Vsphere_username),
			VspherePassword:            pulumi.Any(_var.Vsphere_password),
			VsphereIgnoreInsecureError: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		ctx.Export("same", account.CloudaccountVsphereId)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var config = new Config();
    var privateCloudGatewayId = config.Require("privateCloudGatewayId");
    var account = new Spectrocloud.CloudaccountVsphere("account", new()
    {
        Context = "tenant",
        PrivateCloudGatewayId = privateCloudGatewayId,
        VsphereVcenter = @var.Vsphere_vcenter,
        VsphereUsername = @var.Vsphere_username,
        VspherePassword = @var.Vsphere_password,
        VsphereIgnoreInsecureError = true,
    });

    return new Dictionary<string, object?>
    {
        ["same"] = account.CloudaccountVsphereId,
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.CloudaccountVsphere;
import com.pulumi.spectrocloud.CloudaccountVsphereArgs;
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 config = ctx.config();
        final var privateCloudGatewayId = config.get("privateCloudGatewayId");
        var account = new CloudaccountVsphere("account", CloudaccountVsphereArgs.builder()
            .context("tenant")
            .privateCloudGatewayId(privateCloudGatewayId)
            .vsphereVcenter(var_.vsphere_vcenter())
            .vsphereUsername(var_.vsphere_username())
            .vspherePassword(var_.vsphere_password())
            .vsphereIgnoreInsecureError(true)
            .build());

        ctx.export("same", account.cloudaccountVsphereId());
    }
}
Copy
configuration:
  privateCloudGatewayId:
    type: string
resources:
  account:
    type: spectrocloud:CloudaccountVsphere
    properties:
      context: tenant
      privateCloudGatewayId: ${privateCloudGatewayId}
      vsphereVcenter: ${var.vsphere_vcenter}
      vsphereUsername: ${var.vsphere_username}
      vspherePassword: ${var.vsphere_password}
      vsphereIgnoreInsecureError: true
outputs:
  same: ${account.cloudaccountVsphereId}
Copy

Create CloudaccountVsphere Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CloudaccountVsphere(name: string, args: CloudaccountVsphereArgs, opts?: CustomResourceOptions);
@overload
def CloudaccountVsphere(resource_name: str,
                        args: CloudaccountVsphereArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def CloudaccountVsphere(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        private_cloud_gateway_id: Optional[str] = None,
                        vsphere_password: Optional[str] = None,
                        vsphere_username: Optional[str] = None,
                        vsphere_vcenter: Optional[str] = None,
                        cloudaccount_vsphere_id: Optional[str] = None,
                        context: Optional[str] = None,
                        name: Optional[str] = None,
                        vsphere_ignore_insecure_error: Optional[bool] = None)
func NewCloudaccountVsphere(ctx *Context, name string, args CloudaccountVsphereArgs, opts ...ResourceOption) (*CloudaccountVsphere, error)
public CloudaccountVsphere(string name, CloudaccountVsphereArgs args, CustomResourceOptions? opts = null)
public CloudaccountVsphere(String name, CloudaccountVsphereArgs args)
public CloudaccountVsphere(String name, CloudaccountVsphereArgs args, CustomResourceOptions options)
type: spectrocloud:CloudaccountVsphere
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountVsphereArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CloudaccountVsphereArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountVsphereArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountVsphereArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CloudaccountVsphereArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var cloudaccountVsphereResource = new Spectrocloud.CloudaccountVsphere("cloudaccountVsphereResource", new()
{
    PrivateCloudGatewayId = "string",
    VspherePassword = "string",
    VsphereUsername = "string",
    VsphereVcenter = "string",
    CloudaccountVsphereId = "string",
    Context = "string",
    Name = "string",
    VsphereIgnoreInsecureError = false,
});
Copy
example, err := spectrocloud.NewCloudaccountVsphere(ctx, "cloudaccountVsphereResource", &spectrocloud.CloudaccountVsphereArgs{
	PrivateCloudGatewayId:      pulumi.String("string"),
	VspherePassword:            pulumi.String("string"),
	VsphereUsername:            pulumi.String("string"),
	VsphereVcenter:             pulumi.String("string"),
	CloudaccountVsphereId:      pulumi.String("string"),
	Context:                    pulumi.String("string"),
	Name:                       pulumi.String("string"),
	VsphereIgnoreInsecureError: pulumi.Bool(false),
})
Copy
var cloudaccountVsphereResource = new CloudaccountVsphere("cloudaccountVsphereResource", CloudaccountVsphereArgs.builder()
    .privateCloudGatewayId("string")
    .vspherePassword("string")
    .vsphereUsername("string")
    .vsphereVcenter("string")
    .cloudaccountVsphereId("string")
    .context("string")
    .name("string")
    .vsphereIgnoreInsecureError(false)
    .build());
Copy
cloudaccount_vsphere_resource = spectrocloud.CloudaccountVsphere("cloudaccountVsphereResource",
    private_cloud_gateway_id="string",
    vsphere_password="string",
    vsphere_username="string",
    vsphere_vcenter="string",
    cloudaccount_vsphere_id="string",
    context="string",
    name="string",
    vsphere_ignore_insecure_error=False)
Copy
const cloudaccountVsphereResource = new spectrocloud.CloudaccountVsphere("cloudaccountVsphereResource", {
    privateCloudGatewayId: "string",
    vspherePassword: "string",
    vsphereUsername: "string",
    vsphereVcenter: "string",
    cloudaccountVsphereId: "string",
    context: "string",
    name: "string",
    vsphereIgnoreInsecureError: false,
});
Copy
type: spectrocloud:CloudaccountVsphere
properties:
    cloudaccountVsphereId: string
    context: string
    name: string
    privateCloudGatewayId: string
    vsphereIgnoreInsecureError: false
    vspherePassword: string
    vsphereUsername: string
    vsphereVcenter: string
Copy

CloudaccountVsphere Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CloudaccountVsphere resource accepts the following input properties:

PrivateCloudGatewayId This property is required. string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
VspherePassword This property is required. string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereUsername This property is required. string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereVcenter This property is required. string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
CloudaccountVsphereId string
The ID of this resource.
Context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
VsphereIgnoreInsecureError bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
PrivateCloudGatewayId This property is required. string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
VspherePassword This property is required. string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereUsername This property is required. string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereVcenter This property is required. string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
CloudaccountVsphereId string
The ID of this resource.
Context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
VsphereIgnoreInsecureError bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
privateCloudGatewayId This property is required. String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vspherePassword This property is required. String
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername This property is required. String
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter This property is required. String
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId String
The ID of this resource.
context String
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
vsphereIgnoreInsecureError Boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
privateCloudGatewayId This property is required. string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vspherePassword This property is required. string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername This property is required. string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter This property is required. string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId string
The ID of this resource.
context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
vsphereIgnoreInsecureError boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
private_cloud_gateway_id This property is required. str
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vsphere_password This property is required. str
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphere_username This property is required. str
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphere_vcenter This property is required. str
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccount_vsphere_id str
The ID of this resource.
context str
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name str
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
vsphere_ignore_insecure_error bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
privateCloudGatewayId This property is required. String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vspherePassword This property is required. String
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername This property is required. String
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter This property is required. String
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId String
The ID of this resource.
context String
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
vsphereIgnoreInsecureError Boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.

Outputs

All input properties are implicitly available as output properties. Additionally, the CloudaccountVsphere resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CloudaccountVsphere Resource

Get an existing CloudaccountVsphere resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CloudaccountVsphereState, opts?: CustomResourceOptions): CloudaccountVsphere
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloudaccount_vsphere_id: Optional[str] = None,
        context: Optional[str] = None,
        name: Optional[str] = None,
        private_cloud_gateway_id: Optional[str] = None,
        vsphere_ignore_insecure_error: Optional[bool] = None,
        vsphere_password: Optional[str] = None,
        vsphere_username: Optional[str] = None,
        vsphere_vcenter: Optional[str] = None) -> CloudaccountVsphere
func GetCloudaccountVsphere(ctx *Context, name string, id IDInput, state *CloudaccountVsphereState, opts ...ResourceOption) (*CloudaccountVsphere, error)
public static CloudaccountVsphere Get(string name, Input<string> id, CloudaccountVsphereState? state, CustomResourceOptions? opts = null)
public static CloudaccountVsphere get(String name, Output<String> id, CloudaccountVsphereState state, CustomResourceOptions options)
resources:  _:    type: spectrocloud:CloudaccountVsphere    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CloudaccountVsphereId string
The ID of this resource.
Context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
VsphereIgnoreInsecureError bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
VspherePassword string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereUsername string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereVcenter string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
CloudaccountVsphereId string
The ID of this resource.
Context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
PrivateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
VsphereIgnoreInsecureError bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
VspherePassword string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereUsername string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
VsphereVcenter string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId String
The ID of this resource.
context String
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vsphereIgnoreInsecureError Boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
vspherePassword String
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername String
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter String
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId string
The ID of this resource.
context string
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name string
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
privateCloudGatewayId string
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vsphereIgnoreInsecureError boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
vspherePassword string
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername string
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter string
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccount_vsphere_id str
The ID of this resource.
context str
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name str
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
private_cloud_gateway_id str
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vsphere_ignore_insecure_error bool
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
vsphere_password str
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphere_username str
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphere_vcenter str
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
cloudaccountVsphereId String
The ID of this resource.
context String
Context of the cloud account. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
privateCloudGatewayId String
ID of the private cloud gateway. This is the ID of the private cloud gateway that is used to connect to the vSphere cloud.
vsphereIgnoreInsecureError Boolean
Ignore insecure error. This is a boolean value that indicates whether to ignore the insecure error or not. If not specified, the default value is false.
vspherePassword String
Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereUsername String
Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
vsphereVcenter String
vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.

Package Details

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