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;
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)
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
})
}
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,
};
});
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());
}
}
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}
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 string
- The unique name of the resource.
- args CloudaccountVsphereArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args CloudaccountVsphereArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountVsphereArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
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),
})
var cloudaccountVsphereResource = new CloudaccountVsphere("cloudaccountVsphereResource", CloudaccountVsphereArgs.builder()
.privateCloudGatewayId("string")
.vspherePassword("string")
.vsphereUsername("string")
.vsphereVcenter("string")
.cloudaccountVsphereId("string")
.context("string")
.name("string")
.vsphereIgnoreInsecureError(false)
.build());
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)
const cloudaccountVsphereResource = new spectrocloud.CloudaccountVsphere("cloudaccountVsphereResource", {
privateCloudGatewayId: "string",
vspherePassword: "string",
vsphereUsername: "string",
vsphereVcenter: "string",
cloudaccountVsphereId: "string",
context: "string",
name: "string",
vsphereIgnoreInsecureError: false,
});
type: spectrocloud:CloudaccountVsphere
properties:
cloudaccountVsphereId: string
context: string
name: string
privateCloudGatewayId: string
vsphereIgnoreInsecureError: false
vspherePassword: string
vsphereUsername: string
vsphereVcenter: string
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:
- Private
Cloud stringGateway Id - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- Cloudaccount
Vsphere stringId - The ID of this resource.
- Context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- Vsphere
Ignore boolInsecure Error - 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 stringGateway Id - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- Cloudaccount
Vsphere stringId - The ID of this resource.
- Context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- Vsphere
Ignore boolInsecure Error - 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 StringGateway Id - 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 String - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username String - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter String - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount
Vsphere StringId - The ID of this resource.
- context String
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name String
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- vsphere
Ignore BooleanInsecure Error - 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 stringGateway Id - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount
Vsphere stringId - The ID of this resource.
- context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- vsphere
Ignore booleanInsecure Error - 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_ strgateway_ id - 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 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.
- cloudaccount_
vsphere_ strid - The ID of this resource.
- context str
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name str
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- vsphere_
ignore_ boolinsecure_ error - 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 StringGateway Id - 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 String - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username String - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter String - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount
Vsphere StringId - The ID of this resource.
- context String
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name String
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- vsphere
Ignore BooleanInsecure Error - 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Cloudaccount
Vsphere stringId - The ID of this resource.
- Context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- Private
Cloud stringGateway Id - 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 boolInsecure Error - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- Cloudaccount
Vsphere stringId - The ID of this resource.
- Context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- Private
Cloud stringGateway Id - 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 boolInsecure Error - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- Vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount
Vsphere StringId - The ID of this resource.
- context String
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name String
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- private
Cloud StringGateway Id - 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 BooleanInsecure Error - 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 String - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username String - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter String - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount
Vsphere stringId - The ID of this resource.
- context string
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name string
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- private
Cloud stringGateway Id - 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 booleanInsecure Error - 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 string - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username string - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter string - vCenter server address. This is the address of the vCenter server that is used to connect to the vSphere cloud.
- cloudaccount_
vsphere_ strid - The ID of this resource.
- context str
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name str
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- private_
cloud_ strgateway_ id - 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_ boolinsecure_ error - 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.
- cloudaccount
Vsphere StringId - The ID of this resource.
- context String
- Context of the cloud account. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name String
- Name of the cloud account. This name is used to identify the cloud account in the Spectro Cloud UI.
- private
Cloud StringGateway Id - 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 BooleanInsecure Error - 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 String - Password of the vSphere cloud. This is the password of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Username String - Username of the vSphere cloud. This is the username of the vSphere cloud that is used to connect to the vSphere cloud.
- vsphere
Vcenter 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.