GitLab

v4.8.0 published on Friday, Jul 15, 2022 by Pulumi

getInstanceVariables

The gitlab.getInstanceVariables data source allows to retrieve all instance-level CI/CD variables.

Upstream API: GitLab REST API docs

Example Usage

using Pulumi;
using GitLab = Pulumi.GitLab;

class MyStack : Stack
{
    public MyStack()
    {
        var vars = Output.Create(GitLab.GetInstanceVariables.InvokeAsync());
    }

}
package main

import (
	"github.com/pulumi/pulumi-gitlab/sdk/v4/go/gitlab"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := gitlab.GetInstanceVariables(ctx, nil, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var vars = Output.of(GitlabFunctions.getInstanceVariables());

    }
}
import pulumi
import pulumi_gitlab as gitlab

vars = gitlab.get_instance_variables()
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";

const vars = pulumi.output(gitlab.getInstanceVariables());
variables:
  vars:
    Fn::Invoke:
      Function: gitlab:getInstanceVariables
      Arguments: {}

Using getInstanceVariables

function getInstanceVariables(opts?: InvokeOptions): Promise<GetInstanceVariablesResult>
def get_instance_variables(opts: Optional[InvokeOptions] = None) -> GetInstanceVariablesResult
func GetInstanceVariables(ctx *Context, opts ...InvokeOption) (*GetInstanceVariablesResult, error)

> Note: This function is named GetInstanceVariables in the Go SDK.

public static class GetInstanceVariables 
{
    public static Task<GetInstanceVariablesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetInstanceVariablesResult> getInstanceVariables(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: gitlab:index/getInstanceVariables:getInstanceVariables
  Arguments:
    # Arguments dictionary

getInstanceVariables Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Variables List<Pulumi.GitLab.Outputs.GetInstanceVariablesVariable>
Id string

The provider-assigned unique ID for this managed resource.

Variables []GetInstanceVariablesVariable
id String

The provider-assigned unique ID for this managed resource.

variables List<GetInstanceVariablesVariable>
id string

The provider-assigned unique ID for this managed resource.

variables GetInstanceVariablesVariable[]
id str

The provider-assigned unique ID for this managed resource.

variables Sequence[GetInstanceVariablesVariable]
id String

The provider-assigned unique ID for this managed resource.

variables List<Property Map>

Supporting Types

GetInstanceVariablesVariable

Key string
Masked bool
Protected bool
Value string
VariableType string
Key string
Masked bool
Protected bool
Value string
VariableType string
key String
masked Boolean
protected_ Boolean
value String
variableType String
key string
masked boolean
protected boolean
value string
variableType string
key String
masked Boolean
protected Boolean
value String
variableType String

Package Details

Repository
https://github.com/pulumi/pulumi-gitlab
License
Apache-2.0
Notes

This Pulumi package is based on the gitlab Terraform Provider.