1. Packages
  2. Harbor
  3. API Docs
  4. getProjects
Harbor v3.10.4 published on Sunday, Oct 22, 2023 by Pulumiverse

harbor.getProjects

Explore with Pulumi AI

harbor logo
Harbor v3.10.4 published on Sunday, Oct 22, 2023 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
    Public bool
    Type string
    VulnerabilityScanning bool
    Name string
    Public bool
    Type string
    VulnerabilityScanning bool
    name String
    public_ Boolean
    type String
    vulnerabilityScanning Boolean
    name string
    public boolean
    type string
    vulnerabilityScanning boolean
    name String
    public Boolean
    type String
    vulnerabilityScanning Boolean

    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
    Public bool
    Type string
    VulnerabilityScanning bool
    Id string

    The provider-assigned unique ID for this managed resource.

    Projects []GetProjectsProject
    Name string
    Public bool
    Type string
    VulnerabilityScanning bool
    id String

    The provider-assigned unique ID for this managed resource.

    projects List<GetProjectsProject>
    name String
    public_ Boolean
    type String
    vulnerabilityScanning Boolean
    id string

    The provider-assigned unique ID for this managed resource.

    projects GetProjectsProject[]
    name string
    public boolean
    type string
    vulnerabilityScanning boolean
    id str

    The provider-assigned unique ID for this managed resource.

    projects Sequence[GetProjectsProject]
    name str
    public bool
    type str
    vulnerability_scanning bool
    id String

    The provider-assigned unique ID for this managed resource.

    projects List<Property Map>
    name String
    public Boolean
    type String
    vulnerabilityScanning Boolean

    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.4 published on Sunday, Oct 22, 2023 by Pulumiverse