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.
 - Vulnerability
Scanning 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.
 - 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.
 - vulnerability
Scanning 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.
 - vulnerability
Scanning 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.
 - vulnerability
Scanning 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.
 - 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
[]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.
 - 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<Get
Projects 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.
 - vulnerability
Scanning 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
Get
Projects 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.
 - vulnerability
Scanning 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[Get
Projects 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.
 - vulnerability
Scanning Boolean - If the images will be scanned for vulnerabilities when push to harbor.
 
Supporting Types
GetProjectsProject  
- Name string
 - Project
Id int - Public bool
 - Type string
 - Vulnerability
Scanning bool 
- Name string
 - Project
Id int - Public bool
 - Type string
 - Vulnerability
Scanning bool 
- name String
 - project
Id Integer - public_ Boolean
 - type String
 - vulnerability
Scanning Boolean 
- name string
 - project
Id number - public boolean
 - type string
 - vulnerability
Scanning boolean 
- name str
 - project_
id int - public bool
 - type str
 - vulnerability_
scanning bool 
- name String
 - project
Id Number - public Boolean
 - type String
 - vulnerability
Scanning Boolean 
Package Details
- Repository
 - harbor pulumiverse/pulumi-harbor
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
harborTerraform Provider.