Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getProject

Using getProject

function getProject(args: GetProjectArgs, opts?: InvokeOptions): Promise<GetProjectResult>
def get_project(cluster_id: Optional[str] = None, name: Optional[str] = None, opts: Optional[InvokeOptions] = None) -> GetProjectResult
func LookupProject(ctx *Context, args *LookupProjectArgs, opts ...InvokeOption) (*LookupProjectResult, error)

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

public static class GetProject {
    public static Task<GetProjectResult> InvokeAsync(GetProjectArgs args, InvokeOptions? opts = null)
}

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)

cluster_id str

ID of the Rancher 2 cluster (string)

name str

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 {[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)

Supporting Types

GetProjectContainerResourceLimit

GetProjectResourceQuota

GetProjectResourceQuotaNamespaceDefaultLimit

GetProjectResourceQuotaProjectLimit

Package Details

Repository
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes
This Pulumi package is based on the rancher2 Terraform Provider.