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

netbox.getLocation

Explore with Pulumi AI

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

    Using getLocation

    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 getLocation(args: GetLocationArgs, opts?: InvokeOptions): Promise<GetLocationResult>
    function getLocationOutput(args: GetLocationOutputArgs, opts?: InvokeOptions): Output<GetLocationResult>
    def get_location(id: Optional[str] = None,
                     name: Optional[str] = None,
                     parent_id: Optional[float] = None,
                     site_id: Optional[float] = None,
                     slug: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetLocationResult
    def get_location_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     parent_id: Optional[pulumi.Input[float]] = None,
                     site_id: Optional[pulumi.Input[float]] = None,
                     slug: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetLocationResult]
    func LookupLocation(ctx *Context, args *LookupLocationArgs, opts ...InvokeOption) (*LookupLocationResult, error)
    func LookupLocationOutput(ctx *Context, args *LookupLocationOutputArgs, opts ...InvokeOption) LookupLocationResultOutput

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

    public static class GetLocation 
    {
        public static Task<GetLocationResult> InvokeAsync(GetLocationArgs args, InvokeOptions? opts = null)
        public static Output<GetLocationResult> Invoke(GetLocationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
    public static Output<GetLocationResult> getLocation(GetLocationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: netbox:index/getLocation:getLocation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID of this resource.
    Name string
    ParentId double
    SiteId double
    Slug string
    Id string
    The ID of this resource.
    Name string
    ParentId float64
    SiteId float64
    Slug string
    id String
    The ID of this resource.
    name String
    parentId Double
    siteId Double
    slug String
    id string
    The ID of this resource.
    name string
    parentId number
    siteId number
    slug string
    id str
    The ID of this resource.
    name str
    parent_id float
    site_id float
    slug str
    id String
    The ID of this resource.
    name String
    parentId Number
    siteId Number
    slug String

    getLocation Result

    The following output properties are available:

    Description string
    Id string
    The ID of this resource.
    ParentId double
    SiteId double
    Status string
    TenantId double
    Name string
    Slug string
    Description string
    Id string
    The ID of this resource.
    ParentId float64
    SiteId float64
    Status string
    TenantId float64
    Name string
    Slug string
    description String
    id String
    The ID of this resource.
    parentId Double
    siteId Double
    status String
    tenantId Double
    name String
    slug String
    description string
    id string
    The ID of this resource.
    parentId number
    siteId number
    status string
    tenantId number
    name string
    slug string
    description str
    id str
    The ID of this resource.
    parent_id float
    site_id float
    status str
    tenant_id float
    name str
    slug str
    description String
    id String
    The ID of this resource.
    parentId Number
    siteId Number
    status String
    tenantId Number
    name String
    slug String

    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