Rancher2

Pulumi Official
Package maintained by Pulumi
v3.7.0 published on Wednesday, Apr 20, 2022 by Pulumi

getProject

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

(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

(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

(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

(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
https://github.com/pulumi/pulumi-rancher2
License
Apache-2.0
Notes

This Pulumi package is based on the rancher2 Terraform Provider.