1. Packages
  2. GitHub
  3. API Docs
  4. getCodespacesOrganizationPublicKey
GitHub v5.19.0 published on Friday, Sep 22, 2023 by Pulumi

github.getCodespacesOrganizationPublicKey

Explore with Pulumi AI

github logo
GitHub v5.19.0 published on Friday, Sep 22, 2023 by Pulumi

    Use this data source to retrieve information about a GitHub Codespaces Organization public key. This data source is required to be used with other GitHub secrets interactions. Note that the provider token must have admin rights to an organization to retrieve it’s Codespaces public key.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Github = Pulumi.Github;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Github.GetCodespacesOrganizationPublicKey.Invoke();
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-github/sdk/v5/go/github"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := github.GetCodespacesOrganizationPublicKey(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    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.getCodespacesOrganizationPublicKey();
    
        }
    }
    
    import pulumi
    import pulumi_github as github
    
    example = github.get_codespaces_organization_public_key()
    
    import * as pulumi from "@pulumi/pulumi";
    import * as github from "@pulumi/github";
    
    const example = github.getCodespacesOrganizationPublicKey({});
    
    variables:
      example:
        fn::invoke:
          Function: github:getCodespacesOrganizationPublicKey
          Arguments: {}
    

    Using getCodespacesOrganizationPublicKey

    function getCodespacesOrganizationPublicKey(opts?: InvokeOptions): Promise<GetCodespacesOrganizationPublicKeyResult>
    def get_codespaces_organization_public_key(opts: Optional[InvokeOptions] = None) -> GetCodespacesOrganizationPublicKeyResult
    func GetCodespacesOrganizationPublicKey(ctx *Context, opts ...InvokeOption) (*GetCodespacesOrganizationPublicKeyResult, error)

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

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

    getCodespacesOrganizationPublicKey Result

    The following output properties are available:

    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    Actual key retrieved.

    KeyId string

    ID of the key that has been retrieved.

    Id string

    The provider-assigned unique ID for this managed resource.

    Key string

    Actual key retrieved.

    KeyId string

    ID of the key that has been retrieved.

    id String

    The provider-assigned unique ID for this managed resource.

    key String

    Actual key retrieved.

    keyId String

    ID of the key that has been retrieved.

    id string

    The provider-assigned unique ID for this managed resource.

    key string

    Actual key retrieved.

    keyId string

    ID of the key that has been retrieved.

    id str

    The provider-assigned unique ID for this managed resource.

    key str

    Actual key retrieved.

    key_id str

    ID of the key that has been retrieved.

    id String

    The provider-assigned unique ID for this managed resource.

    key String

    Actual key retrieved.

    keyId String

    ID of the key that has been retrieved.

    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 v5.19.0 published on Friday, Sep 22, 2023 by Pulumi