1. Packages
  2. Gitlab Provider
  3. API Docs
  4. GroupDependencyProxy
GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi

gitlab.GroupDependencyProxy

Explore with Pulumi AI

gitlab logo
GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi

    The gitlab.GroupDependencyProxy resource allows managing the group docker dependency proxy. More than one dependency proxy per group will conflict with each other.

    If you’re looking to manage the project-level package dependency proxy, see the gitlab_project_package_registry_proxy resource instead.

    Upstream API: GitLab GraphQL API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const foo = new gitlab.GroupDependencyProxy("foo", {
        group: "1234",
        enabled: true,
        identity: "newidentity",
        secret: "somesecret",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    foo = gitlab.GroupDependencyProxy("foo",
        group="1234",
        enabled=True,
        identity="newidentity",
        secret="somesecret")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gitlab.NewGroupDependencyProxy(ctx, "foo", &gitlab.GroupDependencyProxyArgs{
    			Group:    pulumi.String("1234"),
    			Enabled:  pulumi.Bool(true),
    			Identity: pulumi.String("newidentity"),
    			Secret:   pulumi.String("somesecret"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new GitLab.GroupDependencyProxy("foo", new()
        {
            Group = "1234",
            Enabled = true,
            Identity = "newidentity",
            Secret = "somesecret",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GroupDependencyProxy;
    import com.pulumi.gitlab.GroupDependencyProxyArgs;
    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 foo = new GroupDependencyProxy("foo", GroupDependencyProxyArgs.builder()
                .group("1234")
                .enabled(true)
                .identity("newidentity")
                .secret("somesecret")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: gitlab:GroupDependencyProxy
        properties:
          group: '1234'
          enabled: true
          identity: newidentity
          secret: somesecret
    

    Create GroupDependencyProxy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GroupDependencyProxy(name: string, args: GroupDependencyProxyArgs, opts?: CustomResourceOptions);
    @overload
    def GroupDependencyProxy(resource_name: str,
                             args: GroupDependencyProxyArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def GroupDependencyProxy(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             group: Optional[str] = None,
                             enabled: Optional[bool] = None,
                             identity: Optional[str] = None,
                             secret: Optional[str] = None)
    func NewGroupDependencyProxy(ctx *Context, name string, args GroupDependencyProxyArgs, opts ...ResourceOption) (*GroupDependencyProxy, error)
    public GroupDependencyProxy(string name, GroupDependencyProxyArgs args, CustomResourceOptions? opts = null)
    public GroupDependencyProxy(String name, GroupDependencyProxyArgs args)
    public GroupDependencyProxy(String name, GroupDependencyProxyArgs args, CustomResourceOptions options)
    
    type: gitlab:GroupDependencyProxy
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GroupDependencyProxyArgs
    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 GroupDependencyProxyArgs
    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 GroupDependencyProxyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GroupDependencyProxyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GroupDependencyProxyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var groupDependencyProxyResource = new GitLab.GroupDependencyProxy("groupDependencyProxyResource", new()
    {
        Group = "string",
        Enabled = false,
        Identity = "string",
        Secret = "string",
    });
    
    example, err := gitlab.NewGroupDependencyProxy(ctx, "groupDependencyProxyResource", &gitlab.GroupDependencyProxyArgs{
    	Group:    pulumi.String("string"),
    	Enabled:  pulumi.Bool(false),
    	Identity: pulumi.String("string"),
    	Secret:   pulumi.String("string"),
    })
    
    var groupDependencyProxyResource = new GroupDependencyProxy("groupDependencyProxyResource", GroupDependencyProxyArgs.builder()
        .group("string")
        .enabled(false)
        .identity("string")
        .secret("string")
        .build());
    
    group_dependency_proxy_resource = gitlab.GroupDependencyProxy("groupDependencyProxyResource",
        group="string",
        enabled=False,
        identity="string",
        secret="string")
    
    const groupDependencyProxyResource = new gitlab.GroupDependencyProxy("groupDependencyProxyResource", {
        group: "string",
        enabled: false,
        identity: "string",
        secret: "string",
    });
    
    type: gitlab:GroupDependencyProxy
    properties:
        enabled: false
        group: string
        identity: string
        secret: string
    

    GroupDependencyProxy Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The GroupDependencyProxy resource accepts the following input properties:

    Group string
    The ID or URL-encoded path of the group.
    Enabled bool
    Indicates whether the proxy is enabled.
    Identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    Secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    Group string
    The ID or URL-encoded path of the group.
    Enabled bool
    Indicates whether the proxy is enabled.
    Identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    Secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    group String
    The ID or URL-encoded path of the group.
    enabled Boolean
    Indicates whether the proxy is enabled.
    identity String
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret String
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    group string
    The ID or URL-encoded path of the group.
    enabled boolean
    Indicates whether the proxy is enabled.
    identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    group str
    The ID or URL-encoded path of the group.
    enabled bool
    Indicates whether the proxy is enabled.
    identity str
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret str
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    group String
    The ID or URL-encoded path of the group.
    enabled Boolean
    Indicates whether the proxy is enabled.
    identity String
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret String
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing GroupDependencyProxy Resource

    Get an existing GroupDependencyProxy 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?: GroupDependencyProxyState, opts?: CustomResourceOptions): GroupDependencyProxy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            enabled: Optional[bool] = None,
            group: Optional[str] = None,
            identity: Optional[str] = None,
            secret: Optional[str] = None) -> GroupDependencyProxy
    func GetGroupDependencyProxy(ctx *Context, name string, id IDInput, state *GroupDependencyProxyState, opts ...ResourceOption) (*GroupDependencyProxy, error)
    public static GroupDependencyProxy Get(string name, Input<string> id, GroupDependencyProxyState? state, CustomResourceOptions? opts = null)
    public static GroupDependencyProxy get(String name, Output<String> id, GroupDependencyProxyState state, CustomResourceOptions options)
    resources:  _:    type: gitlab:GroupDependencyProxy    get:      id: ${id}
    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:
    Enabled bool
    Indicates whether the proxy is enabled.
    Group string
    The ID or URL-encoded path of the group.
    Identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    Secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    Enabled bool
    Indicates whether the proxy is enabled.
    Group string
    The ID or URL-encoded path of the group.
    Identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    Secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    enabled Boolean
    Indicates whether the proxy is enabled.
    group String
    The ID or URL-encoded path of the group.
    identity String
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret String
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    enabled boolean
    Indicates whether the proxy is enabled.
    group string
    The ID or URL-encoded path of the group.
    identity string
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret string
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    enabled bool
    Indicates whether the proxy is enabled.
    group str
    The ID or URL-encoded path of the group.
    identity str
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret str
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.
    enabled Boolean
    Indicates whether the proxy is enabled.
    group String
    The ID or URL-encoded path of the group.
    identity String
    Identity credential used to authenticate with Docker Hub when pulling images. Can be a username (for password or personal access token (PAT)) or organization name (for organization access token (OAT)).
    secret String
    Secret credential used to authenticate with Docker Hub when pulling images. Can be a password, personal access token (PAT), or organization access token (OAT). Cannot be imported.

    Import

    Starting in Terraform v1.5.0 you can use an import block to import gitlab_group_dependency_proxy. For example:

    terraform

    import {

    to = gitlab_group_dependency_proxy.example

    id = “see CLI command below for ID”

    }

    Import using the CLI is supported using the following syntax:

    You can import a group dependency proxy using the group id. e.g. {group-id}

    “secret” will not populate when importing the dependency proxy, but will still

    be required in the configuration.

    $ pulumi import gitlab:index/groupDependencyProxy:GroupDependencyProxy foo 42
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v8.11.0 published on Friday, Apr 18, 2025 by Pulumi