1. Packages
  2. Rootly
  3. API Docs
  4. getCustomField
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

rootly.getCustomField

Explore with Pulumi AI

rootly logo
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

    DEPRECATED: Please use form_field data source instead.

    Example Usage

    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var my_custom_field = Output.Create(Rootly.GetCustomField.InvokeAsync(new Rootly.GetCustomFieldArgs
            {
                Slug = "my-custom-field",
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rootly.LookupCustomField(ctx, &GetCustomFieldArgs{
    			Slug: pulumi.StringRef("my-custom-field"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Coming soon!

    import pulumi
    import pulumi_rootly as rootly
    
    my_custom_field = rootly.get_custom_field(slug="my-custom-field")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my_custom_field = pulumi.output(rootly.getCustomField({
        slug: "my-custom-field",
    }));
    

    Coming soon!

    Using getCustomField

    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 getCustomField(args: GetCustomFieldArgs, opts?: InvokeOptions): Promise<GetCustomFieldResult>
    function getCustomFieldOutput(args: GetCustomFieldOutputArgs, opts?: InvokeOptions): Output<GetCustomFieldResult>
    def get_custom_field(created_at: Optional[Mapping[str, Any]] = None,
                         enabled: Optional[bool] = None,
                         kind: Optional[str] = None,
                         label: Optional[str] = None,
                         slug: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetCustomFieldResult
    def get_custom_field_output(created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                         enabled: Optional[pulumi.Input[bool]] = None,
                         kind: Optional[pulumi.Input[str]] = None,
                         label: Optional[pulumi.Input[str]] = None,
                         slug: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetCustomFieldResult]
    func LookupCustomField(ctx *Context, args *LookupCustomFieldArgs, opts ...InvokeOption) (*LookupCustomFieldResult, error)
    func LookupCustomFieldOutput(ctx *Context, args *LookupCustomFieldOutputArgs, opts ...InvokeOption) LookupCustomFieldResultOutput

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

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

    The following arguments are supported:

    CreatedAt Dictionary<string, object>
    Enabled bool
    Kind string
    Label string
    Slug string
    CreatedAt map[string]interface{}
    Enabled bool
    Kind string
    Label string
    Slug string
    createdAt Map<String,Object>
    enabled Boolean
    kind String
    label String
    slug String
    createdAt {[key: string]: any}
    enabled boolean
    kind string
    label string
    slug string
    created_at Mapping[str, Any]
    enabled bool
    kind str
    label str
    slug str
    createdAt Map<Any>
    enabled Boolean
    kind String
    label String
    slug String

    getCustomField Result

    The following output properties are available:

    Id string
    Kind string
    Label string
    Slug string
    CreatedAt Dictionary<string, object>
    Enabled bool
    Id string
    Kind string
    Label string
    Slug string
    CreatedAt map[string]interface{}
    Enabled bool
    id String
    kind String
    label String
    slug String
    createdAt Map<String,Object>
    enabled Boolean
    id string
    kind string
    label string
    slug string
    createdAt {[key: string]: any}
    enabled boolean
    id str
    kind str
    label str
    slug str
    created_at Mapping[str, Any]
    enabled bool
    id String
    kind String
    label String
    slug String
    createdAt Map<Any>
    enabled Boolean

    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.0.1 published on Friday, Jun 2, 2023 by Rootly