{"type":"api","title":"Get Stack Details for Device","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"getStackDetailsForDevice","tags":["Devices"],"summary":"Get Stack Details for Device","description":"Retrieves complete stack details for given device ID","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"deviceId","description":"Device ID","required":true,"type":"string","in":"path"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"response":{"type":"object","properties":{"deviceId":{"type":"string"},"stackPortInfo":{"type":"array","items":{"type":"object","properties":{"isSynchOk":{"type":"string"},"linkActive":{"type":"boolean"},"linkOk":{"type":"boolean"},"name":{"type":"string"},"neighborPort":{"type":"string"},"nrLinkOkChanges":{"type":"integer"},"stackCableLengthInfo":{"type":"string","enum":["NO_CABLE","_50_CM","_1_M","_3_M","UNKNOWN"]},"stackPortOperStatusInfo":{"type":"string","enum":["OK","UP","DOWN","FORCEDDOWN","ABSENT","UNKNOWN"]},"switchPort":{"type":"string"}}}},"stackSwitchInfo":{"type":"array","items":{"type":"object","properties":{"entPhysicalIndex":{"type":"string"},"hwPriority":{"type":"integer"},"macAddress":{"type":"string"},"numNextReload":{"type":"integer"},"platformId":{"type":"string"},"role":{"type":"string","enum":["MASTER","MEMBER","NOTMEMBER","STANDBY","UNKNOWN"]},"serialNumber":{"type":"string"},"softwareImage":{"type":"string"},"stackMemberNumber":{"type":"integer"},"state":{"type":"string","enum":["WAITING","PROGRESSING","ADDED","READY","SDMMISMATCH","VERMISMATCH","FEATUREMISMATCH","NEWMASTERINIT","PROVISIONED","INVALID","UNKNOWN"]},"switchPriority":{"type":"integer"}}}},"svlSwitchInfo":{"type":"array","items":{"type":"object","properties":{"dadProtocol":{"type":"string","enum":["NONE","PAGP","UNKNOWN"]},"dadRecoveryReloadEnabled":{"type":"boolean"},"domainNumber":{"type":"integer"},"inDadRecoveryMode":{"type":"boolean"},"swVirtualStatus":{"type":"string"},"switchMembers":{"type":"array","items":{"type":"object","properties":{"bandwidth":{"type":"string"},"svlMemberEndPoints":{"type":"array","items":{"type":"object","properties":{"svlMemberEndPointPorts":{"type":"array","items":{"type":"object","properties":{"svlProtocolStatus":{"type":"string","enum":["SUSPENDED","PENDING","ERROR","TIMEOUT","READY","UNKNOWN"]},"swLocalInterface":{"type":"string"},"swRemoteInterface":{"type":"string"}}}},"svlNumber":{"type":"integer"},"svlStatus":{"type":"string","enum":["UP","DOWN","UNKNOWN"]}}}},"svlMemberNumber":{"type":"integer"},"svlMemberPepSettings":{"type":"array","items":{"type":"object","properties":{"dadEnabled":{"type":"boolean"},"dadInterfaceName":{"type":"string"}}}}}}}}}}}},"version":{"type":"string"}},"$$ref":"#/definitions/StackDTOResult"}},"204":{"description":"The request was successful, however no content was returned."},"206":{"description":"The GET request included a Range Header, and the server responded with the partial content matching the range."},"400":{"description":"The client made a request that the server could not understand (for example, the request syntax is incorrect)."},"401":{"description":"The client's authentication credentials included with the request are missing or invalid."},"403":{"description":"The server recognizes the authentication credentials, but the client is not authorized to perform this request."},"404":{"description":"The client made a request for a resource that does not exist."},"409":{"description":"The target resource is in a conflicted state (for example, an edit conflict where a resource is being edited by multiple users). Retrying the request later might succeed."},"415":{"description":"The client sent a request body in a format that the server does not support (for example, XML to a server that only accepts JSON)."},"500":{"description":"The server could not fulfill the request."},"501":{"description":"The server has not implemented the functionality required to fulfill the request."},"503":{"description":"The server is (temporarily) unavailable."},"504":{"description":"The server did not respond inside time restrictions and timed-out."}},"__originalOperationId":"getStackDetailsForDevice","method":"get","path":"/dna/intent/api/v1/network-device/{deviceId}/stack"}}