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

spectrocloud.Project

Explore with Pulumi AI

Create and manage projects in Palette.

Example Usage

Simple example of a project without any additional configuration.

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

const project = new spectrocloud.Project("project", {});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

project = spectrocloud.Project("project")
Copy
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.NewProject(ctx, "project", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var project = new Spectrocloud.Project("project");

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.Project;
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 project = new Project("project");

    }
}
Copy
resources:
  project:
    type: spectrocloud:Project
Copy

You can also add tags and a description to the project.

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

const project = new spectrocloud.Project("project", {
    description: "This is the primary devoplent environment for team Yellow.",
    tags: [
        "owner:jdoe@emxaple.com",
        "cost-center:12345",
    ],
});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

project = spectrocloud.Project("project",
    description="This is the primary devoplent environment for team Yellow.",
    tags=[
        "owner:jdoe@emxaple.com",
        "cost-center:12345",
    ])
Copy
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.NewProject(ctx, "project", &spectrocloud.ProjectArgs{
			Description: pulumi.String("This is the primary devoplent environment for team Yellow."),
			Tags: pulumi.StringArray{
				pulumi.String("owner:jdoe@emxaple.com"),
				pulumi.String("cost-center:12345"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var project = new Spectrocloud.Project("project", new()
    {
        Description = "This is the primary devoplent environment for team Yellow.",
        Tags = new[]
        {
            "owner:jdoe@emxaple.com",
            "cost-center:12345",
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.Project;
import com.pulumi.spectrocloud.ProjectArgs;
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 project = new Project("project", ProjectArgs.builder()
            .description("This is the primary devoplent environment for team Yellow.")
            .tags(            
                "owner:jdoe@emxaple.com",
                "cost-center:12345")
            .build());

    }
}
Copy
resources:
  project:
    type: spectrocloud:Project
    properties:
      description: This is the primary devoplent environment for team Yellow.
      tags:
        - owner:jdoe@emxaple.com
        - cost-center:12345
Copy

Create Project Resource

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

Constructor syntax

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

@overload
def Project(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            timeouts: Optional[ProjectTimeoutsArgs] = None)
func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
public Project(String name, ProjectArgs args)
public Project(String name, ProjectArgs args, CustomResourceOptions options)
type: spectrocloud:Project
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args ProjectArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ProjectArgs
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 projectResource = new Spectrocloud.Project("projectResource", new()
{
    Description = "string",
    Name = "string",
    ProjectId = "string",
    Tags = new[]
    {
        "string",
    },
    Timeouts = new Spectrocloud.Inputs.ProjectTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Update = "string",
    },
});
Copy
example, err := spectrocloud.NewProject(ctx, "projectResource", &spectrocloud.ProjectArgs{
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
	ProjectId:   pulumi.String("string"),
	Tags: pulumi.StringArray{
		pulumi.String("string"),
	},
	Timeouts: &spectrocloud.ProjectTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
		Update: pulumi.String("string"),
	},
})
Copy
var projectResource = new Project("projectResource", ProjectArgs.builder()
    .description("string")
    .name("string")
    .projectId("string")
    .tags("string")
    .timeouts(ProjectTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
project_resource = spectrocloud.Project("projectResource",
    description="string",
    name="string",
    project_id="string",
    tags=["string"],
    timeouts={
        "create": "string",
        "delete": "string",
        "update": "string",
    })
Copy
const projectResource = new spectrocloud.Project("projectResource", {
    description: "string",
    name: "string",
    projectId: "string",
    tags: ["string"],
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: spectrocloud:Project
properties:
    description: string
    name: string
    projectId: string
    tags:
        - string
    timeouts:
        create: string
        delete: string
        update: string
Copy

Project 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 Project resource accepts the following input properties:

Description string
The description of the project.
Name string
The name of the project.
ProjectId string
The ID of this resource.
Tags List<string>
Assign tags to the project.
Timeouts ProjectTimeouts
Description string
The description of the project.
Name string
The name of the project.
ProjectId string
The ID of this resource.
Tags []string
Assign tags to the project.
Timeouts ProjectTimeoutsArgs
description String
The description of the project.
name String
The name of the project.
projectId String
The ID of this resource.
tags List<String>
Assign tags to the project.
timeouts ProjectTimeouts
description string
The description of the project.
name string
The name of the project.
projectId string
The ID of this resource.
tags string[]
Assign tags to the project.
timeouts ProjectTimeouts
description str
The description of the project.
name str
The name of the project.
project_id str
The ID of this resource.
tags Sequence[str]
Assign tags to the project.
timeouts ProjectTimeoutsArgs
description String
The description of the project.
name String
The name of the project.
projectId String
The ID of this resource.
tags List<String>
Assign tags to the project.
timeouts Property Map

Outputs

All input properties are implicitly available as output properties. Additionally, the Project 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 Project Resource

Get an existing Project 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?: ProjectState, opts?: CustomResourceOptions): Project
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        project_id: Optional[str] = None,
        tags: Optional[Sequence[str]] = None,
        timeouts: Optional[ProjectTimeoutsArgs] = None) -> Project
func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
resources:  _:    type: spectrocloud:Project    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Description string
The description of the project.
Name string
The name of the project.
ProjectId string
The ID of this resource.
Tags List<string>
Assign tags to the project.
Timeouts ProjectTimeouts
Description string
The description of the project.
Name string
The name of the project.
ProjectId string
The ID of this resource.
Tags []string
Assign tags to the project.
Timeouts ProjectTimeoutsArgs
description String
The description of the project.
name String
The name of the project.
projectId String
The ID of this resource.
tags List<String>
Assign tags to the project.
timeouts ProjectTimeouts
description string
The description of the project.
name string
The name of the project.
projectId string
The ID of this resource.
tags string[]
Assign tags to the project.
timeouts ProjectTimeouts
description str
The description of the project.
name str
The name of the project.
project_id str
The ID of this resource.
tags Sequence[str]
Assign tags to the project.
timeouts ProjectTimeoutsArgs
description String
The description of the project.
name String
The name of the project.
projectId String
The ID of this resource.
tags List<String>
Assign tags to the project.
timeouts Property Map

Supporting Types

ProjectTimeouts
, ProjectTimeoutsArgs

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

Package Details

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