Description
The datasource resource
represents the database connection properties and accessible datasets (e.g.
tables, views).
Parameters
Parameter |
Details |
f |
Description: The
response format. The default response format is html.
Values:
html | json | pjson |
Example Usage
http://sampleserver10.arcgisonline.com/arcgis/admin/datasources/SedonaProduction?f=pjson
JSON Response Syntax
{
"name" : "<datasource name>"
"properties" :
{
"description" : "",
"server" : "<server name>",
"database" : "<database name>",
"userName" : "<database user>",
"useDatabaseAuthentication" : true | false
},
"tables" : [
"<table1>",
"<table2>",
. . .
]
}
JSON Response Example
{
"name" : "Sedona Production"
"properties" :
{
"description" : "Administrative connection to sedona\sqlexpress",
"server" : "sedona\\sqlexpress2008",
"database" : "Demo",
"userName" : "dbadmin",
"useDatabaseAuthentication" : true
},
"tables" : [
"dbo.CensusBlockGroups_Geographic",
"dbo.ExportFaults",
"dbo.LumberRetailers",
"dbo.Places_Geographic",
"dbo.ProposedSitesList",
"dbo.SoCalDistributorList",
"dbo.States_Geographic",
"dbo.USMajorHighways",
"dbo.WorldCities_Geographic"
]
}