1. Packages
  2. Akeyless Provider
  3. API Docs
  4. TargetGitlab
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

akeyless.TargetGitlab

Explore with Pulumi AI

akeyless logo
akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community

    Gitlab Target resource

    Create TargetGitlab Resource

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

    Constructor syntax

    new TargetGitlab(name: string, args?: TargetGitlabArgs, opts?: CustomResourceOptions);
    @overload
    def TargetGitlab(resource_name: str,
                     args: Optional[TargetGitlabArgs] = None,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TargetGitlab(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     gitlab_access_token: Optional[str] = None,
                     gitlab_certificate: Optional[str] = None,
                     gitlab_url: Optional[str] = None,
                     key: Optional[str] = None,
                     name: Optional[str] = None,
                     target_gitlab_id: Optional[str] = None)
    func NewTargetGitlab(ctx *Context, name string, args *TargetGitlabArgs, opts ...ResourceOption) (*TargetGitlab, error)
    public TargetGitlab(string name, TargetGitlabArgs? args = null, CustomResourceOptions? opts = null)
    public TargetGitlab(String name, TargetGitlabArgs args)
    public TargetGitlab(String name, TargetGitlabArgs args, CustomResourceOptions options)
    
    type: akeyless:TargetGitlab
    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 TargetGitlabArgs
    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 TargetGitlabArgs
    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 TargetGitlabArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TargetGitlabArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TargetGitlabArgs
    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 targetGitlabResource = new Akeyless.TargetGitlab("targetGitlabResource", new()
    {
        Description = "string",
        GitlabAccessToken = "string",
        GitlabCertificate = "string",
        GitlabUrl = "string",
        Key = "string",
        Name = "string",
        TargetGitlabId = "string",
    });
    
    example, err := akeyless.NewTargetGitlab(ctx, "targetGitlabResource", &akeyless.TargetGitlabArgs{
    	Description:       pulumi.String("string"),
    	GitlabAccessToken: pulumi.String("string"),
    	GitlabCertificate: pulumi.String("string"),
    	GitlabUrl:         pulumi.String("string"),
    	Key:               pulumi.String("string"),
    	Name:              pulumi.String("string"),
    	TargetGitlabId:    pulumi.String("string"),
    })
    
    var targetGitlabResource = new TargetGitlab("targetGitlabResource", TargetGitlabArgs.builder()
        .description("string")
        .gitlabAccessToken("string")
        .gitlabCertificate("string")
        .gitlabUrl("string")
        .key("string")
        .name("string")
        .targetGitlabId("string")
        .build());
    
    target_gitlab_resource = akeyless.TargetGitlab("targetGitlabResource",
        description="string",
        gitlab_access_token="string",
        gitlab_certificate="string",
        gitlab_url="string",
        key="string",
        name="string",
        target_gitlab_id="string")
    
    const targetGitlabResource = new akeyless.TargetGitlab("targetGitlabResource", {
        description: "string",
        gitlabAccessToken: "string",
        gitlabCertificate: "string",
        gitlabUrl: "string",
        key: "string",
        name: "string",
        targetGitlabId: "string",
    });
    
    type: akeyless:TargetGitlab
    properties:
        description: string
        gitlabAccessToken: string
        gitlabCertificate: string
        gitlabUrl: string
        key: string
        name: string
        targetGitlabId: string
    

    TargetGitlab 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 TargetGitlab resource accepts the following input properties:

    Description string
    Description of the object
    GitlabAccessToken string
    Gitlab access token
    GitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    GitlabUrl string
    Gitlab base url
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    Name string
    Target name
    TargetGitlabId string
    The ID of this resource.
    Description string
    Description of the object
    GitlabAccessToken string
    Gitlab access token
    GitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    GitlabUrl string
    Gitlab base url
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    Name string
    Target name
    TargetGitlabId string
    The ID of this resource.
    description String
    Description of the object
    gitlabAccessToken String
    Gitlab access token
    gitlabCertificate String
    Gitlab tls certificate (base64 encoded)
    gitlabUrl String
    Gitlab base url
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name String
    Target name
    targetGitlabId String
    The ID of this resource.
    description string
    Description of the object
    gitlabAccessToken string
    Gitlab access token
    gitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    gitlabUrl string
    Gitlab base url
    key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name string
    Target name
    targetGitlabId string
    The ID of this resource.
    description str
    Description of the object
    gitlab_access_token str
    Gitlab access token
    gitlab_certificate str
    Gitlab tls certificate (base64 encoded)
    gitlab_url str
    Gitlab base url
    key str
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name str
    Target name
    target_gitlab_id str
    The ID of this resource.
    description String
    Description of the object
    gitlabAccessToken String
    Gitlab access token
    gitlabCertificate String
    Gitlab tls certificate (base64 encoded)
    gitlabUrl String
    Gitlab base url
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name String
    Target name
    targetGitlabId String
    The ID of this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TargetGitlab 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 TargetGitlab Resource

    Get an existing TargetGitlab 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?: TargetGitlabState, opts?: CustomResourceOptions): TargetGitlab
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            gitlab_access_token: Optional[str] = None,
            gitlab_certificate: Optional[str] = None,
            gitlab_url: Optional[str] = None,
            key: Optional[str] = None,
            name: Optional[str] = None,
            target_gitlab_id: Optional[str] = None) -> TargetGitlab
    func GetTargetGitlab(ctx *Context, name string, id IDInput, state *TargetGitlabState, opts ...ResourceOption) (*TargetGitlab, error)
    public static TargetGitlab Get(string name, Input<string> id, TargetGitlabState? state, CustomResourceOptions? opts = null)
    public static TargetGitlab get(String name, Output<String> id, TargetGitlabState state, CustomResourceOptions options)
    resources:  _:    type: akeyless:TargetGitlab    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:
    Description string
    Description of the object
    GitlabAccessToken string
    Gitlab access token
    GitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    GitlabUrl string
    Gitlab base url
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    Name string
    Target name
    TargetGitlabId string
    The ID of this resource.
    Description string
    Description of the object
    GitlabAccessToken string
    Gitlab access token
    GitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    GitlabUrl string
    Gitlab base url
    Key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    Name string
    Target name
    TargetGitlabId string
    The ID of this resource.
    description String
    Description of the object
    gitlabAccessToken String
    Gitlab access token
    gitlabCertificate String
    Gitlab tls certificate (base64 encoded)
    gitlabUrl String
    Gitlab base url
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name String
    Target name
    targetGitlabId String
    The ID of this resource.
    description string
    Description of the object
    gitlabAccessToken string
    Gitlab access token
    gitlabCertificate string
    Gitlab tls certificate (base64 encoded)
    gitlabUrl string
    Gitlab base url
    key string
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name string
    Target name
    targetGitlabId string
    The ID of this resource.
    description str
    Description of the object
    gitlab_access_token str
    Gitlab access token
    gitlab_certificate str
    Gitlab tls certificate (base64 encoded)
    gitlab_url str
    Gitlab base url
    key str
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name str
    Target name
    target_gitlab_id str
    The ID of this resource.
    description String
    Description of the object
    gitlabAccessToken String
    Gitlab access token
    gitlabCertificate String
    Gitlab tls certificate (base64 encoded)
    gitlabUrl String
    Gitlab base url
    key String
    Key name. The key will be used to encrypt the target secret value. If key name is not specified, the account default protection key is used.
    name String
    Target name
    targetGitlabId String
    The ID of this resource.

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    akeyless logo
    akeyless 1.9.0 published on Monday, Apr 14, 2025 by akeyless-community