1. Packages
  2. Rancher2
  3. API Docs
  4. getProject
Rancher 2 v7.1.0 published on Friday, Sep 27, 2024 by Pulumi

rancher2.getProject

Explore with Pulumi AI

rancher2 logo
Rancher 2 v7.1.0 published on Friday, Sep 27, 2024 by Pulumi

    Example Usage

    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(cluster_id: Optional[str] = None,
                    name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProjectResult
    def get_project_output(cluster_id: Optional[pulumi.Input[str]] = 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rancher2:index/getProject:getProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    ID of the Rancher 2 cluster (string)
    Name string
    The project name (string)
    ClusterId string
    ID of the Rancher 2 cluster (string)
    Name string
    The project name (string)
    clusterId String
    ID of the Rancher 2 cluster (string)
    name String
    The project name (string)
    clusterId string
    ID of the Rancher 2 cluster (string)
    name string
    The project name (string)
    cluster_id str
    ID of the Rancher 2 cluster (string)
    name str
    The project name (string)
    clusterId String
    ID of the Rancher 2 cluster (string)
    name String
    The project name (string)

    getProject Result

    The following output properties are available:

    Annotations Dictionary<string, string>
    (Computed) Annotations of the rancher2 project (map)
    ClusterId string
    ContainerResourceLimit GetProjectContainerResourceLimit
    (Computed) Default containers resource limits on project (List maxitem:1)
    Description string
    (Computed) The project's description (string)
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels Dictionary<string, string>
    (Computed) Labels of the rancher2 project (map)
    Name string
    ResourceQuota GetProjectResourceQuota
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    Uuid string
    (Computed) UUID of the project as stored by Rancher 2 (string)
    Annotations map[string]string
    (Computed) Annotations of the rancher2 project (map)
    ClusterId string
    ContainerResourceLimit GetProjectContainerResourceLimit
    (Computed) Default containers resource limits on project (List maxitem:1)
    Description string
    (Computed) The project's description (string)
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels map[string]string
    (Computed) Labels of the rancher2 project (map)
    Name string
    ResourceQuota GetProjectResourceQuota
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    Uuid string
    (Computed) UUID of the project as stored by Rancher 2 (string)
    annotations Map<String,String>
    (Computed) Annotations of the rancher2 project (map)
    clusterId String
    containerResourceLimit GetProjectContainerResourceLimit
    (Computed) Default containers resource limits on project (List maxitem:1)
    description String
    (Computed) The project's description (string)
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String,String>
    (Computed) Labels of the rancher2 project (map)
    name String
    resourceQuota GetProjectResourceQuota
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    uuid String
    (Computed) UUID of the project as stored by Rancher 2 (string)
    annotations {[key: string]: string}
    (Computed) Annotations of the rancher2 project (map)
    clusterId string
    containerResourceLimit GetProjectContainerResourceLimit
    (Computed) Default containers resource limits on project (List maxitem:1)
    description string
    (Computed) The project's description (string)
    id string
    The provider-assigned unique ID for this managed resource.
    labels {[key: string]: string}
    (Computed) Labels of the rancher2 project (map)
    name string
    resourceQuota GetProjectResourceQuota
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    uuid string
    (Computed) UUID of the project as stored by Rancher 2 (string)
    annotations Mapping[str, str]
    (Computed) Annotations of the rancher2 project (map)
    cluster_id str
    container_resource_limit GetProjectContainerResourceLimit
    (Computed) Default containers resource limits on project (List maxitem:1)
    description str
    (Computed) The project's description (string)
    id str
    The provider-assigned unique ID for this managed resource.
    labels Mapping[str, str]
    (Computed) Labels of the rancher2 project (map)
    name str
    resource_quota GetProjectResourceQuota
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    uuid str
    (Computed) UUID of the project as stored by Rancher 2 (string)
    annotations Map<String>
    (Computed) Annotations of the rancher2 project (map)
    clusterId String
    containerResourceLimit Property Map
    (Computed) Default containers resource limits on project (List maxitem:1)
    description String
    (Computed) The project's description (string)
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String>
    (Computed) Labels of the rancher2 project (map)
    name String
    resourceQuota Property Map
    (Computed) Resource quota for project. Rancher v2.1.x or higher (list maxitems:1)
    uuid String
    (Computed) UUID of the project as stored by Rancher 2 (string)

    Supporting Types

    GetProjectContainerResourceLimit

    GetProjectResourceQuota

    GetProjectResourceQuotaNamespaceDefaultLimit

    GetProjectResourceQuotaProjectLimit

    Package Details

    Repository
    Rancher2 pulumi/pulumi-rancher2
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rancher2 Terraform Provider.
    rancher2 logo
    Rancher 2 v7.1.0 published on Friday, Sep 27, 2024 by Pulumi