Example Usage
Basic Apache CloudStack Account
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const pcg = spectrocloud.getPrivateCloudGateway({
name: "my-pcg",
});
const cloudstackAccount = new spectrocloud.CloudaccountApacheCloudstack("cloudstack_account", {
name: "apache-cloudstack-account-1",
context: "project",
privateCloudGatewayId: pcg.then(pcg => pcg.id),
apiUrl: cloudstackApiUrl,
apiKey: cloudstackApiKey,
secretKey: cloudstackSecretKey,
domain: cloudstackDomain,
insecure: false,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
pcg = spectrocloud.get_private_cloud_gateway(name="my-pcg")
cloudstack_account = spectrocloud.CloudaccountApacheCloudstack("cloudstack_account",
name="apache-cloudstack-account-1",
context="project",
private_cloud_gateway_id=pcg.id,
api_url=cloudstack_api_url,
api_key=cloudstack_api_key,
secret_key=cloudstack_secret_key,
domain=cloudstack_domain,
insecure=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pcg, err := spectrocloud.GetPrivateCloudGateway(ctx, &spectrocloud.GetPrivateCloudGatewayArgs{
Name: pulumi.StringRef("my-pcg"),
}, nil)
if err != nil {
return err
}
_, err = spectrocloud.NewCloudaccountApacheCloudstack(ctx, "cloudstack_account", &spectrocloud.CloudaccountApacheCloudstackArgs{
Name: pulumi.String("apache-cloudstack-account-1"),
Context: pulumi.String("project"),
PrivateCloudGatewayId: pulumi.String(pcg.Id),
ApiUrl: pulumi.Any(cloudstackApiUrl),
ApiKey: pulumi.Any(cloudstackApiKey),
SecretKey: pulumi.Any(cloudstackSecretKey),
Domain: pulumi.Any(cloudstackDomain),
Insecure: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var pcg = Spectrocloud.GetPrivateCloudGateway.Invoke(new()
{
Name = "my-pcg",
});
var cloudstackAccount = new Spectrocloud.CloudaccountApacheCloudstack("cloudstack_account", new()
{
Name = "apache-cloudstack-account-1",
Context = "project",
PrivateCloudGatewayId = pcg.Apply(getPrivateCloudGatewayResult => getPrivateCloudGatewayResult.Id),
ApiUrl = cloudstackApiUrl,
ApiKey = cloudstackApiKey,
SecretKey = cloudstackSecretKey,
Domain = cloudstackDomain,
Insecure = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPrivateCloudGatewayArgs;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstack;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstackArgs;
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 pcg = SpectrocloudFunctions.getPrivateCloudGateway(GetPrivateCloudGatewayArgs.builder()
.name("my-pcg")
.build());
var cloudstackAccount = new CloudaccountApacheCloudstack("cloudstackAccount", CloudaccountApacheCloudstackArgs.builder()
.name("apache-cloudstack-account-1")
.context("project")
.privateCloudGatewayId(pcg.id())
.apiUrl(cloudstackApiUrl)
.apiKey(cloudstackApiKey)
.secretKey(cloudstackSecretKey)
.domain(cloudstackDomain)
.insecure(false)
.build());
}
}
resources:
cloudstackAccount:
type: spectrocloud:CloudaccountApacheCloudstack
name: cloudstack_account
properties:
name: apache-cloudstack-account-1
context: project
privateCloudGatewayId: ${pcg.id}
apiUrl: ${cloudstackApiUrl}
apiKey: ${cloudstackApiKey}
secretKey: ${cloudstackSecretKey}
domain: ${cloudstackDomain}
insecure: false
variables:
pcg:
fn::invoke:
function: spectrocloud:getPrivateCloudGateway
arguments:
name: my-pcg
Apache CloudStack Account with Custom Domain
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const pcg = spectrocloud.getPrivateCloudGateway({
name: "production-pcg",
});
const cloudstackDomainAccount = new spectrocloud.CloudaccountApacheCloudstack("cloudstack_domain_account", {
name: "apache-cloudstack-production",
context: "project",
privateCloudGatewayId: pcg.then(pcg => pcg.id),
apiUrl: cloudstackApiUrl,
apiKey: cloudstackApiKey,
secretKey: cloudstackSecretKey,
domain: cloudstackDomain,
insecure: false,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
pcg = spectrocloud.get_private_cloud_gateway(name="production-pcg")
cloudstack_domain_account = spectrocloud.CloudaccountApacheCloudstack("cloudstack_domain_account",
name="apache-cloudstack-production",
context="project",
private_cloud_gateway_id=pcg.id,
api_url=cloudstack_api_url,
api_key=cloudstack_api_key,
secret_key=cloudstack_secret_key,
domain=cloudstack_domain,
insecure=False)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
pcg, err := spectrocloud.GetPrivateCloudGateway(ctx, &spectrocloud.GetPrivateCloudGatewayArgs{
Name: pulumi.StringRef("production-pcg"),
}, nil)
if err != nil {
return err
}
_, err = spectrocloud.NewCloudaccountApacheCloudstack(ctx, "cloudstack_domain_account", &spectrocloud.CloudaccountApacheCloudstackArgs{
Name: pulumi.String("apache-cloudstack-production"),
Context: pulumi.String("project"),
PrivateCloudGatewayId: pulumi.String(pcg.Id),
ApiUrl: pulumi.Any(cloudstackApiUrl),
ApiKey: pulumi.Any(cloudstackApiKey),
SecretKey: pulumi.Any(cloudstackSecretKey),
Domain: pulumi.Any(cloudstackDomain),
Insecure: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var pcg = Spectrocloud.GetPrivateCloudGateway.Invoke(new()
{
Name = "production-pcg",
});
var cloudstackDomainAccount = new Spectrocloud.CloudaccountApacheCloudstack("cloudstack_domain_account", new()
{
Name = "apache-cloudstack-production",
Context = "project",
PrivateCloudGatewayId = pcg.Apply(getPrivateCloudGatewayResult => getPrivateCloudGatewayResult.Id),
ApiUrl = cloudstackApiUrl,
ApiKey = cloudstackApiKey,
SecretKey = cloudstackSecretKey,
Domain = cloudstackDomain,
Insecure = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPrivateCloudGatewayArgs;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstack;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstackArgs;
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 pcg = SpectrocloudFunctions.getPrivateCloudGateway(GetPrivateCloudGatewayArgs.builder()
.name("production-pcg")
.build());
var cloudstackDomainAccount = new CloudaccountApacheCloudstack("cloudstackDomainAccount", CloudaccountApacheCloudstackArgs.builder()
.name("apache-cloudstack-production")
.context("project")
.privateCloudGatewayId(pcg.id())
.apiUrl(cloudstackApiUrl)
.apiKey(cloudstackApiKey)
.secretKey(cloudstackSecretKey)
.domain(cloudstackDomain)
.insecure(false)
.build());
}
}
resources:
cloudstackDomainAccount:
type: spectrocloud:CloudaccountApacheCloudstack
name: cloudstack_domain_account
properties:
name: apache-cloudstack-production
context: project
privateCloudGatewayId: ${pcg.id}
apiUrl: ${cloudstackApiUrl}
apiKey: ${cloudstackApiKey}
secretKey: ${cloudstackSecretKey}
domain: ${cloudstackDomain}
insecure: false
variables:
pcg:
fn::invoke:
function: spectrocloud:getPrivateCloudGateway
arguments:
name: production-pcg
Apache CloudStack Account with Insecure Connection
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
// Note: Use insecure mode only in development/testing environments
// Not recommended for production use
const devPcg = spectrocloud.getPrivateCloudGateway({
name: "dev-pcg",
});
const cloudstackInsecure = new spectrocloud.CloudaccountApacheCloudstack("cloudstack_insecure", {
name: "apache-cloudstack-dev",
context: "project",
privateCloudGatewayId: devPcg.then(devPcg => devPcg.id),
apiUrl: cloudstackApiUrl,
apiKey: cloudstackApiKey,
secretKey: cloudstackSecretKey,
domain: cloudstackDomain,
insecure: true,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
# Note: Use insecure mode only in development/testing environments
# Not recommended for production use
dev_pcg = spectrocloud.get_private_cloud_gateway(name="dev-pcg")
cloudstack_insecure = spectrocloud.CloudaccountApacheCloudstack("cloudstack_insecure",
name="apache-cloudstack-dev",
context="project",
private_cloud_gateway_id=dev_pcg.id,
api_url=cloudstack_api_url,
api_key=cloudstack_api_key,
secret_key=cloudstack_secret_key,
domain=cloudstack_domain,
insecure=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Note: Use insecure mode only in development/testing environments
// Not recommended for production use
devPcg, err := spectrocloud.GetPrivateCloudGateway(ctx, &spectrocloud.GetPrivateCloudGatewayArgs{
Name: pulumi.StringRef("dev-pcg"),
}, nil)
if err != nil {
return err
}
_, err = spectrocloud.NewCloudaccountApacheCloudstack(ctx, "cloudstack_insecure", &spectrocloud.CloudaccountApacheCloudstackArgs{
Name: pulumi.String("apache-cloudstack-dev"),
Context: pulumi.String("project"),
PrivateCloudGatewayId: pulumi.String(devPcg.Id),
ApiUrl: pulumi.Any(cloudstackApiUrl),
ApiKey: pulumi.Any(cloudstackApiKey),
SecretKey: pulumi.Any(cloudstackSecretKey),
Domain: pulumi.Any(cloudstackDomain),
Insecure: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
// Note: Use insecure mode only in development/testing environments
// Not recommended for production use
var devPcg = Spectrocloud.GetPrivateCloudGateway.Invoke(new()
{
Name = "dev-pcg",
});
var cloudstackInsecure = new Spectrocloud.CloudaccountApacheCloudstack("cloudstack_insecure", new()
{
Name = "apache-cloudstack-dev",
Context = "project",
PrivateCloudGatewayId = devPcg.Apply(getPrivateCloudGatewayResult => getPrivateCloudGatewayResult.Id),
ApiUrl = cloudstackApiUrl,
ApiKey = cloudstackApiKey,
SecretKey = cloudstackSecretKey,
Domain = cloudstackDomain,
Insecure = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPrivateCloudGatewayArgs;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstack;
import com.pulumi.spectrocloud.CloudaccountApacheCloudstackArgs;
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) {
// Note: Use insecure mode only in development/testing environments
// Not recommended for production use
final var devPcg = SpectrocloudFunctions.getPrivateCloudGateway(GetPrivateCloudGatewayArgs.builder()
.name("dev-pcg")
.build());
var cloudstackInsecure = new CloudaccountApacheCloudstack("cloudstackInsecure", CloudaccountApacheCloudstackArgs.builder()
.name("apache-cloudstack-dev")
.context("project")
.privateCloudGatewayId(devPcg.id())
.apiUrl(cloudstackApiUrl)
.apiKey(cloudstackApiKey)
.secretKey(cloudstackSecretKey)
.domain(cloudstackDomain)
.insecure(true)
.build());
}
}
resources:
cloudstackInsecure:
type: spectrocloud:CloudaccountApacheCloudstack
name: cloudstack_insecure
properties:
name: apache-cloudstack-dev
context: project
privateCloudGatewayId: ${devPcg.id}
apiUrl: ${cloudstackApiUrl}
apiKey: ${cloudstackApiKey}
secretKey: ${cloudstackSecretKey}
domain: ${cloudstackDomain}
insecure: true
variables:
# Note: Use insecure mode only in development/testing environments
# Not recommended for production use
devPcg:
fn::invoke:
function: spectrocloud:getPrivateCloudGateway
arguments:
name: dev-pcg
Create CloudaccountApacheCloudstack Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudaccountApacheCloudstack(name: string, args: CloudaccountApacheCloudstackArgs, opts?: CustomResourceOptions);@overload
def CloudaccountApacheCloudstack(resource_name: str,
args: CloudaccountApacheCloudstackArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudaccountApacheCloudstack(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
api_url: Optional[str] = None,
private_cloud_gateway_id: Optional[str] = None,
secret_key: Optional[str] = None,
cloudaccount_apache_cloudstack_id: Optional[str] = None,
context: Optional[str] = None,
domain: Optional[str] = None,
insecure: Optional[bool] = None,
name: Optional[str] = None)func NewCloudaccountApacheCloudstack(ctx *Context, name string, args CloudaccountApacheCloudstackArgs, opts ...ResourceOption) (*CloudaccountApacheCloudstack, error)public CloudaccountApacheCloudstack(string name, CloudaccountApacheCloudstackArgs args, CustomResourceOptions? opts = null)
public CloudaccountApacheCloudstack(String name, CloudaccountApacheCloudstackArgs args)
public CloudaccountApacheCloudstack(String name, CloudaccountApacheCloudstackArgs args, CustomResourceOptions options)
type: spectrocloud:CloudaccountApacheCloudstack
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 CloudaccountApacheCloudstackArgs
- 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 CloudaccountApacheCloudstackArgs
- 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 CloudaccountApacheCloudstackArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountApacheCloudstackArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudaccountApacheCloudstackArgs
- 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 cloudaccountApacheCloudstackResource = new Spectrocloud.CloudaccountApacheCloudstack("cloudaccountApacheCloudstackResource", new()
{
ApiKey = "string",
ApiUrl = "string",
PrivateCloudGatewayId = "string",
SecretKey = "string",
CloudaccountApacheCloudstackId = "string",
Context = "string",
Domain = "string",
Insecure = false,
Name = "string",
});
example, err := spectrocloud.NewCloudaccountApacheCloudstack(ctx, "cloudaccountApacheCloudstackResource", &spectrocloud.CloudaccountApacheCloudstackArgs{
ApiKey: pulumi.String("string"),
ApiUrl: pulumi.String("string"),
PrivateCloudGatewayId: pulumi.String("string"),
SecretKey: pulumi.String("string"),
CloudaccountApacheCloudstackId: pulumi.String("string"),
Context: pulumi.String("string"),
Domain: pulumi.String("string"),
Insecure: pulumi.Bool(false),
Name: pulumi.String("string"),
})
var cloudaccountApacheCloudstackResource = new CloudaccountApacheCloudstack("cloudaccountApacheCloudstackResource", CloudaccountApacheCloudstackArgs.builder()
.apiKey("string")
.apiUrl("string")
.privateCloudGatewayId("string")
.secretKey("string")
.cloudaccountApacheCloudstackId("string")
.context("string")
.domain("string")
.insecure(false)
.name("string")
.build());
cloudaccount_apache_cloudstack_resource = spectrocloud.CloudaccountApacheCloudstack("cloudaccountApacheCloudstackResource",
api_key="string",
api_url="string",
private_cloud_gateway_id="string",
secret_key="string",
cloudaccount_apache_cloudstack_id="string",
context="string",
domain="string",
insecure=False,
name="string")
const cloudaccountApacheCloudstackResource = new spectrocloud.CloudaccountApacheCloudstack("cloudaccountApacheCloudstackResource", {
apiKey: "string",
apiUrl: "string",
privateCloudGatewayId: "string",
secretKey: "string",
cloudaccountApacheCloudstackId: "string",
context: "string",
domain: "string",
insecure: false,
name: "string",
});
type: spectrocloud:CloudaccountApacheCloudstack
properties:
apiKey: string
apiUrl: string
cloudaccountApacheCloudstackId: string
context: string
domain: string
insecure: false
name: string
privateCloudGatewayId: string
secretKey: string
CloudaccountApacheCloudstack 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 CloudaccountApacheCloudstack resource accepts the following input properties:
- Api
Key string - The API key for Apache CloudStack authentication.
- Api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- Secret
Key string - The secret key for Apache CloudStack authentication.
- Cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- Context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- Insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - Name string
- Name of the Apache CloudStack cloud account.
- Api
Key string - The API key for Apache CloudStack authentication.
- Api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- Secret
Key string - The secret key for Apache CloudStack authentication.
- Cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- Context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- Insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - Name string
- Name of the Apache CloudStack cloud account.
- api
Key String - The API key for Apache CloudStack authentication.
- api
Url String - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key String - The secret key for Apache CloudStack authentication.
- cloudaccount
Apache StringCloudstack Id - The ID of this resource.
- context String
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain String
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure Boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name String
- Name of the Apache CloudStack cloud account.
- api
Key string - The API key for Apache CloudStack authentication.
- api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key string - The secret key for Apache CloudStack authentication.
- cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name string
- Name of the Apache CloudStack cloud account.
- api_
key str - The API key for Apache CloudStack authentication.
- api_
url str - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- private_
cloud_ strgateway_ id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret_
key str - The secret key for Apache CloudStack authentication.
- cloudaccount_
apache_ strcloudstack_ id - The ID of this resource.
- context str
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain str
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name str
- Name of the Apache CloudStack cloud account.
- api
Key String - The API key for Apache CloudStack authentication.
- api
Url String - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key String - The secret key for Apache CloudStack authentication.
- cloudaccount
Apache StringCloudstack Id - The ID of this resource.
- context String
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain String
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure Boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name String
- Name of the Apache CloudStack cloud account.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudaccountApacheCloudstack 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 CloudaccountApacheCloudstack Resource
Get an existing CloudaccountApacheCloudstack 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?: CloudaccountApacheCloudstackState, opts?: CustomResourceOptions): CloudaccountApacheCloudstack@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_key: Optional[str] = None,
api_url: Optional[str] = None,
cloudaccount_apache_cloudstack_id: Optional[str] = None,
context: Optional[str] = None,
domain: Optional[str] = None,
insecure: Optional[bool] = None,
name: Optional[str] = None,
private_cloud_gateway_id: Optional[str] = None,
secret_key: Optional[str] = None) -> CloudaccountApacheCloudstackfunc GetCloudaccountApacheCloudstack(ctx *Context, name string, id IDInput, state *CloudaccountApacheCloudstackState, opts ...ResourceOption) (*CloudaccountApacheCloudstack, error)public static CloudaccountApacheCloudstack Get(string name, Input<string> id, CloudaccountApacheCloudstackState? state, CustomResourceOptions? opts = null)public static CloudaccountApacheCloudstack get(String name, Output<String> id, CloudaccountApacheCloudstackState state, CustomResourceOptions options)resources: _: type: spectrocloud:CloudaccountApacheCloudstack 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.
- Api
Key string - The API key for Apache CloudStack authentication.
- Api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- Cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- Context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- Insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - Name string
- Name of the Apache CloudStack cloud account.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- Secret
Key string - The secret key for Apache CloudStack authentication.
- Api
Key string - The API key for Apache CloudStack authentication.
- Api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- Cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- Context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - Domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- Insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - Name string
- Name of the Apache CloudStack cloud account.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- Secret
Key string - The secret key for Apache CloudStack authentication.
- api
Key String - The API key for Apache CloudStack authentication.
- api
Url String - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- cloudaccount
Apache StringCloudstack Id - The ID of this resource.
- context String
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain String
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure Boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name String
- Name of the Apache CloudStack cloud account.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key String - The secret key for Apache CloudStack authentication.
- api
Key string - The API key for Apache CloudStack authentication.
- api
Url string - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- cloudaccount
Apache stringCloudstack Id - The ID of this resource.
- context string
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain string
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name string
- Name of the Apache CloudStack cloud account.
- private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key string - The secret key for Apache CloudStack authentication.
- api_
key str - The API key for Apache CloudStack authentication.
- api_
url str - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- cloudaccount_
apache_ strcloudstack_ id - The ID of this resource.
- context str
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain str
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure bool
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name str
- Name of the Apache CloudStack cloud account.
- private_
cloud_ strgateway_ id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret_
key str - The secret key for Apache CloudStack authentication.
- api
Key String - The API key for Apache CloudStack authentication.
- api
Url String - The API URL of the Apache CloudStack management server. For example: https://cloudstack.example.com:8080/client/api
- cloudaccount
Apache StringCloudstack Id - The ID of this resource.
- context String
- The context of the Apache CloudStack configuration. Allowed values are
projectortenant. Default value isproject. If theprojectcontext is specified, the project name will sourced from the provider configuration parameterproject_name. - domain String
- The domain for the Apache CloudStack account. Optional, for multi-domain CloudStack environments. Default is empty (ROOT domain).
- insecure Boolean
- Skip SSL certificate verification. Default is
false. Note: Apache CloudStack must have valid SSL certificates from a trusted CA if this is false. - name String
- Name of the Apache CloudStack cloud account.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the Apache CloudStack cloud.
- secret
Key String - The secret key for Apache CloudStack authentication.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloudTerraform Provider.
