Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse
harbor.getProjects
Explore with Pulumi AI
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)
public static Output<GetProjectsResult> getProjects(GetProjectsArgs args, InvokeOptions options)
fn::invoke:
  function: harbor:index/getProjects:getProjects
  arguments:
    # arguments dictionaryThe 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. Get Projects Project> 
- 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
[]GetProjects Project 
- 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<GetProjects Project> 
- 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
GetProjects Project[] 
- 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[GetProjects Project] 
- 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 int
- Public bool
- Type string
- VulnerabilityScanning bool
- Name string
- ProjectId int
- Public bool
- Type string
- VulnerabilityScanning bool
- name String
- projectId Integer
- public_ Boolean
- type String
- vulnerabilityScanning Boolean
- name string
- projectId number
- public boolean
- type string
- vulnerabilityScanning boolean
- name str
- project_id int
- public bool
- type str
- vulnerability_scanning bool
- 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 harborTerraform Provider.