1. Packages
  2. GitHub
  3. API Docs
  4. getActionsEnvironmentVariables
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

github.getActionsEnvironmentVariables

Explore with Pulumi AI

github logo
GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi

    Use this data source to retrieve the list of variables of the repository environment.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = github.getActionsEnvironmentVariables({
        environment: "exampleEnvironment",
        name: "exampleRepo",
    });
    
    import pulumi
    import pulumi_github as github
    
    example = github.get_actions_environment_variables(environment="exampleEnvironment",
        name="exampleRepo")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.GetActionsEnvironmentVariables(ctx, &github.GetActionsEnvironmentVariablesArgs{
    			Environment: "exampleEnvironment",
    			Name:        pulumi.StringRef("exampleRepo"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Github.GetActionsEnvironmentVariables.Invoke(new()
        {
            Environment = "exampleEnvironment",
            Name = "exampleRepo",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.GithubFunctions;
    import com.pulumi.github.inputs.GetActionsEnvironmentVariablesArgs;
    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 example = GithubFunctions.getActionsEnvironmentVariables(GetActionsEnvironmentVariablesArgs.builder()
                .environment("exampleEnvironment")
                .name("exampleRepo")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: github:getActionsEnvironmentVariables
          Arguments:
            environment: exampleEnvironment
            name: exampleRepo
    

    Using getActionsEnvironmentVariables

    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 getActionsEnvironmentVariables(args: GetActionsEnvironmentVariablesArgs, opts?: InvokeOptions): Promise<GetActionsEnvironmentVariablesResult>
    function getActionsEnvironmentVariablesOutput(args: GetActionsEnvironmentVariablesOutputArgs, opts?: InvokeOptions): Output<GetActionsEnvironmentVariablesResult>
    def get_actions_environment_variables(environment: Optional[str] = None,
                                          full_name: Optional[str] = None,
                                          name: Optional[str] = None,
                                          opts: Optional[InvokeOptions] = None) -> GetActionsEnvironmentVariablesResult
    def get_actions_environment_variables_output(environment: Optional[pulumi.Input[str]] = None,
                                          full_name: Optional[pulumi.Input[str]] = None,
                                          name: Optional[pulumi.Input[str]] = None,
                                          opts: Optional[InvokeOptions] = None) -> Output[GetActionsEnvironmentVariablesResult]
    func GetActionsEnvironmentVariables(ctx *Context, args *GetActionsEnvironmentVariablesArgs, opts ...InvokeOption) (*GetActionsEnvironmentVariablesResult, error)
    func GetActionsEnvironmentVariablesOutput(ctx *Context, args *GetActionsEnvironmentVariablesOutputArgs, opts ...InvokeOption) GetActionsEnvironmentVariablesResultOutput

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

    public static class GetActionsEnvironmentVariables 
    {
        public static Task<GetActionsEnvironmentVariablesResult> InvokeAsync(GetActionsEnvironmentVariablesArgs args, InvokeOptions? opts = null)
        public static Output<GetActionsEnvironmentVariablesResult> Invoke(GetActionsEnvironmentVariablesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetActionsEnvironmentVariablesResult> getActionsEnvironmentVariables(GetActionsEnvironmentVariablesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: github:index/getActionsEnvironmentVariables:getActionsEnvironmentVariables
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Environment string
    FullName string
    Name string
    Name of the variable
    Environment string
    FullName string
    Name string
    Name of the variable
    environment String
    fullName String
    name String
    Name of the variable
    environment string
    fullName string
    name string
    Name of the variable
    environment str
    full_name str
    name str
    Name of the variable
    environment String
    fullName String
    name String
    Name of the variable

    getActionsEnvironmentVariables Result

    The following output properties are available:

    Environment string
    FullName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the variable
    Variables List<GetActionsEnvironmentVariablesVariable>
    list of variables for the environment
    Environment string
    FullName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of the variable
    Variables []GetActionsEnvironmentVariablesVariable
    list of variables for the environment
    environment String
    fullName String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the variable
    variables List<GetActionsEnvironmentVariablesVariable>
    list of variables for the environment
    environment string
    fullName string
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of the variable
    variables GetActionsEnvironmentVariablesVariable[]
    list of variables for the environment
    environment str
    full_name str
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of the variable
    variables Sequence[GetActionsEnvironmentVariablesVariable]
    list of variables for the environment
    environment String
    fullName String
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of the variable
    variables List<Property Map>
    list of variables for the environment

    Supporting Types

    GetActionsEnvironmentVariablesVariable

    CreatedAt string
    Timestamp of the variable creation
    Name string
    Name of the variable
    UpdatedAt string
    Timestamp of the variable last update
    Value string
    Value of the variable
    CreatedAt string
    Timestamp of the variable creation
    Name string
    Name of the variable
    UpdatedAt string
    Timestamp of the variable last update
    Value string
    Value of the variable
    createdAt String
    Timestamp of the variable creation
    name String
    Name of the variable
    updatedAt String
    Timestamp of the variable last update
    value String
    Value of the variable
    createdAt string
    Timestamp of the variable creation
    name string
    Name of the variable
    updatedAt string
    Timestamp of the variable last update
    value string
    Value of the variable
    created_at str
    Timestamp of the variable creation
    name str
    Name of the variable
    updated_at str
    Timestamp of the variable last update
    value str
    Value of the variable
    createdAt String
    Timestamp of the variable creation
    name String
    Name of the variable
    updatedAt String
    Timestamp of the variable last update
    value String
    Value of the variable

    Package Details

    Repository
    GitHub pulumi/pulumi-github
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the github Terraform Provider.
    github logo
    GitHub v6.1.0 published on Monday, Mar 11, 2024 by Pulumi