Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur

Page de 103
Page 31 
OL-28369-01 
Tenant Management Using the Service Registry 
The Service Registry, service type service-reg, creates and manages tenants and the suborganizations that are 
used to organize policies and resources. These tenants and suborganizations are arranged in a tree hierarchy for 
the bottom-up policy and resource resolution. Class names used in tenant and suborganization creation support 
the following four levels: 
● 
Tenant, class orgTenant
—Defines the top level organization. 
● 
Data Center, class orgDatacenter
—Defines a data center under a Tenant. 
● 
Application, class orgApp
—Defines an application under a Data Center. 
● 
Tier, class orgTier
—Defines a tier under an Application. 
To create a new organization, or update an existing organization, provide the following information: 
● 
Object DN 
● 
Attribute values 
● 
Status equal to created or modified 
● 
To delete an organization, use a status = deleted in the request. 
The following topics provide examples of create or update requests and responses: 
● 
● 
Create or Update Organization Request 
The following example shows how to create a tenant named demoTenant: 
<configConfMos 
cookie="<real_cookie>"> 
<inConfigs> 
<pair key="org-root/org-demoTenant"> 
<orgTenant dn="org-root/org-demoTenant" 
name="demoTenant" 
status="created"/> 
</pair> 
</inConfigs> 
</configConfMos> 
Create or Update Organization Response 
The following example shows the response that is received after creating a tenant named demoTenant: 
<configConfMos 
cookie="<real_cookie>" 
commCookie="2/15/0/839" 
srcExtSys="10.193.33.221" 
destExtSys="10.193.33.221" 
srcSvc="sam_extXMLApi" 
destSvc="service-reg_dme" 
response="yes"> 
<outConfigs> 
<pair key="org-root/org-demoTenant"> 
<orgTenant 
descr=""\ 
dn="org-root/org-demoTenant" 
fltAggr="0" 
level="1" 
name="demoTenant" 
status="created"/> 
</pair> 
</outConfigs> 
</configConfMos>