Using GetMetadataObjects to Get All Metadata of a Specified Metadata Type |
The GetMetadataObjects method is typically issued in the SAS namespace to get all metadata objects of a specifed application metadata type. However, the method can also be issued in the REPOS namespace to get repositories.
The following is an example of a GetMetadataObjects request that gets repositories:
<GetMetadataObjects> <Reposid></Reposid> <Type>RepositoryBase</Type> <Objects/> <NS>REPOS</NS> <Flags>0</Flags> <Options/> </GetMetadataObjects>
In the request, note the following:
Specifying a value in the <REPOSID> element is optional. A GetMetadataObjects request that is issued in the REPOS namespace queries the SAS Repository Manager. Any other value entered in the <REPOSID> element is ignored and does not return an error.
The <TYPE> element specifies the RepositoryBase metadata type. RepositoryBase is the valid value for listing repositories. Specifying a metadata type that describes an application metadata object in the REPOS namespace returns an error.
The <NS> element specifies the REPOS namespace.
The <FLAGS> and <OPTIONS> elements are blank. However, with the exception of the OMI_DEPENDENCY_USED_BY and OMI_DEPENDENCY_USES flags, flags and options that are supported in the SAS namespace that get additional properties and filter objects can be specified in the REPOS namespace as well.
Output is returned in the <OBJECTS> element.
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.