spectrocloud.CloudaccountMaas
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const maas_1 = new spectrocloud.CloudaccountMaas("maas-1", {
maasApiEndpoint: _var.maas_api_endpoint,
maasApiKey: _var.maas_api_key,
});
import pulumi
import pulumi_spectrocloud as spectrocloud
maas_1 = spectrocloud.CloudaccountMaas("maas-1",
maas_api_endpoint=var["maas_api_endpoint"],
maas_api_key=var["maas_api_key"])
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 {
_, err := spectrocloud.NewCloudaccountMaas(ctx, "maas-1", &spectrocloud.CloudaccountMaasArgs{
MaasApiEndpoint: pulumi.Any(_var.Maas_api_endpoint),
MaasApiKey: pulumi.Any(_var.Maas_api_key),
})
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 maas_1 = new Spectrocloud.CloudaccountMaas("maas-1", new()
{
MaasApiEndpoint = @var.Maas_api_endpoint,
MaasApiKey = @var.Maas_api_key,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.CloudaccountMaas;
import com.pulumi.spectrocloud.CloudaccountMaasArgs;
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) {
var maas_1 = new CloudaccountMaas("maas-1", CloudaccountMaasArgs.builder()
.maasApiEndpoint(var_.maas_api_endpoint())
.maasApiKey(var_.maas_api_key())
.build());
}
}
resources:
maas-1:
type: spectrocloud:CloudaccountMaas
properties:
maasApiEndpoint: ${var.maas_api_endpoint}
maasApiKey: ${var.maas_api_key}
Create CloudaccountMaas Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CloudaccountMaas(name: string, args: CloudaccountMaasArgs, opts?: CustomResourceOptions);
@overload
def CloudaccountMaas(resource_name: str,
args: CloudaccountMaasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CloudaccountMaas(resource_name: str,
opts: Optional[ResourceOptions] = None,
maas_api_endpoint: Optional[str] = None,
maas_api_key: Optional[str] = None,
private_cloud_gateway_id: Optional[str] = None,
cloudaccount_maas_id: Optional[str] = None,
context: Optional[str] = None,
name: Optional[str] = None)
func NewCloudaccountMaas(ctx *Context, name string, args CloudaccountMaasArgs, opts ...ResourceOption) (*CloudaccountMaas, error)
public CloudaccountMaas(string name, CloudaccountMaasArgs args, CustomResourceOptions? opts = null)
public CloudaccountMaas(String name, CloudaccountMaasArgs args)
public CloudaccountMaas(String name, CloudaccountMaasArgs args, CustomResourceOptions options)
type: spectrocloud:CloudaccountMaas
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 CloudaccountMaasArgs
- 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 CloudaccountMaasArgs
- 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 CloudaccountMaasArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountMaasArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CloudaccountMaasArgs
- 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 cloudaccountMaasResource = new Spectrocloud.CloudaccountMaas("cloudaccountMaasResource", new()
{
MaasApiEndpoint = "string",
MaasApiKey = "string",
PrivateCloudGatewayId = "string",
CloudaccountMaasId = "string",
Context = "string",
Name = "string",
});
example, err := spectrocloud.NewCloudaccountMaas(ctx, "cloudaccountMaasResource", &spectrocloud.CloudaccountMaasArgs{
MaasApiEndpoint: pulumi.String("string"),
MaasApiKey: pulumi.String("string"),
PrivateCloudGatewayId: pulumi.String("string"),
CloudaccountMaasId: pulumi.String("string"),
Context: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cloudaccountMaasResource = new CloudaccountMaas("cloudaccountMaasResource", CloudaccountMaasArgs.builder()
.maasApiEndpoint("string")
.maasApiKey("string")
.privateCloudGatewayId("string")
.cloudaccountMaasId("string")
.context("string")
.name("string")
.build());
cloudaccount_maas_resource = spectrocloud.CloudaccountMaas("cloudaccountMaasResource",
maas_api_endpoint="string",
maas_api_key="string",
private_cloud_gateway_id="string",
cloudaccount_maas_id="string",
context="string",
name="string")
const cloudaccountMaasResource = new spectrocloud.CloudaccountMaas("cloudaccountMaasResource", {
maasApiEndpoint: "string",
maasApiKey: "string",
privateCloudGatewayId: "string",
cloudaccountMaasId: "string",
context: "string",
name: "string",
});
type: spectrocloud:CloudaccountMaas
properties:
cloudaccountMaasId: string
context: string
maasApiEndpoint: string
maasApiKey: string
name: string
privateCloudGatewayId: string
CloudaccountMaas 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 CloudaccountMaas resource accepts the following input properties:
- Maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- Maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- Cloudaccount
Maas stringId - The ID of this resource.
- Context string
- The context of the MAAS configuration. 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 MAAS cloud account.
- Maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- Maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- Cloudaccount
Maas stringId - The ID of this resource.
- Context string
- The context of the MAAS configuration. 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 MAAS cloud account.
- maas
Api StringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api StringKey - API key that is used to connect to the MAAS cloud.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas StringId - The ID of this resource.
- context String
- The context of the MAAS configuration. 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 MAAS cloud account.
- maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas stringId - The ID of this resource.
- context string
- The context of the MAAS configuration. 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 MAAS cloud account.
- maas_
api_ strendpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas_
api_ strkey - API key that is used to connect to the MAAS cloud.
- private_
cloud_ strgateway_ id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount_
maas_ strid - The ID of this resource.
- context str
- The context of the MAAS configuration. 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 MAAS cloud account.
- maas
Api StringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api StringKey - API key that is used to connect to the MAAS cloud.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas StringId - The ID of this resource.
- context String
- The context of the MAAS configuration. 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 MAAS cloud account.
Outputs
All input properties are implicitly available as output properties. Additionally, the CloudaccountMaas 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 CloudaccountMaas Resource
Get an existing CloudaccountMaas 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?: CloudaccountMaasState, opts?: CustomResourceOptions): CloudaccountMaas
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cloudaccount_maas_id: Optional[str] = None,
context: Optional[str] = None,
maas_api_endpoint: Optional[str] = None,
maas_api_key: Optional[str] = None,
name: Optional[str] = None,
private_cloud_gateway_id: Optional[str] = None) -> CloudaccountMaas
func GetCloudaccountMaas(ctx *Context, name string, id IDInput, state *CloudaccountMaasState, opts ...ResourceOption) (*CloudaccountMaas, error)
public static CloudaccountMaas Get(string name, Input<string> id, CloudaccountMaasState? state, CustomResourceOptions? opts = null)
public static CloudaccountMaas get(String name, Output<String> id, CloudaccountMaasState state, CustomResourceOptions options)
resources: _: type: spectrocloud:CloudaccountMaas 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
Maas stringId - The ID of this resource.
- Context string
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- Maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- Name string
- Name of the MAAS cloud account.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- Cloudaccount
Maas stringId - The ID of this resource.
- Context string
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- Maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- Name string
- Name of the MAAS cloud account.
- Private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas StringId - The ID of this resource.
- context String
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - maas
Api StringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api StringKey - API key that is used to connect to the MAAS cloud.
- name String
- Name of the MAAS cloud account.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas stringId - The ID of this resource.
- context string
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - maas
Api stringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api stringKey - API key that is used to connect to the MAAS cloud.
- name string
- Name of the MAAS cloud account.
- private
Cloud stringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount_
maas_ strid - The ID of this resource.
- context str
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - maas_
api_ strendpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas_
api_ strkey - API key that is used to connect to the MAAS cloud.
- name str
- Name of the MAAS cloud account.
- private_
cloud_ strgateway_ id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
- cloudaccount
Maas StringId - The ID of this resource.
- context String
- The context of the MAAS configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - maas
Api StringEndpoint - Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
- maas
Api StringKey - API key that is used to connect to the MAAS cloud.
- name String
- Name of the MAAS cloud account.
- private
Cloud StringGateway Id - ID of the private cloud gateway that is used to connect to the MAAS cloud.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.