1. Packages
  2. GitHub
  3. API Docs
  4. getActionsOrganizationSecrets
GitHub v6.3.0 published on Monday, Sep 16, 2024 by Pulumi

github.getActionsOrganizationSecrets

Explore with Pulumi AI

github logo
GitHub v6.3.0 published on Monday, Sep 16, 2024 by Pulumi

    Use this data source to retrieve the list of secrets of the organization.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = github.getActionsOrganizationSecrets({});
    
    import pulumi
    import pulumi_github as github
    
    example = github.get_actions_organization_secrets()
    
    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.GetActionsOrganizationSecrets(ctx, nil, 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.GetActionsOrganizationSecrets.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.github.GithubFunctions;
    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.getActionsOrganizationSecrets();
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: github:getActionsOrganizationSecrets
          Arguments: {}
    

    Using getActionsOrganizationSecrets

    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 getActionsOrganizationSecrets(opts?: InvokeOptions): Promise<GetActionsOrganizationSecretsResult>
    function getActionsOrganizationSecretsOutput(opts?: InvokeOptions): Output<GetActionsOrganizationSecretsResult>
    def get_actions_organization_secrets(opts: Optional[InvokeOptions] = None) -> GetActionsOrganizationSecretsResult
    def get_actions_organization_secrets_output(opts: Optional[InvokeOptions] = None) -> Output[GetActionsOrganizationSecretsResult]
    func GetActionsOrganizationSecrets(ctx *Context, opts ...InvokeOption) (*GetActionsOrganizationSecretsResult, error)
    func GetActionsOrganizationSecretsOutput(ctx *Context, opts ...InvokeOption) GetActionsOrganizationSecretsResultOutput

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

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

    getActionsOrganizationSecrets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Secrets List<GetActionsOrganizationSecretsSecret>
    list of secrets for the repository
    Id string
    The provider-assigned unique ID for this managed resource.
    Secrets []GetActionsOrganizationSecretsSecret
    list of secrets for the repository
    id String
    The provider-assigned unique ID for this managed resource.
    secrets List<GetActionsOrganizationSecretsSecret>
    list of secrets for the repository
    id string
    The provider-assigned unique ID for this managed resource.
    secrets GetActionsOrganizationSecretsSecret[]
    list of secrets for the repository
    id str
    The provider-assigned unique ID for this managed resource.
    secrets Sequence[GetActionsOrganizationSecretsSecret]
    list of secrets for the repository
    id String
    The provider-assigned unique ID for this managed resource.
    secrets List<Property Map>
    list of secrets for the repository

    Supporting Types

    GetActionsOrganizationSecretsSecret

    CreatedAt string
    Timestamp of the secret creation
    Name string
    Secret name
    UpdatedAt string
    Timestamp of the secret last update
    Visibility string
    Secret visibility
    CreatedAt string
    Timestamp of the secret creation
    Name string
    Secret name
    UpdatedAt string
    Timestamp of the secret last update
    Visibility string
    Secret visibility
    createdAt String
    Timestamp of the secret creation
    name String
    Secret name
    updatedAt String
    Timestamp of the secret last update
    visibility String
    Secret visibility
    createdAt string
    Timestamp of the secret creation
    name string
    Secret name
    updatedAt string
    Timestamp of the secret last update
    visibility string
    Secret visibility
    created_at str
    Timestamp of the secret creation
    name str
    Secret name
    updated_at str
    Timestamp of the secret last update
    visibility str
    Secret visibility
    createdAt String
    Timestamp of the secret creation
    name String
    Secret name
    updatedAt String
    Timestamp of the secret last update
    visibility String
    Secret visibility

    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.3.0 published on Monday, Sep 16, 2024 by Pulumi