{"type":"api","title":"Get Site","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":"getSite","tags":["Sites"],"summary":"Get Site","description":"Get site using siteNameHierarchy/siteId/type ,return all sites if these parameters are not given as input.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"name","description":"siteNameHierarchy (ex: global/groupName)","default":"","required":false,"type":"string","in":"query"},{"name":"siteId","description":"Site id to which site details to retrieve.","default":"","required":false,"type":"string","in":"query"},{"name":"type","description":"type (ex: area, building, floor)","default":"","required":false,"type":"string","in":"query"},{"name":"offset","description":"offset/starting row. The default value is 1","default":"1","required":false,"type":"string","in":"query"},{"name":"limit","description":"Number of sites to be retrieved. The default value is 500","default":"500","required":false,"type":"string","in":"query"}],"responses":{"200":{"description":"The request was successful. The result is contained in the response body.","schema":{"type":"object","properties":{"response":{"type":"array","items":{"type":"object","properties":{"parentId":{"type":"string"},"name":{"type":"string"},"additionalInfo":{"type":"array","items":{"type":"string"}},"siteHierarchy":{"type":"string"},"siteNameHierarchy":{"type":"string"},"instanceTenantId":{"type":"string"},"id":{"type":"string"}}}}},"$$ref":"#/definitions/GetSiteResponse"}},"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."},"404":{"description":"The client made a request for a resource that does not exist."},"500":{"description":"The server could not fulfill the request."}},"__originalOperationId":"getSite","method":"get","path":"/dna/intent/api/v1/site"}}