1. Packages
  2. Harbor
  3. API Docs
  4. getProjects
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

harbor.getProjects

Explore with Pulumi AI

Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

Example Usage

data "harbor_projects" "proxycache" {
    type = "ProxyCache"
}

output "proxy_cache_projects" {
    value = data.harbor_projects.proxycache
}
Copy

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>
Copy
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]
Copy
func GetProjects(ctx *Context, args *GetProjectsArgs, opts ...InvokeOption) (*GetProjectsResult, error)
func GetProjectsOutput(ctx *Context, args *GetProjectsOutputArgs, opts ...InvokeOption) GetProjectsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harbor:index/getProjects:getProjects
  arguments:
    # arguments dictionary
Copy

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 This property is required. string
ProjectId This property is required. int
Public This property is required. bool
Type This property is required. string
VulnerabilityScanning This property is required. bool
Name This property is required. string
ProjectId This property is required. int
Public This property is required. bool
Type This property is required. string
VulnerabilityScanning This property is required. bool
name This property is required. String
projectId This property is required. Integer
public_ This property is required. Boolean
type This property is required. String
vulnerabilityScanning This property is required. Boolean
name This property is required. string
projectId This property is required. number
public This property is required. boolean
type This property is required. string
vulnerabilityScanning This property is required. boolean
name This property is required. str
project_id This property is required. int
public This property is required. bool
type This property is required. str
vulnerability_scanning This property is required. bool
name This property is required. String
projectId This property is required. Number
public This property is required. Boolean
type This property is required. String
vulnerabilityScanning This property is required. Boolean

Package Details

Repository
harbor pulumiverse/pulumi-harbor
License
Apache-2.0
Notes
This Pulumi package is based on the harbor Terraform Provider.
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse