1. Packages
  2. Netbox Provider
  3. API Docs
  4. getContactRole
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

netbox.getContactRole

Explore with Pulumi AI

netbox logo
netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger

    Using getContactRole

    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 getContactRole(args: GetContactRoleArgs, opts?: InvokeOptions): Promise<GetContactRoleResult>
    function getContactRoleOutput(args: GetContactRoleOutputArgs, opts?: InvokeOptions): Output<GetContactRoleResult>
    def get_contact_role(id: Optional[str] = None,
                         name: Optional[str] = None,
                         slug: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetContactRoleResult
    def get_contact_role_output(id: Optional[pulumi.Input[str]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         slug: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetContactRoleResult]
    func LookupContactRole(ctx *Context, args *LookupContactRoleArgs, opts ...InvokeOption) (*LookupContactRoleResult, error)
    func LookupContactRoleOutput(ctx *Context, args *LookupContactRoleOutputArgs, opts ...InvokeOption) LookupContactRoleResultOutput

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

    public static class GetContactRole 
    {
        public static Task<GetContactRoleResult> InvokeAsync(GetContactRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetContactRoleResult> Invoke(GetContactRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetContactRoleResult> getContactRole(GetContactRoleArgs args, InvokeOptions options)
    public static Output<GetContactRoleResult> getContactRole(GetContactRoleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: netbox:index/getContactRole:getContactRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of this resource.
    Name string
    At least one of name or slug must be given.
    Slug string
    At least one of name or slug must be given.
    Id string
    The ID of this resource.
    Name string
    At least one of name or slug must be given.
    Slug string
    At least one of name or slug must be given.
    id String
    The ID of this resource.
    name String
    At least one of name or slug must be given.
    slug String
    At least one of name or slug must be given.
    id string
    The ID of this resource.
    name string
    At least one of name or slug must be given.
    slug string
    At least one of name or slug must be given.
    id str
    The ID of this resource.
    name str
    At least one of name or slug must be given.
    slug str
    At least one of name or slug must be given.
    id String
    The ID of this resource.
    name String
    At least one of name or slug must be given.
    slug String
    At least one of name or slug must be given.

    getContactRole Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    At least one of name or slug must be given.
    Slug string
    At least one of name or slug must be given.
    Id string
    The ID of this resource.
    Name string
    At least one of name or slug must be given.
    Slug string
    At least one of name or slug must be given.
    id String
    The ID of this resource.
    name String
    At least one of name or slug must be given.
    slug String
    At least one of name or slug must be given.
    id string
    The ID of this resource.
    name string
    At least one of name or slug must be given.
    slug string
    At least one of name or slug must be given.
    id str
    The ID of this resource.
    name str
    At least one of name or slug must be given.
    slug str
    At least one of name or slug must be given.
    id String
    The ID of this resource.
    name String
    At least one of name or slug must be given.
    slug String
    At least one of name or slug must be given.

    Package Details

    Repository
    netbox e-breuninger/terraform-provider-netbox
    License
    Notes
    This Pulumi package is based on the netbox Terraform Provider.
    netbox logo
    netbox 3.10.0 published on Monday, Apr 14, 2025 by e-breuninger