hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
hsdp.getDockerRepository
Explore with Pulumi AI
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software
Retrieves information on a HSDP Docker repository
This resource only works when
HSDP_UAA_USERNAMEandHSDP_UAA_PASSWORDvalues matching provider arguments are set
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hsdp from "@pulumi/hsdp";
const apps = hsdp.getDockerNamespace({
    name: "apps",
});
const caddy = apps.then(apps => hsdp.getDockerRepository({
    namespaceId: apps.id,
    name: "caddy",
}));
export const tags = caddy.then(caddy => caddy.tags);
export const caddyLatestImage = Promise.all([caddy, caddy]).then(([caddy, caddy1]) => `${caddy.fullName}:${caddy1.latestTag}`);
import pulumi
import pulumi_hsdp as hsdp
apps = hsdp.get_docker_namespace(name="apps")
caddy = hsdp.get_docker_repository(namespace_id=apps.id,
    name="caddy")
pulumi.export("tags", caddy.tags)
pulumi.export("caddyLatestImage", f"{caddy.full_name}:{caddy.latest_tag}")
package main
import (
	"fmt"
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		apps, err := hsdp.LookupDockerNamespace(ctx, &hsdp.LookupDockerNamespaceArgs{
			Name: "apps",
		}, nil)
		if err != nil {
			return err
		}
		caddy, err := hsdp.LookupDockerRepository(ctx, &hsdp.LookupDockerRepositoryArgs{
			NamespaceId: apps.Id,
			Name:        "caddy",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("tags", caddy.Tags)
		ctx.Export("caddyLatestImage", pulumi.Sprintf("%v:%v", caddy.FullName, caddy.LatestTag))
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Hsdp = Pulumi.Hsdp;
return await Deployment.RunAsync(() => 
{
    var apps = Hsdp.GetDockerNamespace.Invoke(new()
    {
        Name = "apps",
    });
    var caddy = Hsdp.GetDockerRepository.Invoke(new()
    {
        NamespaceId = apps.Apply(getDockerNamespaceResult => getDockerNamespaceResult.Id),
        Name = "caddy",
    });
    return new Dictionary<string, object?>
    {
        ["tags"] = caddy.Apply(getDockerRepositoryResult => getDockerRepositoryResult.Tags),
        ["caddyLatestImage"] = Output.Tuple(caddy, caddy).Apply(values =>
        {
            var caddy = values.Item1;
            var caddy1 = values.Item2;
            return $"{caddy.Apply(getDockerRepositoryResult => getDockerRepositoryResult.FullName)}:{caddy1.LatestTag}";
        }),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hsdp.HsdpFunctions;
import com.pulumi.hsdp.inputs.GetDockerNamespaceArgs;
import com.pulumi.hsdp.inputs.GetDockerRepositoryArgs;
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) {
        final var apps = HsdpFunctions.getDockerNamespace(GetDockerNamespaceArgs.builder()
            .name("apps")
            .build());
        final var caddy = HsdpFunctions.getDockerRepository(GetDockerRepositoryArgs.builder()
            .namespaceId(apps.applyValue(getDockerNamespaceResult -> getDockerNamespaceResult.id()))
            .name("caddy")
            .build());
        ctx.export("tags", caddy.applyValue(getDockerRepositoryResult -> getDockerRepositoryResult.tags()));
        ctx.export("caddyLatestImage", String.format("%s:%s", caddy.applyValue(getDockerRepositoryResult -> getDockerRepositoryResult.fullName()),caddy.applyValue(getDockerRepositoryResult -> getDockerRepositoryResult.latestTag())));
    }
}
variables:
  apps:
    fn::invoke:
      function: hsdp:getDockerNamespace
      arguments:
        name: apps
  caddy:
    fn::invoke:
      function: hsdp:getDockerRepository
      arguments:
        namespaceId: ${apps.id}
        name: caddy
outputs:
  tags: ${caddy.tags}
  caddyLatestImage: ${caddy.fullName}:${caddy.latestTag}
Using getDockerRepository
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 getDockerRepository(args: GetDockerRepositoryArgs, opts?: InvokeOptions): Promise<GetDockerRepositoryResult>
function getDockerRepositoryOutput(args: GetDockerRepositoryOutputArgs, opts?: InvokeOptions): Output<GetDockerRepositoryResult>def get_docker_repository(id: Optional[str] = None,
                          name: Optional[str] = None,
                          namespace_id: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetDockerRepositoryResult
def get_docker_repository_output(id: Optional[pulumi.Input[str]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          namespace_id: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetDockerRepositoryResult]func LookupDockerRepository(ctx *Context, args *LookupDockerRepositoryArgs, opts ...InvokeOption) (*LookupDockerRepositoryResult, error)
func LookupDockerRepositoryOutput(ctx *Context, args *LookupDockerRepositoryOutputArgs, opts ...InvokeOption) LookupDockerRepositoryResultOutput> Note: This function is named LookupDockerRepository in the Go SDK.
public static class GetDockerRepository 
{
    public static Task<GetDockerRepositoryResult> InvokeAsync(GetDockerRepositoryArgs args, InvokeOptions? opts = null)
    public static Output<GetDockerRepositoryResult> Invoke(GetDockerRepositoryInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDockerRepositoryResult> getDockerRepository(GetDockerRepositoryArgs args, InvokeOptions options)
public static Output<GetDockerRepositoryResult> getDockerRepository(GetDockerRepositoryArgs args, InvokeOptions options)
fn::invoke:
  function: hsdp:index/getDockerRepository:getDockerRepository
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
 - Filter users on verified email state
 - Namespace
Id string - The organization users should belong to
 - Id string
 
- Name string
 - Filter users on verified email state
 - Namespace
Id string - The organization users should belong to
 - Id string
 
- name String
 - Filter users on verified email state
 - namespace
Id String - The organization users should belong to
 - id String
 
- name string
 - Filter users on verified email state
 - namespace
Id string - The organization users should belong to
 - id string
 
- name str
 - Filter users on verified email state
 - namespace_
id str - The organization users should belong to
 - id str
 
- name String
 - Filter users on verified email state
 - namespace
Id String - The organization users should belong to
 - id String
 
getDockerRepository Result
The following output properties are available:
- Compressed
Sizes List<double> - The compressed size
 - Full
Description string - A longer description, supporting markdown
 - Full
Name string - The full name to use to pull and push images, includes Docker host and namespace
 - Id string
 - Ids List<double>
 - The ids of the tags
 - Image
Digests List<string> - The SHA256 image digest
 - Image
Ids List<string> - The image ids
 - Latest
Tag string - The latest tag, if available, based on the updated field
 - Name string
 - Namespace
Id string - Num
Pulls List<double> - The pulls per tag
 - Short
Description string - A short description of the repository
 - List<string>
 - The list of tags names
 - Total
Pulls double - The total number of pulls for this repo
 - double
 - Updated
Ats List<string> - The update timestamp
 
- Compressed
Sizes []float64 - The compressed size
 - Full
Description string - A longer description, supporting markdown
 - Full
Name string - The full name to use to pull and push images, includes Docker host and namespace
 - Id string
 - Ids []float64
 - The ids of the tags
 - Image
Digests []string - The SHA256 image digest
 - Image
Ids []string - The image ids
 - Latest
Tag string - The latest tag, if available, based on the updated field
 - Name string
 - Namespace
Id string - Num
Pulls []float64 - The pulls per tag
 - Short
Description string - A short description of the repository
 - []string
 - The list of tags names
 - Total
Pulls float64 - The total number of pulls for this repo
 - float64
 - Updated
Ats []string - The update timestamp
 
- compressed
Sizes List<Double> - The compressed size
 - full
Description String - A longer description, supporting markdown
 - full
Name String - The full name to use to pull and push images, includes Docker host and namespace
 - id String
 - ids List<Double>
 - The ids of the tags
 - image
Digests List<String> - The SHA256 image digest
 - image
Ids List<String> - The image ids
 - latest
Tag String - The latest tag, if available, based on the updated field
 - name String
 - namespace
Id String - num
Pulls List<Double> - The pulls per tag
 - short
Description String - A short description of the repository
 - List<String>
 - The list of tags names
 - total
Pulls Double - The total number of pulls for this repo
 - Double
 - updated
Ats List<String> - The update timestamp
 
- compressed
Sizes number[] - The compressed size
 - full
Description string - A longer description, supporting markdown
 - full
Name string - The full name to use to pull and push images, includes Docker host and namespace
 - id string
 - ids number[]
 - The ids of the tags
 - image
Digests string[] - The SHA256 image digest
 - image
Ids string[] - The image ids
 - latest
Tag string - The latest tag, if available, based on the updated field
 - name string
 - namespace
Id string - num
Pulls number[] - The pulls per tag
 - short
Description string - A short description of the repository
 - string[]
 - The list of tags names
 - total
Pulls number - The total number of pulls for this repo
 - number
 - updated
Ats string[] - The update timestamp
 
- compressed_
sizes Sequence[float] - The compressed size
 - full_
description str - A longer description, supporting markdown
 - full_
name str - The full name to use to pull and push images, includes Docker host and namespace
 - id str
 - ids Sequence[float]
 - The ids of the tags
 - image_
digests Sequence[str] - The SHA256 image digest
 - image_
ids Sequence[str] - The image ids
 - latest_
tag str - The latest tag, if available, based on the updated field
 - name str
 - namespace_
id str - num_
pulls Sequence[float] - The pulls per tag
 - short_
description str - A short description of the repository
 - Sequence[str]
 - The list of tags names
 - total_
pulls float - The total number of pulls for this repo
 - float
 - updated_
ats Sequence[str] - The update timestamp
 
- compressed
Sizes List<Number> - The compressed size
 - full
Description String - A longer description, supporting markdown
 - full
Name String - The full name to use to pull and push images, includes Docker host and namespace
 - id String
 - ids List<Number>
 - The ids of the tags
 - image
Digests List<String> - The SHA256 image digest
 - image
Ids List<String> - The image ids
 - latest
Tag String - The latest tag, if available, based on the updated field
 - name String
 - namespace
Id String - num
Pulls List<Number> - The pulls per tag
 - short
Description String - A short description of the repository
 - List<String>
 - The list of tags names
 - total
Pulls Number - The total number of pulls for this repo
 - Number
 - updated
Ats List<String> - The update timestamp
 
Package Details
- Repository
 - hsdp philips-software/terraform-provider-hsdp
 - License
 - Notes
 - This Pulumi package is based on the 
hsdpTerraform Provider. 
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software