1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. Project
edgecenter 0.7.34 published on Monday, Apr 14, 2025 by edge-center

edgecenter.Project

Explore with Pulumi AI

A project is a structural unit that helps manage and organize cloud resources

Example Usage

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

const projectResourceName = new edgecenter.Project("projectResourceName", {description: "test description"});
Copy
import pulumi
import pulumi_edgecenter as edgecenter

project_resource_name = edgecenter.Project("projectResourceName", description="test description")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := edgecenter.NewProject(ctx, "projectResourceName", &edgecenter.ProjectArgs{
			Description: pulumi.String("test description"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Edgecenter = Pulumi.Edgecenter;

return await Deployment.RunAsync(() => 
{
    var projectResourceName = new Edgecenter.Project("projectResourceName", new()
    {
        Description = "test description",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.edgecenter.Project;
import com.pulumi.edgecenter.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 projectResourceName = new Project("projectResourceName", ProjectArgs.builder()
            .description("test description")
            .build());

    }
}
Copy
resources:
  projectResourceName:
    type: edgecenter:Project
    properties:
      description: test description
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,
            client_id: Optional[float] = None,
            description: Optional[str] = None,
            name: Optional[str] = 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: edgecenter: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 Edgecenter.Project("projectResource", new()
{
    ClientId = 0,
    Description = "string",
    Name = "string",
});
Copy
example, err := edgecenter.NewProject(ctx, "projectResource", &edgecenter.ProjectArgs{
ClientId: pulumi.Float64(0),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var projectResource = new Project("projectResource", ProjectArgs.builder()
    .clientId(0)
    .description("string")
    .name("string")
    .build());
Copy
project_resource = edgecenter.Project("projectResource",
    client_id=0,
    description="string",
    name="string")
Copy
const projectResource = new edgecenter.Project("projectResource", {
    clientId: 0,
    description: "string",
    name: "string",
});
Copy
type: edgecenter:Project
properties:
    clientId: 0
    description: string
    name: 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:

ClientId double
The ID of the client.
Description string
The description of the project.
Name string
Displayed project name.
ClientId float64
The ID of the client.
Description string
The description of the project.
Name string
Displayed project name.
clientId Double
The ID of the client.
description String
The description of the project.
name String
Displayed project name.
clientId number
The ID of the client.
description string
The description of the project.
name string
Displayed project name.
client_id float
The ID of the client.
description str
The description of the project.
name str
Displayed project name.
clientId Number
The ID of the client.
description String
The description of the project.
name String
Displayed project name.

Outputs

All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

CreatedAt string
The datetime of the project creation. It is automatically generated when the project is created.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
The default flag. There is always one default project for each client.
State string
The state of the project.
CreatedAt string
The datetime of the project creation. It is automatically generated when the project is created.
Id string
The provider-assigned unique ID for this managed resource.
IsDefault bool
The default flag. There is always one default project for each client.
State string
The state of the project.
createdAt String
The datetime of the project creation. It is automatically generated when the project is created.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
The default flag. There is always one default project for each client.
state String
The state of the project.
createdAt string
The datetime of the project creation. It is automatically generated when the project is created.
id string
The provider-assigned unique ID for this managed resource.
isDefault boolean
The default flag. There is always one default project for each client.
state string
The state of the project.
created_at str
The datetime of the project creation. It is automatically generated when the project is created.
id str
The provider-assigned unique ID for this managed resource.
is_default bool
The default flag. There is always one default project for each client.
state str
The state of the project.
createdAt String
The datetime of the project creation. It is automatically generated when the project is created.
id String
The provider-assigned unique ID for this managed resource.
isDefault Boolean
The default flag. There is always one default project for each client.
state String
The state of the project.

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,
        client_id: Optional[float] = None,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        is_default: Optional[bool] = None,
        name: Optional[str] = None,
        state: Optional[str] = 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: edgecenter: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:
ClientId double
The ID of the client.
CreatedAt string
The datetime of the project creation. It is automatically generated when the project is created.
Description string
The description of the project.
IsDefault bool
The default flag. There is always one default project for each client.
Name string
Displayed project name.
State string
The state of the project.
ClientId float64
The ID of the client.
CreatedAt string
The datetime of the project creation. It is automatically generated when the project is created.
Description string
The description of the project.
IsDefault bool
The default flag. There is always one default project for each client.
Name string
Displayed project name.
State string
The state of the project.
clientId Double
The ID of the client.
createdAt String
The datetime of the project creation. It is automatically generated when the project is created.
description String
The description of the project.
isDefault Boolean
The default flag. There is always one default project for each client.
name String
Displayed project name.
state String
The state of the project.
clientId number
The ID of the client.
createdAt string
The datetime of the project creation. It is automatically generated when the project is created.
description string
The description of the project.
isDefault boolean
The default flag. There is always one default project for each client.
name string
Displayed project name.
state string
The state of the project.
client_id float
The ID of the client.
created_at str
The datetime of the project creation. It is automatically generated when the project is created.
description str
The description of the project.
is_default bool
The default flag. There is always one default project for each client.
name str
Displayed project name.
state str
The state of the project.
clientId Number
The ID of the client.
createdAt String
The datetime of the project creation. It is automatically generated when the project is created.
description String
The description of the project.
isDefault Boolean
The default flag. There is always one default project for each client.
name String
Displayed project name.
state String
The state of the project.

Import

import using <project_id> format

$ pulumi import edgecenter:index/project:Project project_resource_name 12345
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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