Cisco Evolved Programmable Network Manager API
Evolved Programmable Network Manager API Documentation

PUT groups/group

Create or update a device or port group. Only Location and User Defined Device groups and User Defined port groups are supported. You cannot modify the system defined groups except 'Location/All Locations/System Campus' for which you can change only description and geographical location.

Since Product Version: 3.0

Resource Information

Rate Limiting?

No

Sorting?

No

Paging?

No

Filtering?

No

Group Filtering?

No

Aggregation?

No

Response Formats

xml

json

User Group

NBI Write

HTTP Methods

PUT

API version v1 is deprecated

This API version has been deprecated. It will be removed in a future release of the product. Please develop new clients using the latest API version. Please modify your existing clients to use a later API version.

Resource URL

/webacs/api/v1/op/groups/group

Request Parameters

Attribute Source Description

groupId Long

query

Optional

ID of the group to update, if given. If not, new group will be created.

Request Payload Parameters

Attribute Description

description String

Description of a group (human-readable). Optional. Max length of the description is 255 characters.

name String

Required

Name of a group.

The group name can contain any characters except: '&<>"/?

The maximum name length is 255 characters for user-defined groups and location groups with the default type. For location groups with a non-default type, the maximum name length is 40 characters.

path String

Path to the group (slash-separated, e.g. "group/subgroup/sub_subgroup") relative to the 'User Defined' or 'Location/All Locations' group.

type GroupTypeEnum

Required

Type of a group.

  • LOCATION
  • USERDEFINED
  • INTERFACEGROUP

Response Parameters

Attribute Description

action String

"CREATED" or "UPDATED". Action permitted by operation.

groupId long

Group ID of updated or created group

Sample Payloads

Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.

Sample XML Request Payload

https://10.64.80.159/webacs/api/v1/op/groups/group

<?xml version="1.0" ?>
<groupPropertiesDTO>
  <description>String value</description>
  <name>String value</name>
  <path>String value</path>
  <type>LOCATION</type>
</groupPropertiesDTO>

Sample JSON Request Payload

https://10.64.80.159/webacs/api/v1/op/groups/group.json

{
  "groupPropertiesDTO" : {
    "description" : "String value",
    "name" : "String value",
    "path" : "String value",
    "type" : "LOCATION"
  }
}

Sample XML Response Payload

https://10.64.80.159/webacs/api/v1/op/groups/group

<?xml version="1.0" ?>
<mgmtResponse responseType="operation" requestUrl="../../../../../pages/common/login.jsp.html" rootUrl="https://10.64.80.159/webacs/api/v1/op">
  <groupUpdateResult>
    <action>String value</action>
    <groupId>2</groupId>
  </groupUpdateResult>
</mgmtResponse>

Sample JSON Response Payload

https://10.64.80.159/webacs/api/v1/op/groups/group.json

{
  "mgmtResponse" : {
    "@responseType" : "operation",
    "@requestUrl" : "https : \/\/10.64.80.159\/webacs\/api\/v1\/op\/groups\/group",
    "@rootUrl" : "https : \/\/10.64.80.159\/webacs\/api\/v1\/op",
    "groupUpdateResult" : {
      "action" : "String value",
      "groupId" : 2
    }
  }
}