1. Packages
  2. Harbor
  3. API Docs
  4. getProject
Harbor v3.10.8 published on Wednesday, Feb 14, 2024 by Pulumiverse

harbor.getProject

Explore with Pulumi AI

harbor logo
Harbor v3.10.8 published on Wednesday, Feb 14, 2024 by Pulumiverse

    Example Usage

    data "harbor_project" "main" {
        name    = "library" 
    }
    
    output "project_id" {
        value = data.harbor_project.main.id
    }
    

    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(name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetProjectResult
    def get_project_output(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: harbor:index/getProject:getProject
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getProject Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ProjectId int
    Public bool
    Type string
    VulnerabilityScanning bool
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ProjectId int
    Public bool
    Type string
    VulnerabilityScanning bool
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    projectId Integer
    public_ Boolean
    type String
    vulnerabilityScanning Boolean
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    projectId number
    public boolean
    type string
    vulnerabilityScanning boolean
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    project_id int
    public bool
    type str
    vulnerability_scanning bool
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    projectId Number
    public Boolean
    type String
    vulnerabilityScanning Boolean

    Package Details

    Repository
    harbor pulumiverse/pulumi-harbor
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harbor Terraform Provider.
    harbor logo
    Harbor v3.10.8 published on Wednesday, Feb 14, 2024 by Pulumiverse