GET
/v6/credentials
Credential list
Returns a list of all credentials configured in ThousandEyes.
Optional (Querystring) Parameters
format=json|xml
optional, specifies the format of output requested. See Output Formats for more informationaid={aid}
optional and requires the user to be assigned to the target account group, specifies the account group context of the request, obtained from the/account-groups
endpoint. Specifying this parameter without the user being assigned to the target account will result in an error response. See Account group context for more information.
Request
- There is no request body for this request.
Response
Field | Data Type | Units | Notes |
---|---|---|---|
credentialId | integer | n/a | unique ID of the credential |
name | string | n/a | The name of the credential |
value | string | n/a | The value of the credential that will be encrypted (if the user has permission to read sensitive data) |
apiLinks | object | n/a | The reference to this credential |
Example
$ curl https://api.thousandeyes.com/v6/credentials.json \
-u {email}:{authToken}
Header
HTTP/1.1 200 OK
Date: Fri, 15 Nov 2019 19:17:46 GMT
Content-Type: application/json;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
X-Server-Name: 8xb13
Cache-Control: no-store
X-Organization-Rate-Limit-Limit: 240
X-Organization-Rate-Limit-Remaining: 211
X-Organization-Rate-Limit-Reset: 1573845480
Strict-Transport-Security: max-age=15724800; includeSubDomains
Strict-Transport-Security: max-age=31536000
X-Content-Type-Options: nosniff
Body
{
"credentials": [
{
"credentialId": 405,
"name": "Example Credential 1",
"apiLinks": [
{
"rel": "self",
"href": "https://api.thousandeyes.com/v6/credentials/405"
}
]
}
]
}
For more information on our HTTP response status codes, see the response status codes documentation.