Previous Page | Next Page

Overview of Querying Metadata

Using GetRepositories to Get Repository Access and Status Information

To list the values of the repositories Path=, RepositoryType=, RepositoryFormat=, Access=, PauseState=, and CurrentAccess= attributes, issue the GetRepositories method with the OMI_ALL (1) flag set.

The following is an example of a method call that sets this flag:

<GetRepositories>
   <Repositories/>
<!-- OMI_ALL flag  -->
   <Flags>1</Flags>
   <Options/>
 </GetRepositories>

Here is an example of the output returned by the SAS Metadata Server:

<!-- Using the GETREPOSITORIES method. -->

<GetRepositories>
     <Repositories>
        <Repository  Id="A0000001.A0000001" Name="REPOSMGR" Desc="The Repository Manager" 
DefaultNS="SAS" RepositoryType=" " RepositoryFormat=" 11" 
Access="OMS_FULL" CurrentAccess="OMS_FULL" PauseState=" "  Path="rposmgr"  />
        <Repository  Id="A0000001.A55WR3E8" Name="Foundation" Desc=" " 
DefaultNS="SAS" 
RepositoryType="FOUNDATION " RepositoryFormat=" 11" Access="OMS_FULL" 
CurrentAccess="OMS_FULL" PauseState=" "  Path="C:\SAS\FoundationServers\Lev1\
SASMain\MetadataServer\MetadataRepositories\Foundation"/> 
        <Repository  Id="A0000001.A59XXOKF" Name="Custom" Desc=" " DefaultNS="SAS" 
RepositoryType="CUSTOM" RepositoryFormat=" 11" Access="OMS_READONLY" 
CurrentAccess="OMS_READONLY" PauseState="READONLY"  Path="C:\SAS\FoundationServers\ 
Lev1\SASMain\MetadataServer\MetadataRepositories\Custom"/> 
        <Repository  Id="A0000001.A5NJI601" Name="Custom2" Desc=" " DefaultNS="SAS"
 RepositoryType="CUSTOM"  RepositoryFormat=" 11" Access="OMS_ADMIN" 
CurrentAccess="OMS_ADMIN" PauseState="ADMIN"  Path="C:\SAS\FoundationServers\Lev1\
SASMain\MetadataServer\MetadataRepositories\Custom2"/> 
        <Repository  Id="A0000001.A5J5NMEG" Name="Custom3" Desc=" " DefaultNS="SAS" 
RepositoryType="CUSTOM"  RepositoryFormat=" 11" Access="OMS_OFFLINE" 
CurrentAccess="OMS_OFFLINE" PauseState="OFFLINE"  Path="C:\SAS\FoundationServers\
Lev1\SASMain\MetadataServer\MetadataRepositories\Custom3"/> 
        <Repository  Id="A0000001.A5G61RLY8" Name="Project" Desc=" " DefaultNS="SAS" 
RepositoryType="PROJECT "  RepositoryFormat=" 11" Access="OMS_FULL" 
CurrentAccess="OMS_FULL" PauseState=" "   Path="C:\SAS\FoundationServers\Lev1\
SASMain\MetadataServer\MetadataRepositories\Project"/> 
    </Repositories>
  </GetRepositories>

In the output, note the following:

Here is an example of the output from a GetRepositories method call that was issued on a SAS Metadata Server paused to an ADMIN state:

<!-- Using the GETREPOSITORIES method. -->

<GetRepositories>
     <Repositories>
        <Repository  Id="A0000001.A0000001" Name="REPOSMGR" 
Desc="The Repository Manager" DefaultNS="SAS" RepositoryType=" "RepositoryFormat=" 11" 
Access="OMS_FULL" CurrentAccess="OMS_FULL" PauseState="ADMIN" Path="rposmgr"/>
        <Repository  Id="A0000001.A55WR3E8" Name="Foundation" Desc=" " DefaultNS="SAS" 
RepositoryType="FOUNDATION"  RepositoryFormat=" 11" Access="OMS_FULL" 
CurrentAccess="OMS_FULL" PauseState="ADMIN" Path="C:\SAS\FoundationServers\
Lev1\SASMain\MetadataServer\MetadataRepositories\Foundation"/> 
        <Repository  Id="A0000001.A59XXOKF" Name="Custom" Desc=" " DefaultNS="SAS" 
RepositoryType="CUSTOM"  RepositoryFormat=" 11" Access="OMS_READONLY"
CurrentAccess="OMS_READONLY" PauseState="ADMIN(READONLY)" Path="C:\SAS\
FoundationServers\Lev1\SASMain\MetadataServer\MetadataRepositories\Custom" /> 
        <Repository  Id="A0000001.A5NJI601" Name="Custom2" Desc=" " DefaultNS="SAS" 
RepositoryType="CUSTOM"  RepositoryFormat=" 11" Access="OMS_ADMIN" 
CurrentAccess="OMS_ADMIN" PauseState="ADMIN" Path="C:\SAS\FoundationServers\
Lev1\SASMain\MetadataServer\MetadataRepositories\Custom2"/> 
        <Repository  Id="A0000001.A5J5NMEG" Name="Custom3" Desc=" " DefaultNS="SAS" 
RepositoryType="CUSTOM" RepositoryFormat=" 11" Access="OMS_OFFLINE" 
CurrentAccess="OMS_OFFLINE" PauseState="OFFLINE" Path="C:\SAS\FoundationServers\Lev1\
SASMain\MetadataServer\MetadataRepositories\Custom3"/> 
        <Repository  Id="A0000001.A5G61RLY8" Name="Project" Desc=" " DefaultNS="SAS" 
RepositoryType="PROJECT "  RepositoryFormat=" 11" Access="OMS_FULL" 
CurrentAccess="OMS_FULL" PauseState="ADMIN" Path="C:\SAS\FoundationServers\Lev1\
SASMain\MetadataServer\MetadataRepositories\Project"/> 
   </Repositories>
 </GetRepositories>

In this output, note the following:

Previous Page | Next Page | Top of Page