1. Packages
  2. Rootly
  3. API Docs
  4. getCustomFieldOption
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

rootly.getCustomFieldOption

Explore with Pulumi AI

rootly logo
Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly

    DEPRECATED: Please use form_field and form_field_option data sources instead.

    Example Usage

    Coming soon!

    Coming soon!

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rootly.RootlyFunctions;
    import com.pulumi.rootly.inputs.GetCustomFieldOptionArgs;
    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 my-custom-field-option = RootlyFunctions.getCustomFieldOption(GetCustomFieldOptionArgs.builder()
                .slug("my-custom-field-option")
                .build());
    
        }
    }
    

    Coming soon!

    Coming soon!

    variables:
      my-custom-field-option:
        fn::invoke:
          Function: rootly:getCustomFieldOption
          Arguments:
            slug: my-custom-field-option
    

    Using getCustomFieldOption

    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 getCustomFieldOption(args: GetCustomFieldOptionArgs, opts?: InvokeOptions): Promise<GetCustomFieldOptionResult>
    function getCustomFieldOptionOutput(args: GetCustomFieldOptionOutputArgs, opts?: InvokeOptions): Output<GetCustomFieldOptionResult>
    def get_custom_field_option(color: Optional[str] = None,
                                value: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetCustomFieldOptionResult
    def get_custom_field_option_output(color: Optional[pulumi.Input[str]] = None,
                                value: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetCustomFieldOptionResult]
    func LookupCustomFieldOption(ctx *Context, args *LookupCustomFieldOptionArgs, opts ...InvokeOption) (*LookupCustomFieldOptionResult, error)
    func LookupCustomFieldOptionOutput(ctx *Context, args *LookupCustomFieldOptionOutputArgs, opts ...InvokeOption) LookupCustomFieldOptionResultOutput

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

    public static class GetCustomFieldOption 
    {
        public static Task<GetCustomFieldOptionResult> InvokeAsync(GetCustomFieldOptionArgs args, InvokeOptions? opts = null)
        public static Output<GetCustomFieldOptionResult> Invoke(GetCustomFieldOptionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCustomFieldOptionResult> getCustomFieldOption(GetCustomFieldOptionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: rootly:index/getCustomFieldOption:getCustomFieldOption
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Color string
    Value string
    Color string
    Value string
    color String
    value String
    color string
    value string
    color str
    value str
    color String
    value String

    getCustomFieldOption Result

    The following output properties are available:

    Color string
    Id string
    The ID of this resource.
    Value string
    Color string
    Id string
    The ID of this resource.
    Value string
    color String
    id String
    The ID of this resource.
    value String
    color string
    id string
    The ID of this resource.
    value string
    color str
    id str
    The ID of this resource.
    value str
    color String
    id String
    The ID of this resource.
    value String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.5.0 published on Thursday, Apr 25, 2024 by Rootly