Cable Plan - Cisco

[Pages:12]Chapter

Cable Plan

The following are the Cable Plan REST APIs: ? Capture a Cable Plan, page -34 ? Generate a Cable Plan, page -35 ? Get a Cable Plan, page -36 ? Save a Cable Plan, page -37 ? Delete a Cable Plan, page -38 ? Get a Cable Plan From Device, page -39 ? View Cable Plan From Device, page -40 ? Import a Cable Plan, page -41 ? Export a Cable Plan, page -42 ? Deploy a Cable Plan, page -43 ? Revoke a Cable Plan, page -44

OL-31169-01

Cisco DCNM REST API Guide 7.x

-33

Chapter

Capture a Cable Plan

Resource Name

/cable-plans/discovery

Description

Extract a cable plan base on the switches discovered by DCNM.

https Method

GET

URL



Parameter

Parameter

Type

Description

Return Value Status Code

Format: JSON Type: Object Attribute Name cable-plan-name

200 400 401 403 404 405 500

Type

Description

S

Name of the cable plan

Accepted Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

Cisco DCNM REST API Guide 7.x

-34

OL-31169-01

Chapter

Generate a Cable Plan

Resource Name

/cable-plans/poap

Description

Generate a cable plan base on the POAP switch definitions from DCNM

https Method

GET

URL



Parameter

Parameter

Type

Description

Return Value Status Code

Format: JSON Type: Object Attribute Name cable-plan-name

200 400 401 403 404 405 500

Type

Description

S

Name of the cable plan

Accepted Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

OL-31169-01

Cisco DCNM REST API Guide 7.x

-35

Chapter

Get a Cable Plan

Resource Name

/cable-plans

Description

Get a cable plan

https Method

GET

URL





Parameter

Parameter

Type

Description

Return Value

Format: JSON Type: Object

Attribute Name cable-plan

Status Code

200 400 401 403 404 405 500

Type

Description

O

By default returns cable-plan

information, if "detail=true",

then will return CablePlan

object.

OK Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

Cisco DCNM REST API Guide 7.x

-36

OL-31169-01

Chapter

Save a Cable Plan

Resource Name

/cable-plans

Description

Save a cable plan into the DCNM database.

https Method

POST

URL



Parameter

Parameter

Type

cable-plan-object

O

Return Value

Format: JSON Type: Object

Attribute Name

Type

Description Cable-plan-object including cable-plan-name, source-device, source-device-type, source-port, dest-device, dest-device-type, dest-port.

Description

Status Code

202 400 401 403 404 405 500

Accepted Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

OL-31169-01

Cisco DCNM REST API Guide 7.x

-37

Chapter

Delete a Cable Plan

Resource Name

/cable-plans

Description

Delete cable plan base on the POAP switch definitions from DCNM.

https Method

DELETE

URL



Parameter

Parameter

Type

Description

Return Value

Format: JSON Type: Object

Attribute Name

Type

Description

Status Code

202 400 401 403 404 405 500

Accepted Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

Cisco DCNM REST API Guide 7.x

-38

OL-31169-01

Chapter

Get a Cable Plan From Device

Resource Name

/cable-plans/device-xml

Description

Get a cable plan from devices in XML

https Method

POST

URL



Parameter

Parameter

Type

Ip-addresses

S

Return Value

Format: JSON Type: Object

Attribute Name

Type

cable-plan-info

S

Status Code

200 400 401 403 404 405 500

Description The Switch IP Address list which derives the cable plan.

Description Cable plans in XML

OK Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

OL-31169-01

Cisco DCNM REST API Guide 7.x

-39

Chapter

View Cable Plan From Device

Resource Name

/cable-plans/device-raw

Description

Get cable plan from devices and return in raw format

https Method

POST

URL



Parameter Return Value Status Code

Parameter

Ip-addresses

Format: JSON Type: Object Attribute Name Cable-plan-info

200 202 400 401 403 404 405 500

Type

Description

S

The Switch IP Address list

which derives the cable plan

Type

Description

S

Cable plans in raw format

OK Accepted Bad Request Unauthorized Forbidden Not Found Method Not Allowed Internal Server Error

Cisco DCNM REST API Guide 7.x

-40

OL-31169-01

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download