1. Packages
  2. Harbor
  3. API Docs
  4. getProjects
Harbor v3.10.15 published on Saturday, Sep 28, 2024 by Pulumiverse

harbor.getProjects

Explore with Pulumi AI

harbor logo
Harbor v3.10.15 published on Saturday, Sep 28, 2024 by Pulumiverse

    Example Usage

    data "harbor_projects" "proxycache" {
        type = "ProxyCache"
    }
    
    output "proxy_cache_projects" {
        value = data.harbor_projects.proxycache
    }
    

    Using getProjects

    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 getProjects(args: GetProjectsArgs, opts?: InvokeOptions): Promise<GetProjectsResult>
    function getProjectsOutput(args: GetProjectsOutputArgs, opts?: InvokeOptions): Output<GetProjectsResult>
    def get_projects(name: Optional[str] = None,
                     public: Optional[bool] = None,
                     type: Optional[str] = None,
                     vulnerability_scanning: Optional[bool] = None,
                     opts: Optional[InvokeOptions] = None) -> GetProjectsResult
    def get_projects_output(name: Optional[pulumi.Input[str]] = None,
                     public: Optional[pulumi.Input[bool]] = None,
                     type: Optional[pulumi.Input[str]] = None,
                     vulnerability_scanning: Optional[pulumi.Input[bool]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetProjectsResult]
    func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
    func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput

    > Note: This function is named GetProjects in the Go SDK.

    public static class GetProjects 
    {
        public static Task<GetProjectsResult> InvokeAsync(GetProjectsArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectsResult> Invoke(GetProjectsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harbor:index/getProjects:getProjects
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the project.
    Public bool
    If the project has public accessibility.
    Type string
    The type of the project : Project or ProxyCache.
    VulnerabilityScanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    Name string
    The name of the project.
    Public bool
    If the project has public accessibility.
    Type string
    The type of the project : Project or ProxyCache.
    VulnerabilityScanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    name String
    The name of the project.
    public_ Boolean
    If the project has public accessibility.
    type String
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning Boolean
    If the images will be scanned for vulnerabilities when push to harbor.
    name string
    The name of the project.
    public boolean
    If the project has public accessibility.
    type string
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning boolean
    If the images will be scanned for vulnerabilities when push to harbor.
    name str
    The name of the project.
    public bool
    If the project has public accessibility.
    type str
    The type of the project : Project or ProxyCache.
    vulnerability_scanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    name String
    The name of the project.
    public Boolean
    If the project has public accessibility.
    type String
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning Boolean
    If the images will be scanned for vulnerabilities when push to harbor.

    getProjects Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Projects List<Pulumiverse.Harbor.Outputs.GetProjectsProject>
    Name string
    The name of the project.
    Public bool
    If the project has public accessibility.
    Type string
    The type of the project : Project or ProxyCache.
    VulnerabilityScanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    Id string
    The provider-assigned unique ID for this managed resource.
    Projects []GetProjectsProject
    Name string
    The name of the project.
    Public bool
    If the project has public accessibility.
    Type string
    The type of the project : Project or ProxyCache.
    VulnerabilityScanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    id String
    The provider-assigned unique ID for this managed resource.
    projects List<GetProjectsProject>
    name String
    The name of the project.
    public_ Boolean
    If the project has public accessibility.
    type String
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning Boolean
    If the images will be scanned for vulnerabilities when push to harbor.
    id string
    The provider-assigned unique ID for this managed resource.
    projects GetProjectsProject[]
    name string
    The name of the project.
    public boolean
    If the project has public accessibility.
    type string
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning boolean
    If the images will be scanned for vulnerabilities when push to harbor.
    id str
    The provider-assigned unique ID for this managed resource.
    projects Sequence[GetProjectsProject]
    name str
    The name of the project.
    public bool
    If the project has public accessibility.
    type str
    The type of the project : Project or ProxyCache.
    vulnerability_scanning bool
    If the images will be scanned for vulnerabilities when push to harbor.
    id String
    The provider-assigned unique ID for this managed resource.
    projects List<Property Map>
    name String
    The name of the project.
    public Boolean
    If the project has public accessibility.
    type String
    The type of the project : Project or ProxyCache.
    vulnerabilityScanning Boolean
    If the images will be scanned for vulnerabilities when push to harbor.

    Supporting Types

    GetProjectsProject

    name String
    projectId Integer
    public_ Boolean
    type String
    vulnerabilityScanning Boolean
    name string
    projectId number
    public boolean
    type string
    vulnerabilityScanning boolean
    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.15 published on Saturday, Sep 28, 2024 by Pulumiverse