1. Packages
  2. Rancher2
  3. API Docs
  4. getProject
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi

rancher2.getProject

Explore with Pulumi AI

rancher2 logo
Rancher 2 v6.1.0 published on Tuesday, Mar 12, 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, object>
    (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)
    EnableProjectMonitoring bool
    (Computed) Enable built-in project monitoring. Default false (bool)
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels Dictionary<string, object>
    (Computed) Labels of the rancher2 project (map)
    Name string
    PodSecurityPolicyTemplateId string
    (Computed) Default Pod Security Policy ID for the project (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]interface{}
    (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)
    EnableProjectMonitoring bool
    (Computed) Enable built-in project monitoring. Default false (bool)
    Id string
    The provider-assigned unique ID for this managed resource.
    Labels map[string]interface{}
    (Computed) Labels of the rancher2 project (map)
    Name string
    PodSecurityPolicyTemplateId string
    (Computed) Default Pod Security Policy ID for the project (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,Object>
    (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)
    enableProjectMonitoring Boolean
    (Computed) Enable built-in project monitoring. Default false (bool)
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<String,Object>
    (Computed) Labels of the rancher2 project (map)
    name String
    podSecurityPolicyTemplateId String
    (Computed) Default Pod Security Policy ID for the project (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]: any}
    (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)
    enableProjectMonitoring boolean
    (Computed) Enable built-in project monitoring. Default false (bool)
    id string
    The provider-assigned unique ID for this managed resource.
    labels {[key: string]: any}
    (Computed) Labels of the rancher2 project (map)
    name string
    podSecurityPolicyTemplateId string
    (Computed) Default Pod Security Policy ID for the project (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, Any]
    (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)
    enable_project_monitoring bool
    (Computed) Enable built-in project monitoring. Default false (bool)
    id str
    The provider-assigned unique ID for this managed resource.
    labels Mapping[str, Any]
    (Computed) Labels of the rancher2 project (map)
    name str
    pod_security_policy_template_id str
    (Computed) Default Pod Security Policy ID for the project (string)
    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<Any>
    (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)
    enableProjectMonitoring Boolean
    (Computed) Enable built-in project monitoring. Default false (bool)
    id String
    The provider-assigned unique ID for this managed resource.
    labels Map<Any>
    (Computed) Labels of the rancher2 project (map)
    name String
    podSecurityPolicyTemplateId String
    (Computed) Default Pod Security Policy ID for the project (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 v6.1.0 published on Tuesday, Mar 12, 2024 by Pulumi