Skip to main content
Version: 1.x.x

getPeer

This method returns a Peer resource.

URL

/peers/{ref}

Method

GET

Parameters

Parameter NameTypeValueDescription
refpathstringResource reference

Request body

Do not supply a request body with this method.

Response

If successful this method returns a Peer resource.

Sample Call

GET /api/{apiversion}/peers/pr2c77f4
{

}

HTTP/1.1 200 OK
{
"status": "200",
"message": "Successful request",
"data" : {
"apiVersion": "v1beta1",
"kind": "Peer",
"metadata": {
"name": "Asterisk PBX",
"ref": "pr2c77f4"
},
"spec": {
"credentials": {
"username": "ast",
"secret": "1234"
}
}
}
}