Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Use this data source to retrieve information about a GitHub organization custom property.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const environment = github.getOrganizationCustomProperties({
propertyName: "environment",
});
import pulumi
import pulumi_github as github
environment = github.get_organization_custom_properties(property_name="environment")
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.LookupOrganizationCustomProperties(ctx, &github.LookupOrganizationCustomPropertiesArgs{
PropertyName: "environment",
}, 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 environment = Github.GetOrganizationCustomProperties.Invoke(new()
{
PropertyName = "environment",
});
});
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.GetOrganizationCustomPropertiesArgs;
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 environment = GithubFunctions.getOrganizationCustomProperties(GetOrganizationCustomPropertiesArgs.builder()
.propertyName("environment")
.build());
}
}
variables:
environment:
fn::invoke:
function: github:getOrganizationCustomProperties
arguments:
propertyName: environment
Using getOrganizationCustomProperties
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 getOrganizationCustomProperties(args: GetOrganizationCustomPropertiesArgs, opts?: InvokeOptions): Promise<GetOrganizationCustomPropertiesResult>
function getOrganizationCustomPropertiesOutput(args: GetOrganizationCustomPropertiesOutputArgs, opts?: InvokeOptions): Output<GetOrganizationCustomPropertiesResult>def get_organization_custom_properties(allowed_values: Optional[Sequence[str]] = None,
default_value: Optional[str] = None,
description: Optional[str] = None,
property_name: Optional[str] = None,
required: Optional[bool] = None,
value_type: Optional[str] = None,
values_editable_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationCustomPropertiesResult
def get_organization_custom_properties_output(allowed_values: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
default_value: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
property_name: Optional[pulumi.Input[str]] = None,
required: Optional[pulumi.Input[bool]] = None,
value_type: Optional[pulumi.Input[str]] = None,
values_editable_by: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationCustomPropertiesResult]func LookupOrganizationCustomProperties(ctx *Context, args *LookupOrganizationCustomPropertiesArgs, opts ...InvokeOption) (*LookupOrganizationCustomPropertiesResult, error)
func LookupOrganizationCustomPropertiesOutput(ctx *Context, args *LookupOrganizationCustomPropertiesOutputArgs, opts ...InvokeOption) LookupOrganizationCustomPropertiesResultOutput> Note: This function is named LookupOrganizationCustomProperties in the Go SDK.
public static class GetOrganizationCustomProperties
{
public static Task<GetOrganizationCustomPropertiesResult> InvokeAsync(GetOrganizationCustomPropertiesArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationCustomPropertiesResult> Invoke(GetOrganizationCustomPropertiesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrganizationCustomPropertiesResult> getOrganizationCustomProperties(GetOrganizationCustomPropertiesArgs args, InvokeOptions options)
public static Output<GetOrganizationCustomPropertiesResult> getOrganizationCustomProperties(GetOrganizationCustomPropertiesArgs args, InvokeOptions options)
fn::invoke:
function: github:index/getOrganizationCustomProperties:getOrganizationCustomProperties
arguments:
# arguments dictionaryThe following arguments are supported:
- Property
Name string - The name of the custom property to retrieve.
- Allowed
Values List<string> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - Default
Value string - The default value of the custom property.
- Description string
- The description of the custom property.
- Required bool
- Whether the custom property is required.
- Value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - Values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
- Property
Name string - The name of the custom property to retrieve.
- Allowed
Values []string - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - Default
Value string - The default value of the custom property.
- Description string
- The description of the custom property.
- Required bool
- Whether the custom property is required.
- Value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - Values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
- property
Name String - The name of the custom property to retrieve.
- allowed
Values List<String> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value String - The default value of the custom property.
- description String
- The description of the custom property.
- required Boolean
- Whether the custom property is required.
- value
Type String - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - values
Editable StringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
- property
Name string - The name of the custom property to retrieve.
- allowed
Values string[] - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value string - The default value of the custom property.
- description string
- The description of the custom property.
- required boolean
- Whether the custom property is required.
- value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
- property_
name str - The name of the custom property to retrieve.
- allowed_
values Sequence[str] - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default_
value str - The default value of the custom property.
- description str
- The description of the custom property.
- required bool
- Whether the custom property is required.
- value_
type str - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - values_
editable_ strby - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
- property
Name String - The name of the custom property to retrieve.
- allowed
Values List<String> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value String - The default value of the custom property.
- description String
- The description of the custom property.
- required Boolean
- Whether the custom property is required.
- value
Type String - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false. - values
Editable StringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors.
getOrganizationCustomProperties Result
The following output properties are available:
- Allowed
Values List<string> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - Default
Value string - The default value of the custom property.
- Description string
- The description of the custom property.
- Id string
- The provider-assigned unique ID for this managed resource.
- Property
Name string - The name of the custom property.
- Values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - Required bool
- Whether the custom property is required.
- Value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
- Allowed
Values []string - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - Default
Value string - The default value of the custom property.
- Description string
- The description of the custom property.
- Id string
- The provider-assigned unique ID for this managed resource.
- Property
Name string - The name of the custom property.
- Values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - Required bool
- Whether the custom property is required.
- Value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
- allowed
Values List<String> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value String - The default value of the custom property.
- description String
- The description of the custom property.
- id String
- The provider-assigned unique ID for this managed resource.
- property
Name String - The name of the custom property.
- values
Editable StringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - required Boolean
- Whether the custom property is required.
- value
Type String - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
- allowed
Values string[] - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value string - The default value of the custom property.
- description string
- The description of the custom property.
- id string
- The provider-assigned unique ID for this managed resource.
- property
Name string - The name of the custom property.
- values
Editable stringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - required boolean
- Whether the custom property is required.
- value
Type string - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
- allowed_
values Sequence[str] - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default_
value str - The default value of the custom property.
- description str
- The description of the custom property.
- id str
- The provider-assigned unique ID for this managed resource.
- property_
name str - The name of the custom property.
- values_
editable_ strby - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - required bool
- Whether the custom property is required.
- value_
type str - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
- allowed
Values List<String> - List of allowed values for the custom property. Only populated when
value_typeissingle_selectormulti_select. - default
Value String - The default value of the custom property.
- description String
- The description of the custom property.
- id String
- The provider-assigned unique ID for this managed resource.
- property
Name String - The name of the custom property.
- values
Editable StringBy - Who can edit the values of the custom property. Can be one of
org_actorsororg_and_repo_actors. - required Boolean
- Whether the custom property is required.
- value
Type String - The type of the custom property. Can be one of
string,single_select,multi_select, ortrue_false.
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
