1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. getProject
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.getProject

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent project data.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const pr = edgecenter.getProject({
        name: "test",
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    pr = edgecenter.get_project(name="test")
    
    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.LookupProject(ctx, &edgecenter.LookupProjectArgs{
    			Name: pulumi.StringRef("test"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var pr = Edgecenter.GetProject.Invoke(new()
        {
            Name = "test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.EdgecenterFunctions;
    import com.pulumi.edgecenter.inputs.GetProjectArgs;
    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 pr = EdgecenterFunctions.getProject(GetProjectArgs.builder()
                .name("test")
                .build());
    
        }
    }
    
    variables:
      pr:
        fn::invoke:
          function: edgecenter:getProject
          arguments:
            name: test
    

    Using getProject

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
    function getProjectOutput(args: GetProjectOutputArgs, opts?: InvokeOptions): Output<GetProjectResult>
    def get_project(client_id: Optional[float] = None,
                    id: Optional[float] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProjectResult
    def get_project_output(client_id: Optional[pulumi.Input[float]] = None,
                    id: Optional[pulumi.Input[float]] = None,
                    name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetProjectResult]
    func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)
    func LookupProjectOutput(ctx *Context, args *LookupProjectOutputArgs, opts ...InvokeOption) LookupProjectResultOutput

    > Note: This function is named LookupProject in the Go SDK.

    public static class GetProject 
    {
        public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectResult> Invoke(GetProjectInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
    public static Output<GetProjectResult> getProject(GetProjectArgs args, InvokeOptions options)
    
    fn::invoke:
      function: edgecenter:index/getProject:getProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

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

    getProject Result

    The following output properties are available:

    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.
    Id double
    Project ID.
    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.
    Id float64
    Project ID.
    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.
    id Double
    Project ID.
    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.
    id number
    Project ID.
    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.
    id float
    Project ID.
    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.
    id Number
    Project ID.
    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.

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center