Current Identity
Return the current identity
Changed onReturns the identity associated with the API sessions used to issue the current request
get/current-identity
Request
- Base URLhttps://demo.ziti.dev/edge/client/v1
- Auth
- API key in header zt-session
- or OAuth 2Authorization code/oidc/authorizeToken URL/oidc/tokenScopesopenid
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
The identity associated with the API Session used to issue the request
Example response
{
"data": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"createdAt": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"tags": {},
"updatedAt": "2000-01-23T04:56:07.000+00:00",
"appData": {},
"authPolicy": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"entity": "entity",
"id": "id",
"name": "name"
},
"authPolicyId": "authPolicyId",
"authenticators": {
"cert": {
"fingerprint": "fingerprint",
"id": "id"
},
"updb": {
"id": "id",
"username": "username"
}
},
"defaultHostingCost": null,
"defaultHostingPrecedence": "default",
"disabled": true,
"disabledAt": "2000-01-23T04:56:07.000+00:00",
"disabledUntil": "2000-01-23T04:56:07.000+00:00",
"edgeRouterConnectionStatus": "online",
"enrollment": {
"ott": {
"expiresAt": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"jwt": "jwt",
"token": "token"
},
"ottca": {
"ca": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"entity": "entity",
"id": "id",
"name": "name"
},
"caId": "caId",
"expiresAt": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"jwt": "jwt",
"token": "token"
},
"updb": {
"expiresAt": "2000-01-23T04:56:07.000+00:00",
"id": "id",
"jwt": "jwt",
"token": "token"
}
},
"envInfo": {
"arch": "arch",
"domain": "domain",
"hostname": "hostname",
"os": "os",
"osRelease": "osRelease",
"osVersion": "osVersion"
},
"externalId": "externalId",
"hasApiSession": true,
"hasEdgeRouterConnection": true,
"interfaces": [
{
"addresses": [
"addresses",
"addresses"
],
"hardwareAddress": "hardwareAddress",
"index": 0,
"isBroadcast": true,
"isLoopback": true,
"isMulticast": true,
"isRunning": true,
"isUp": true,
"mtu": 0,
"name": "name"
},
{
"addresses": [
"addresses",
"addresses"
],
"hardwareAddress": "hardwareAddress",
"index": 0,
"isBroadcast": true,
"isLoopback": true,
"isMulticast": true,
"isRunning": true,
"isUp": true,
"mtu": 0,
"name": "name"
}
],
"isAdmin": true,
"isDefaultAdmin": true,
"isMfaEnabled": true,
"name": "name",
"permissions": [
"admin_readonly",
"admin_readonly"
],
"roleAttributes": [
null,
null
],
"sdkInfo": {
"appId": "appId",
"appVersion": "appVersion",
"branch": "branch",
"revision": "revision",
"type": "type",
"version": "version"
},
"serviceHostingCosts": null,
"serviceHostingPrecedences": null,
"type": {
"_links": {
"key": {
"comment": "comment",
"href": "https://openapi-generator.tech",
"method": "method"
}
},
"entity": "entity",
"id": "id",
"name": "name"
},
"typeId": "typeId"
},
"meta": {
"apiEnrollmentVersion": "apiEnrollmentVersion",
"apiVersion": "apiVersion",
"filterableFields": [
"filterableFields",
"filterableFields"
],
"pagination": {
"limit": 0.8008281904610115,
"offset": 6.027456183070403,
"totalCount": 1.4658129805029452
}
}
}Changes
- breaking
the response property
/////became nullable for the status - breaking
the response property
//became nullable for the status
- breaking
- info
added the required property
//to the response with the status
- info