Entity

URL:
https://<catalog-url>/<serviceName>/RelationalCatalogServer/entities/<entityCatalogId>
Methods:
GET
Version Introduced:
10.5

Description

An entity describes a table or view in a database. This resource provides information about whether the entity has any field of type esriFieldTypeGeometry , which (if any) fields participate in the primary key, and whether any indexes have been defined.

Request Parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json

Example Usage

https://services.myserver.com:port/arcgis/rest/services/<serviceName>/RelationalCatalogServer/entities/<entityCatalogId>?f=json

JSON Response Syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "entity":{
    "hasGeometry": true | false,
    "primaryKeyFields": [], //comma-separated array of field catalog IDs
    "indexInfo": [
      {
         "type": "ATTRIBUTE" | "SPATIAL",
         "fields":[], //comma-separated array of field catalog IDs
         "unique": true | false
      },…
    ]
  }
}

JSON Response Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  "entity":{
    "hasGeometry": true,
    "primaryKeyFields": ["dbo.flight_route.id"],
    "indexInfo": [
      {
         "type": "ATTRIBUTE",
         "fields":["dbo.flight_route.id"],
         "unique": true
      },
      {
         "type": "SPATIAL",
         "fields":["dbo.flight_route.shape_geog"],
         "unique": false
      },
      {
         "type": "SPATIAL",
         "fields":["dbo.flight_route.shape_geom"],
         "unique": false
      }
    ]
  }
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.