1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. getOnCallRole
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    data "rootly_on_call_role" "my-on-call-role" {
      slug = "my-on-call-role"
    }
    

    Using getOnCallRole

    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 getOnCallRole(args: GetOnCallRoleArgs, opts?: InvokeOptions): Promise<GetOnCallRoleResult>
    function getOnCallRoleOutput(args: GetOnCallRoleOutputArgs, opts?: InvokeOptions): Output<GetOnCallRoleResult>
    def get_on_call_role(created_at: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None,
                         slug: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetOnCallRoleResult
    def get_on_call_role_output(created_at: pulumi.Input[Optional[Mapping[str, pulumi.Input[str]]]] = None,
                         name: pulumi.Input[Optional[str]] = None,
                         slug: pulumi.Input[Optional[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetOnCallRoleResult]
    func LookupOnCallRole(ctx *Context, args *LookupOnCallRoleArgs, opts ...InvokeOption) (*LookupOnCallRoleResult, error)
    func LookupOnCallRoleOutput(ctx *Context, args *LookupOnCallRoleOutputArgs, opts ...InvokeOption) LookupOnCallRoleResultOutput

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

    public static class GetOnCallRole 
    {
        public static Task<GetOnCallRoleResult> InvokeAsync(GetOnCallRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetOnCallRoleResult> Invoke(GetOnCallRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOnCallRoleResult> getOnCallRole(GetOnCallRoleArgs args, InvokeOptions options)
    public static Output<GetOnCallRoleResult> getOnCallRole(GetOnCallRoleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rootly:index/getOnCallRole:getOnCallRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    name string
    slug string
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    name str
    slug str
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String

    getOnCallRole Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt Dictionary<string, string>
    Filter by date range using 'lt' and 'gt'.
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt map[string]string
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String,String>
    Filter by date range using 'lt' and 'gt'.
    id string
    The ID of this resource.
    name string
    slug string
    createdAt {[key: string]: string}
    Filter by date range using 'lt' and 'gt'.
    id str
    The ID of this resource.
    name str
    slug str
    created_at Mapping[str, str]
    Filter by date range using 'lt' and 'gt'.
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String>
    Filter by date range using 'lt' and 'gt'.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.