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

spectrocloud.CloudaccountMaas

Explore with Pulumi AI

spectrocloud logo
spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud

    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:

    MaasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    MaasApiKey string
    API key that is used to connect to the MAAS cloud.
    PrivateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    CloudaccountMaasId string
    The ID of this resource.
    Context string
    The context of the MAAS configuration. 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 MAAS cloud account.
    MaasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    MaasApiKey string
    API key that is used to connect to the MAAS cloud.
    PrivateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    CloudaccountMaasId string
    The ID of this resource.
    Context string
    The context of the MAAS configuration. 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 MAAS cloud account.
    maasApiEndpoint String
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey String
    API key that is used to connect to the MAAS cloud.
    privateCloudGatewayId String
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId String
    The ID of this resource.
    context String
    The context of the MAAS configuration. 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 MAAS cloud account.
    maasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey string
    API key that is used to connect to the MAAS cloud.
    privateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId string
    The ID of this resource.
    context string
    The context of the MAAS configuration. 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 MAAS cloud account.
    maas_api_endpoint str
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maas_api_key str
    API key that is used to connect to the MAAS cloud.
    private_cloud_gateway_id str
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccount_maas_id str
    The ID of this resource.
    context str
    The context of the MAAS configuration. 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 MAAS cloud account.
    maasApiEndpoint String
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey String
    API key that is used to connect to the MAAS cloud.
    privateCloudGatewayId String
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId String
    The ID of this resource.
    context String
    The context of the MAAS configuration. 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 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.
    The following state arguments are supported:
    CloudaccountMaasId string
    The ID of this resource.
    Context string
    The context of the MAAS configuration. 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.
    MaasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    MaasApiKey string
    API key that is used to connect to the MAAS cloud.
    Name string
    Name of the MAAS cloud account.
    PrivateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    CloudaccountMaasId string
    The ID of this resource.
    Context string
    The context of the MAAS configuration. 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.
    MaasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    MaasApiKey string
    API key that is used to connect to the MAAS cloud.
    Name string
    Name of the MAAS cloud account.
    PrivateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId String
    The ID of this resource.
    context String
    The context of the MAAS configuration. 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.
    maasApiEndpoint String
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey String
    API key that is used to connect to the MAAS cloud.
    name String
    Name of the MAAS cloud account.
    privateCloudGatewayId String
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId string
    The ID of this resource.
    context string
    The context of the MAAS configuration. 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.
    maasApiEndpoint string
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey string
    API key that is used to connect to the MAAS cloud.
    name string
    Name of the MAAS cloud account.
    privateCloudGatewayId string
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccount_maas_id str
    The ID of this resource.
    context str
    The context of the MAAS configuration. 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.
    maas_api_endpoint str
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maas_api_key str
    API key that is used to connect to the MAAS cloud.
    name str
    Name of the MAAS cloud account.
    private_cloud_gateway_id str
    ID of the private cloud gateway that is used to connect to the MAAS cloud.
    cloudaccountMaasId String
    The ID of this resource.
    context String
    The context of the MAAS configuration. 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.
    maasApiEndpoint String
    Endpoint of the MAAS API that is used to connect to the MAAS cloud. I.e. http://maas:5240/MAAS
    maasApiKey String
    API key that is used to connect to the MAAS cloud.
    name String
    Name of the MAAS cloud account.
    privateCloudGatewayId String
    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.
    spectrocloud logo
    spectrocloud 0.23.5 published on Sunday, Apr 20, 2025 by spectrocloud