GetEntityByUid
GET//entities/by-uid/:uid
Get a single entity by the UID.
Request
Path Parameters
uid stringrequired
Responses
- 200
- 400
- default
Ok
- application/json
- Schema
- Example (auto)
Schema
relations object[]
spec object
metadata objectrequired
kindstringrequired
The high level entity type being described.
apiVersionstringrequired
The version of specification format for this particular entity that this is written against.
{
"relations": [
{
"targetRef": "string",
"type": "string"
}
],
"spec": {},
"metadata": {
"links": [
{
"type": "string",
"icon": "string",
"title": "string",
"url": "string"
}
],
"tags": [
"string"
],
"annotations": {},
"labels": {},
"description": "string",
"title": "string",
"namespace": "string",
"name": "string",
"etag": "string",
"uid": "string"
},
"kind": "string",
"apiVersion": "string"
}
An error response from the backend.
- application/json
- Schema
- Example (auto)
Schema
error objectrequired
request object
response objectrequired
property name*any
{
"error": {
"name": "string",
"message": "string",
"stack": "string",
"code": "string"
},
"request": {
"method": "string",
"url": "string"
},
"response": {
"statusCode": 0
}
}
An error response from the backend.
- application/json
- Schema
- Example (auto)
Schema
error objectrequired
request object
response objectrequired
property name*any
{
"error": {
"name": "string",
"message": "string",
"stack": "string",
"code": "string"
},
"request": {
"method": "string",
"url": "string"
},
"response": {
"statusCode": 0
}
}
Authorization: http
name: JWTtype: httpscheme: bearerbearerFormat: JWT
- javascript
- curl
- powershell
- python
- java
- go
- rust
- FETCH
- JQUERY
- XHR
const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer <token>");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("/entities/by-uid/:uid", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));