Viewing docs for Harbor v3.10.21
published on Monday, Jun 30, 2025 by Pulumiverse
published on Monday, Jun 30, 2025 by Pulumiverse
Harbor
I want to use the Pulumi Harbor package (harbor) in my project.
## Provider details
- Package: harbor
- Version: v3.10.21
- Publisher: Pulumiverse
- Source: pulumi
- Repository: https://github.com/pulumiverse/pulumi-harbor
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/harbor/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/harbor/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/harbor/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumiverse/harbor/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Harbor v3.10.21
published on Monday, Jun 30, 2025 by Pulumiverse
published on Monday, Jun 30, 2025 by Pulumiverse
The Harbor provider for Pulumi can be used to provision any of the resources available with Harbor.
Example
import * as harbor from '@pulumiverse/harbor';
let registry = new harbor.Registry('registry', {
providerName: "docker-hub",
endpointUrl: "https://hub.docker.com",
name: "pulumi-harbor"
});
let project = new harbor.Project('project', {
name: "pulumi-harbor",
registryId: registry.registryId,
public: "true",
});
import pulumiverse_harbor as harbor
import pulumi
registry = harbor.Registry("registry", name="pulumi-harbor",
endpoint_url="https://harbor.pulumi.com",
provider_name="docker-hub")
project = harbor.Project("project", name="pulumi-harbor",
registry_id=registry.registry_id,
public="true")
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 {
registry, err := harbor.NewRegistry(ctx, "registry", &harbor.RegistryArgs{
ProviderName: pulumi.String("docker-hub"),
EndpointUrl: pulumi.String("https://hub.docker.com"),
Name: pulumi.String("pulumi-harbor"),
})
if err != nil {
return err
}
_, err = harbor.NewProject(ctx, "project", &harbor.ProjectArgs{
Name: pulumi.String("pulumi-harbor"),
Public: pulumi.String("true"),
RegistryId: registry.RegistryId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using Pulumi;
using Pulumiverse.Harbor;
return await Deployment.RunAsync(() =>
{
var registry = new Registry("registry", new RegistryArgs
{
ProviderName= "docker-hub",
EndpointUrl="https://hub.docker.com",
Name= "pulumi-harbor",
});
var project = new Project("project", new ProjectArgs
{
RegistryId= registry.RegistryId,
Name= "pulumi-harbor",
Public= "true"
});
});
Viewing docs for Harbor v3.10.21
published on Monday, Jun 30, 2025 by Pulumiverse
published on Monday, Jun 30, 2025 by Pulumiverse