1. Packages
  2. Harbor
  3. API Docs
  4. Project
Harbor v3.9.1 published on Tuesday, May 30, 2023 by Pulumiverse

harbor.Project

Explore with Pulumi AI

harbor logo
Harbor v3.9.1 published on Tuesday, May 30, 2023 by Pulumiverse

    Harbor project example as proxy cache

    import * as pulumi from "@pulumi/pulumi";
    import * as harbor from "@pulumiverse/harbor";
    
    const docker = new harbor.Registry("docker", {
        providerName: "docker-hub",
        endpointUrl: "https://hub.docker.com",
    });
    const main = new harbor.Project("main", {registryId: docker.registryId});
    
    import pulumi
    import pulumiverse_harbor as harbor
    
    docker = harbor.Registry("docker",
        provider_name="docker-hub",
        endpoint_url="https://hub.docker.com")
    main = harbor.Project("main", registry_id=docker.registry_id)
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harbor = Pulumiverse.Harbor;
    
    return await Deployment.RunAsync(() => 
    {
        var docker = new Harbor.Registry("docker", new()
        {
            ProviderName = "docker-hub",
            EndpointUrl = "https://hub.docker.com",
        });
    
        var main = new Harbor.Project("main", new()
        {
            RegistryId = docker.RegistryId,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-harbor/sdk/v3/go/harbor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		docker, err := harbor.NewRegistry(ctx, "docker", &harbor.RegistryArgs{
    			ProviderName: pulumi.String("docker-hub"),
    			EndpointUrl:  pulumi.String("https://hub.docker.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = harbor.NewProject(ctx, "main", &harbor.ProjectArgs{
    			RegistryId: docker.RegistryId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harbor.Registry;
    import com.pulumi.harbor.RegistryArgs;
    import com.pulumi.harbor.Project;
    import com.pulumi.harbor.ProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var docker = new Registry("docker", RegistryArgs.builder()        
                .providerName("docker-hub")
                .endpointUrl("https://hub.docker.com")
                .build());
    
            var main = new Project("main", ProjectArgs.builder()        
                .registryId(docker.registryId())
                .build());
    
        }
    }
    
    resources:
      main:
        type: harbor:Project
        properties:
          registryId: ${docker.registryId}
      docker:
        type: harbor:Registry
        properties:
          providerName: docker-hub
          endpointUrl: https://hub.docker.com
    

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harbor = Pulumiverse.Harbor;
    
    return await Deployment.RunAsync(() => 
    {
        var main = new Harbor.Project("main", new()
        {
            EnableContentTrust = true,
            Public = "false",
            VulnerabilityScanning = true,
        });
    
        // (Optional) Default vale is true. Automatically scan images on push
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-harbor/sdk/v3/go/harbor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := harbor.NewProject(ctx, "main", &harbor.ProjectArgs{
    			EnableContentTrust:    pulumi.Bool(true),
    			Public:                pulumi.String("false"),
    			VulnerabilityScanning: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harbor.Project;
    import com.pulumi.harbor.ProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var main = new Project("main", ProjectArgs.builder()        
                .enableContentTrust(true)
                .public_(false)
                .vulnerabilityScanning(true)
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_harbor as harbor
    
    main = harbor.Project("main",
        enable_content_trust=True,
        public="false",
        vulnerability_scanning=True)
    # (Optional) Default vale is true. Automatically scan images on push
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harbor from "@pulumiverse/harbor";
    
    const main = new harbor.Project("main", {
        enableContentTrust: true,
        "public": "false",
        vulnerabilityScanning: true,
    });
    // (Optional) Default vale is true. Automatically scan images on push
    
    resources:
      main:
        type: harbor:Project
        properties:
          enableContentTrust: true
          public: false
          # (Optional) Default value is false
          vulnerabilityScanning: true
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harbor = Pulumiverse.Harbor;
    
    return await Deployment.RunAsync(() => 
    {
        var docker = new Harbor.Registry("docker", new()
        {
            ProviderName = "docker-hub",
            EndpointUrl = "https://hub.docker.com",
        });
    
        var main = new Harbor.Project("main", new()
        {
            RegistryId = docker.RegistryId,
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-harbor/sdk/v3/go/harbor"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		docker, err := harbor.NewRegistry(ctx, "docker", &harbor.RegistryArgs{
    			ProviderName: pulumi.String("docker-hub"),
    			EndpointUrl:  pulumi.String("https://hub.docker.com"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = harbor.NewProject(ctx, "main", &harbor.ProjectArgs{
    			RegistryId: docker.RegistryId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harbor.Registry;
    import com.pulumi.harbor.RegistryArgs;
    import com.pulumi.harbor.Project;
    import com.pulumi.harbor.ProjectArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var docker = new Registry("docker", RegistryArgs.builder()        
                .providerName("docker-hub")
                .endpointUrl("https://hub.docker.com")
                .build());
    
            var main = new Project("main", ProjectArgs.builder()        
                .registryId(docker.registryId())
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_harbor as harbor
    
    docker = harbor.Registry("docker",
        provider_name="docker-hub",
        endpoint_url="https://hub.docker.com")
    main = harbor.Project("main", registry_id=docker.registry_id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harbor from "@pulumiverse/harbor";
    
    const docker = new harbor.Registry("docker", {
        providerName: "docker-hub",
        endpointUrl: "https://hub.docker.com",
    });
    const main = new harbor.Project("main", {registryId: docker.registryId});
    
    resources:
      main:
        type: harbor:Project
        properties:
          registryId: ${docker.registryId}
      docker:
        type: harbor:Registry
        properties:
          providerName: docker-hub
          endpointUrl: https://hub.docker.com
    

    Create Project Resource

    new Project(name: string, args?: ProjectArgs, opts?: CustomResourceOptions);
    @overload
    def Project(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                cve_allowlists: Optional[Sequence[str]] = None,
                deployment_security: Optional[str] = None,
                enable_content_trust: Optional[bool] = None,
                force_destroy: Optional[bool] = None,
                name: Optional[str] = None,
                public: Optional[str] = None,
                registry_id: Optional[int] = None,
                storage_quota: Optional[int] = None,
                vulnerability_scanning: Optional[bool] = None)
    @overload
    def Project(resource_name: str,
                args: Optional[ProjectArgs] = None,
                opts: Optional[ResourceOptions] = None)
    func NewProject(ctx *Context, name string, args *ProjectArgs, opts ...ResourceOption) (*Project, error)
    public Project(string name, ProjectArgs? args = null, CustomResourceOptions? opts = null)
    public Project(String name, ProjectArgs args)
    public Project(String name, ProjectArgs args, CustomResourceOptions options)
    
    type: harbor:Project
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Project Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Project resource accepts the following input properties:

    CveAllowlists List<string>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    DeploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    EnableContentTrust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    ForceDestroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    Name string

    The name of the project that will be created in harbor.

    Public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    RegistryId int

    To enabled project as Proxy Cache

    StorageQuota int

    The storage quota of the project in GB's

    VulnerabilityScanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    CveAllowlists []string

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    DeploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    EnableContentTrust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    ForceDestroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    Name string

    The name of the project that will be created in harbor.

    Public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    RegistryId int

    To enabled project as Proxy Cache

    StorageQuota int

    The storage quota of the project in GB's

    VulnerabilityScanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists List<String>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity String

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust Boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy Boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name String

    The name of the project that will be created in harbor.

    public_ String

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId Integer

    To enabled project as Proxy Cache

    storageQuota Integer

    The storage quota of the project in GB's

    vulnerabilityScanning Boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists string[]

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name string

    The name of the project that will be created in harbor.

    public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId number

    To enabled project as Proxy Cache

    storageQuota number

    The storage quota of the project in GB's

    vulnerabilityScanning boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cve_allowlists Sequence[str]

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deployment_security str

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enable_content_trust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    force_destroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name str

    The name of the project that will be created in harbor.

    public str

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registry_id int

    To enabled project as Proxy Cache

    storage_quota int

    The storage quota of the project in GB's

    vulnerability_scanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists List<String>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity String

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust Boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy Boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name String

    The name of the project that will be created in harbor.

    public String

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId Number

    To enabled project as Proxy Cache

    storageQuota Number

    The storage quota of the project in GB's

    vulnerabilityScanning Boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Project resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    ProjectId int

    The id of the project with harbor.

    Id string

    The provider-assigned unique ID for this managed resource.

    ProjectId int

    The id of the project with harbor.

    id String

    The provider-assigned unique ID for this managed resource.

    projectId Integer

    The id of the project with harbor.

    id string

    The provider-assigned unique ID for this managed resource.

    projectId number

    The id of the project with harbor.

    id str

    The provider-assigned unique ID for this managed resource.

    project_id int

    The id of the project with harbor.

    id String

    The provider-assigned unique ID for this managed resource.

    projectId Number

    The id of the project with harbor.

    Look up Existing Project Resource

    Get an existing Project resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectState, opts?: CustomResourceOptions): Project
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cve_allowlists: Optional[Sequence[str]] = None,
            deployment_security: Optional[str] = None,
            enable_content_trust: Optional[bool] = None,
            force_destroy: Optional[bool] = None,
            name: Optional[str] = None,
            project_id: Optional[int] = None,
            public: Optional[str] = None,
            registry_id: Optional[int] = None,
            storage_quota: Optional[int] = None,
            vulnerability_scanning: Optional[bool] = None) -> Project
    func GetProject(ctx *Context, name string, id IDInput, state *ProjectState, opts ...ResourceOption) (*Project, error)
    public static Project Get(string name, Input<string> id, ProjectState? state, CustomResourceOptions? opts = null)
    public static Project get(String name, Output<String> id, ProjectState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CveAllowlists List<string>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    DeploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    EnableContentTrust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    ForceDestroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    Name string

    The name of the project that will be created in harbor.

    ProjectId int

    The id of the project with harbor.

    Public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    RegistryId int

    To enabled project as Proxy Cache

    StorageQuota int

    The storage quota of the project in GB's

    VulnerabilityScanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    CveAllowlists []string

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    DeploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    EnableContentTrust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    ForceDestroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    Name string

    The name of the project that will be created in harbor.

    ProjectId int

    The id of the project with harbor.

    Public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    RegistryId int

    To enabled project as Proxy Cache

    StorageQuota int

    The storage quota of the project in GB's

    VulnerabilityScanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists List<String>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity String

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust Boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy Boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name String

    The name of the project that will be created in harbor.

    projectId Integer

    The id of the project with harbor.

    public_ String

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId Integer

    To enabled project as Proxy Cache

    storageQuota Integer

    The storage quota of the project in GB's

    vulnerabilityScanning Boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists string[]

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity string

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name string

    The name of the project that will be created in harbor.

    projectId number

    The id of the project with harbor.

    public string

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId number

    To enabled project as Proxy Cache

    storageQuota number

    The storage quota of the project in GB's

    vulnerabilityScanning boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cve_allowlists Sequence[str]

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deployment_security str

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enable_content_trust bool

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    force_destroy bool

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name str

    The name of the project that will be created in harbor.

    project_id int

    The id of the project with harbor.

    public str

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registry_id int

    To enabled project as Proxy Cache

    storage_quota int

    The storage quota of the project in GB's

    vulnerability_scanning bool

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    cveAllowlists List<String>

    Project allowlist allows vulnerabilities in this list to be ignored in this project when pushing and pulling images. Should be in the format or ["CVE-123", "CVE-145"] or ["CVE-123"]

    deploymentSecurity String

    Prevent deployment of images with vulnerability severity equal or higher than the specified value. Images must be scanned before this takes effect. Possible values: critical, high, medium, low, none. (Default: "" - empty)

    enableContentTrust Boolean

    Enables Content Trust for project. When enabled it queries the embedded docker notary server. Can be set to "true" or "false" (Default: false)

    forceDestroy Boolean

    A boolean that indicates all repositories should be deleted from the project so that the project can be destroyed without error. These repositories are not recoverable.

    name String

    The name of the project that will be created in harbor.

    projectId Number

    The id of the project with harbor.

    public String

    The project will be public accessibility. Can be set to "true" or "false" (Default: false)

    registryId Number

    To enabled project as Proxy Cache

    storageQuota Number

    The storage quota of the project in GB's

    vulnerabilityScanning Boolean

    Images will be scanned for vulnerabilities when push to harbor. Can be set to "true" or "false" (Default: true)

    Import

    Harbor project can be imported using the project id eg, `

     $ pulumi import harbor:index/project:Project main /projects/1
    

    `

    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.9.1 published on Tuesday, May 30, 2023 by Pulumiverse