getScopesByParentId

親スコープの ID を使用して、すべての子スコープのリストを返します。

Cloud のみに適用されます。

パラメーター:

parentScopeId
親スコープの ID。
戻り:
子スコープのリスト。

例:

以下の例は、親スコープの ID を使用してスコープを取得するための SOAP 要求です。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:sec="http://www.approuter.com/
schemas/2008/1/security">
 <soapenv:Header>
  <sec:sessionId>B0097A43C5527FA552C3DDBA7EF74CE9</sec:sessionId>
 </soapenv:Header>
 <soapenv:Body>
  <sec:getScopesByParentId>
   <sec:parentScopeId>BB173AE61484BD7359D8910789EA4E88</
   sec:parentScopeId>
  </sec:getScopesByParentId>
 </soapenv:Body>
</soapenv:Envelope>
以下は、要求に対する SOAP 応答の例です。親スコープはテナントであり、子スコープはテナント内の環境です。
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
 <S:Body>
  <ns2:getScopesByParentIdResponse xmlns:ns2="http://www.approuter.com/
  schemas/2008/1/security"
  xmlns:ns3="http://www.approuter.com/schema/
  router/1000/security/03">
	 <ns2:scopes>
    <active>true</active>
    <displayName>Staging</displayName>
    <id>9203C78275503796DB49CB5E6CF34111</id>
    <index>1</index>
    <name>Staging</name>
    <parentId>BB173AE61484BD7359D8910789EA4E88</parentId>
    <type>ENV</type>
   </ns2:scopes>
   <ns2:scopes>
    <active>true</active>
    <displayName>Development</displayName>
    <id>A26D2319BAE05E9513117949CF274A09</id>
    <index>0</index>
    <name>Development</name>
    <parentId>BB173AE61484BD7359D8910789EA4E88</parentId>
    <type>ENV</type>
   </ns2:scopes>
   <ns2:scopes>
    <active>true</active>
    <displayName>Production</displayName>
    <id>B56005332F3E41A3F1456F5F40594A06</id>
    <index>2</index>
    <name>Production</name>
    <parentId>BB173AE61484BD7359D8910789EA4E88</parentId>
    <type>ENV</type>
   </ns2:scopes>
  </ns2:getScopesByParentIdResponse>
 </S:Body>
</S:Envelope>
子スコープごとに、以下の情報が返されます。
active
true または false。true は、スコープがアクティブであることを意味します。
displayName
WMC での役割の表示名。
id
子スコープの ID。
index
子スコープの索引内の位置。
name
子スコープの名前。
parentId
親スコープの ID。
type
スコープのタイプ。