Files
doc-exports/docs/cfw/api-ref/AddServiceItems.html
qiaoli 9776db0ee8 First version of the CFW API
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: qiaoli <qiaoli@huawei.com>
Co-committed-by: qiaoli <qiaoli@huawei.com>
2025-01-21 07:59:01 +00:00

343 lines
24 KiB
HTML

<a name="AddServiceItems"></a><a name="AddServiceItems"></a>
<h1 class="topictitle1">Adding Service Group Members</h1>
<div id="body1708331107508"><div class="section" id="AddServiceItems__section540111210316"><h4 class="sectiontitle">Function</h4><p id="AddServiceItems__p204021022318">This API is used to add service group members in batches.</p>
</div>
<div class="section" id="AddServiceItems__section24031726311"><h4 class="sectiontitle">URI</h4><p id="AddServiceItems__p134043218313">POST /v1/{project_id}/service-items</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__table3404102153115" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="AddServiceItems__row10404622312"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="AddServiceItems__p1240592193113">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="AddServiceItems__p740512123117">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="AddServiceItems__p1406326317">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="AddServiceItems__p8406922317">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row12404525317"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="AddServiceItems__p940617253115">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="AddServiceItems__p18407122153115">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="AddServiceItems__p1540716233115">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="AddServiceItems__p14081728319">Project ID, which can be obtained by calling an API or from the console. For details, see <a href="cfw_02_0015.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__table64091627314" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Query Parameters</caption><thead align="left"><tr id="AddServiceItems__row840802133116"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.1"><p id="AddServiceItems__p154092223119">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.2"><p id="AddServiceItems__p34099213113">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.4.2.5.1.3"><p id="AddServiceItems__p54108218311">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.4.2.5.1.4"><p id="AddServiceItems__p14108223113">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row740811253118"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="AddServiceItems__p9411222313">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="AddServiceItems__p13411182183114">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="AddServiceItems__p441112203119">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="AddServiceItems__p64121429311">Enterprise project ID, which is the ID of a project planned based on organizations. You can obtain the enterprise project ID by referring to <a href="cfw_02_0027.html">Obtaining an Enterprise Project ID</a>. If the enterprise project function is not enabled, the value is <strong id="AddServiceItems__b174126216312">0</strong>.</p>
</td>
</tr>
<tr id="AddServiceItems__row1740852183113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.1 "><p id="AddServiceItems__p1741242193113">fw_instance_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.2 "><p id="AddServiceItems__p164133213118">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.4.2.5.1.3 "><p id="AddServiceItems__p184132263120">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.4.2.5.1.4 "><p id="AddServiceItems__p18414152173111">Firewall ID, which can be obtained by referring to <a href="cfw_02_0028.html">Obtaining a Firewall ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddServiceItems__section441420233113"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request header parameters</caption><thead align="left"><tr id="AddServiceItems__row341520214318"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="AddServiceItems__p841612219315">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="AddServiceItems__p841611217313">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="AddServiceItems__p54173253117">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="AddServiceItems__p18417102123114">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row1441552143114"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="AddServiceItems__p194178233119">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="AddServiceItems__p441816273114">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="AddServiceItems__p1241817213311">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="AddServiceItems__p19419162153114">User token. You can obtain the token by referring to <a href="cfw_02_0029.html">Obtaining a User Token</a>.</p>
</td>
</tr>
<tr id="AddServiceItems__row118171118143113"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="AddServiceItems__p16987185572214">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="AddServiceItems__p1453216872313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="AddServiceItems__p598785514223">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="AddServiceItems__p1821149193417">Content type. It can only be set to application/json.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__request_AddServiceItemsUsingPOSTRequestBody" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Request body parameters</caption><thead align="left"><tr id="AddServiceItems__row341992123110"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="AddServiceItems__p1542062113116">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="AddServiceItems__p17420192103114">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="AddServiceItems__p1842119263119">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="AddServiceItems__p13421925312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row1641952153116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="AddServiceItems__p642202133112">set_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="AddServiceItems__p1842282133111">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="AddServiceItems__p1142216217311">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="AddServiceItems__p642322153115">Service group ID, which can be obtained by calling the <a href="ListServiceSets.html">API for querying the service group list</a>. Find the value in <strong id="AddServiceItems__b842319219312">data.records.set_id</strong> (The period [.] is used to separate different levels of objects).</p>
</td>
</tr>
<tr id="AddServiceItems__row64197203110"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="AddServiceItems__p164247233114">service_items</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="AddServiceItems__p13424192123119">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="AddServiceItems__p1342420243111">Array of <a href="#AddServiceItems__request_service_items">service_items</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="AddServiceItems__p9425142153114">Service group member list.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddServiceItems__request_service_items"></a><a name="request_service_items"></a><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__request_service_items" frame="border" border="1" rules="all"><caption><b>Table 5 </b>service_items</caption><thead align="left"><tr id="AddServiceItems__row1542514215315"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="AddServiceItems__p1942632113113">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="AddServiceItems__p142710243111">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="AddServiceItems__p164272213313">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="AddServiceItems__p4427112203111">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row942518223116"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddServiceItems__p842814218317">protocol</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddServiceItems__p1342810233116">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddServiceItems__p942912153118">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddServiceItems__p204301329311">Protocol type: <strong id="AddServiceItems__b154309263115">6</strong> (TCP), <strong id="AddServiceItems__b1430162123110">17</strong> (UDP), <strong id="AddServiceItems__b14304211317">1</strong> (ICMP), <strong id="AddServiceItems__b64312219315">58</strong> (ICMPv6), or <strong id="AddServiceItems__b64311253114">-1</strong> (any). It cannot be left blank when <strong id="AddServiceItems__b54311227310">type</strong> is set to <strong id="AddServiceItems__b1243113213319">0</strong> (manual), and can be left blank when <strong id="AddServiceItems__b19431423314">type</strong> is set to <strong id="AddServiceItems__b13431192103118">1</strong> (automatic).</p>
</td>
</tr>
<tr id="AddServiceItems__row54251126314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddServiceItems__p1643114243117">source_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddServiceItems__p144310283116">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddServiceItems__p2043212163115">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddServiceItems__p1432172113116">Source port.</p>
</td>
</tr>
<tr id="AddServiceItems__row24255263117"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddServiceItems__p9433428315">dest_port</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddServiceItems__p84331427316">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddServiceItems__p11433182183115">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddServiceItems__p1243416203110">Destination port.</p>
</td>
</tr>
<tr id="AddServiceItems__row194255213119"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="AddServiceItems__p3434821314">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="AddServiceItems__p1843442103110">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="AddServiceItems__p154351029318">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="AddServiceItems__p1143512210316">Service member description.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddServiceItems__section04367217314"><h4 class="sectiontitle">Response Parameters</h4><p id="AddServiceItems__p24366263111"><strong id="AddServiceItems__b44374263116">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__response_AddServiceItemsResponseBody" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="AddServiceItems__row204371211317"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="AddServiceItems__p164381627310">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="AddServiceItems__p1743816223111">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="AddServiceItems__p13438112103112">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row643717214311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="AddServiceItems__p1543992163113">data</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="AddServiceItems__p15439621316"><a href="#AddServiceItems__response_ServiceItemIds">ServiceItemIds</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="AddServiceItems__p134401220317">Data returned for creating a service group member.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddServiceItems__response_ServiceItemIds"></a><a name="response_ServiceItemIds"></a><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__response_ServiceItemIds" frame="border" border="1" rules="all"><caption><b>Table 7 </b>ServiceItemIds</caption><thead align="left"><tr id="AddServiceItems__row24401029319"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.1"><p id="AddServiceItems__p194414243118">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.4.1.2"><p id="AddServiceItems__p444102113115">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.4.2.4.1.3"><p id="AddServiceItems__p944262193118">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row20440424314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.1 "><p id="AddServiceItems__p544252193118">items</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.4.1.2 "><p id="AddServiceItems__p14443192133120">Array of <a href="#AddServiceItems__response_items">items</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.4.2.4.1.3 "><p id="AddServiceItems__p1744317213319">List of service group member IDs.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="AddServiceItems__response_items"></a><a name="response_items"></a><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__response_items" frame="border" border="1" rules="all"><caption><b>Table 8 </b>items</caption><thead align="left"><tr id="AddServiceItems__row184438213311"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="AddServiceItems__p644472133114">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="AddServiceItems__p10445629310">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="AddServiceItems__p1744510219314">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row10443228312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="AddServiceItems__p84454212319">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="AddServiceItems__p174463263118">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="AddServiceItems__p844692193113">Service group member ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="AddServiceItems__p644712163115"><strong id="AddServiceItems__b1544717203111">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__response_ErrorRsp" frame="border" border="1" rules="all"><caption><b>Table 9 </b>Response body parameters</caption><thead align="left"><tr id="AddServiceItems__row8447142183111"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="AddServiceItems__p944815210319">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="AddServiceItems__p1944811293110">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="AddServiceItems__p34493263110">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row44479293112"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="AddServiceItems__p54495243110">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="AddServiceItems__p544910220313">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="AddServiceItems__p1745015223117">Error code.</p>
</td>
</tr>
<tr id="AddServiceItems__row344710219313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="AddServiceItems__p4450722312">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="AddServiceItems__p04511213110">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="AddServiceItems__p64514215311">Error description.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddServiceItems__section204521229318"><h4 class="sectiontitle">Example Requests</h4><p id="AddServiceItems__p3452152203115">Add a service group member named <strong id="AddServiceItems__b845214253118">ceshi</strong> to project 9d80d070b6d44942af73c9c3d38e0429. The description is <strong id="AddServiceItems__b64521233113">Add a service group member</strong>.</p>
<pre class="screen" id="AddServiceItems__screen104549213113">https://{Endpoint}/v1/9d80d070b6d44942af73c9c3d38e0429/service-items
{
"set_id" : "7cdebed3-af07-494e-a3c2-b88bb8d58b57",
"service_items" : [ {
"description" : "Add members to a service group.",
"dest_port" : "1",
"source_port" : "1",
"protocol" : 6
} ]
}</pre>
</div>
<div class="section" id="AddServiceItems__section1945715213118"><h4 class="sectiontitle">Example Responses</h4><p id="AddServiceItems__p2457112163110"><strong id="AddServiceItems__b134588243116">Status code: 200</strong></p>
<p id="AddServiceItems__p144581293120">Return value for adding service group members.</p>
<pre class="screen" id="AddServiceItems__screen1645922143111">{
"data" : {
"items" : [ {
"id" : "cc41c4af-86e8-4ed2-80ad-87d399aeaed0"
} ]
}
}</pre>
<p id="AddServiceItems__p646110213319"><strong id="AddServiceItems__b546117212312">Status code: 400</strong></p>
<p id="AddServiceItems__p1246118211314">Bad Request</p>
<pre class="screen" id="AddServiceItems__screen1846211218312">{
"error_code" : "CFW.00200001",
"error_msg" : "Empty parameter."
}</pre>
</div>
<div class="section" id="AddServiceItems__section46186212315"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="AddServiceItems__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="AddServiceItems__row651116215318"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="AddServiceItems__p26197253116">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="AddServiceItems__p156195243116">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="AddServiceItems__row05111523310"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p06191223111">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p186191293118">Return value for adding service group members.</p>
</td>
</tr>
<tr id="AddServiceItems__row1151115218310"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p56191529312">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p261910273111">Bad Request</p>
</td>
</tr>
<tr id="AddServiceItems__row175111327315"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p206191524314">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p86193212312">Unauthorized</p>
</td>
</tr>
<tr id="AddServiceItems__row175118253118"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p5620132143118">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p1462015203119">Forbidden</p>
</td>
</tr>
<tr id="AddServiceItems__row15111128314"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p1962042153114">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p1262016213119">Not Found</p>
</td>
</tr>
<tr id="AddServiceItems__row1251116210313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="AddServiceItems__p11620527311">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="AddServiceItems__p2620152183120">Internal Server Error</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="AddServiceItems__section1462018223117"><h4 class="sectiontitle">Error Codes</h4><p id="AddServiceItems__p1062115243115">See <a href="ErrorCode.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="topic_300000005.html">Service Group Management</a></div>
</div>
</div>