Get a resource location

get

/rest/ofscCore/v1/resources/{resourceId}/locations/{locationId}

This operation retrieves the details of the specified resource location.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : Resource Location
Type: object
Title: Resource Location
The schema of the response body object for this operation.
Show Source
  • Title: Address
    The address of the resource.
  • Title: City
    The city in which the address is located.
  • Title: Country
    The country in which the address is located.
  • Title: Label
    The unique label of the resource location.
  • Title: Latitude
    Minimum Value: -90
    Maximum Value: 90
    The geographic coordinates of the resource location.
  • Title: Location ID
    The unique identifier of the resource location.
  • Title: Longitude
    Minimum Value: -180
    Maximum Value: 180
    The geographic coordinates of the resource location.
  • Title: Postal Code
    The postal code of the resource location.
  • Title: Location is private
    Default Value: false
    Indicates whether the location is a resource private location.
  • Title: State
    The state in which the address is located.
  • Title: Status
    The status of the resource location.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Show Source
Back to Top

Examples

The following example shows how to get resource location for resources by submitting a GET request on the REST resource.

Example of Request Header

The following shows an example of the request header.

GET /rest/ofscCore/v1/resources/44035/locations/3 HTTP/1.0
Authorization: Basic c29hcEB5YW1hdG86MQ==
Host: <instance_name>.fs.ocs.oraclecloud.com
Accept: */*

Example of Response Header

The following shows an example of the response header.

 
HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Fri, 24 Jul 2015 08:35:48 GMT
Content-Type: application/json; charset=utf-8
Connection: close

Example of Response Body

The following example shows the contents of the response body in JSON format.

  
{
        "label": "Warehouse EU1",
        "postalCode": "32817",
        "city": "Orlando",
        "state": "FL",
        "address": "11350-11398 University Blvd, Orlando",
        "longitude": -81.22226,
        "latitude": 28.59752,
        "status": "manual",
        "locationId": 3,
        "links": [
            {
                "rel": "canonical",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/resources/44008/locations/3"
            },
            {
                "rel": "describedby",
                "href": "https://<instance_name>.fs.ocs.oraclecloud.com/rest/ofscCore/v1/metadata-catalog/resources"
            }
        ]
}
Back to Top