getItemMetadata

getItemMetadata

getItemMetadata(idstring, requestOptions?IRequestOptions): Promise<any>
Use dark colors for code blocksCopy
       
1
2
3
4
5
6
7
import { getItemMetadata } from "@esri/arcgis-rest-portal";
// get the metadata for the item
getItemMetadata("ae7")
  .then(itemMetadataXml) // XML document as a string
// or with additional request options
getItemMetadata("ae7", { authentication })
  .then(itemMetadataXml) // XML document as a string

Get the standard formal metadata XML file for an item (/info/metadata/metadata.xml)

Parameters
ParameterTypeNotes
id
string

Item Id

requestOptions
IRequestOptions

Options for the request

Returns 
Promise<any>

A Promise that will resolve with the contents of the metadata file for the item as a string.

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