Previous Page | Next Page

Using GetMetadataObjects to Get All Metadata of a Specified Metadata Type

Introduction to the GetMetadataObjects Method

To get all metadata objects of a specified metadata type, the SAS Open Metadata Interface provides the GetMetadataObjects method. The default behavior of the GetMetadataObjects method is to get general, identifying information for each object of the metadata type specified in the TYPE parameter from the repository specified in the REPOSID parameter. The method supports flags and options that enable you to expand the request to get additional properties for each object, to search additional repositories, and to filter the objects that are returned by the request.

The following is an example of a GetMetadataObjects request that does not contain flags or options. The request gets a list of all objects of the PhysicalTable metadata type in Test repository 1, and their Id= and Name= attributes. The method call is formatted for the INMETADATA parameter of the DoRequest method.

<GetMetadataObjects>
<!--Reposid specifies Test repository 1 -->
 <Reposid>A0000001.A53TPPVI</Reposid>
 <Type>PhysicalTable</Type>
 <Objects/>
 <NS>SAS</NS>
 <Flags>0</Flags>
 <Options/>
</GetMetadataObjects>

In the request, note the following:

A GetMetadataObjects request can be expanded to get additional attributes, to get associated objects, to include subtypes, and to get objects from additional repositories.

A GetMetadataObjects request can be filtered to get only objects that have specific attributes and associations. You can also filter the associated objects that are returned in a request.

For more information, see:

The GetMetadataObjects method is typically used to list application objects in a repository. But, it can also be used to list repositories. For more information, see Using GetMetadataObjects To List Repositories.

Previous Page | Next Page | Top of Page