• Home
  • Dynatrace Managed
  • Cluster API
  • Cluster API v2
  • Remote access
  • Get all cluster access requests

Get all cluster access requests

This API call gets a list of all current cluster access requests, including user, access role, access duration, and state of the request.

Authentication

To execute this request, you need one of the following API-Token scopes:

  • Cluster token management (ClusterTokenManagement)
  • Service Provider API (ServiceProviderAPI )
  • Nodekeeper access for node management (Nodekeeper)
    To learn how to obtain and use it, see Cluster API - Authentication.

Endpoint

/api/cluster/v2/remoteaccess/requests

Parameters

The request doesn't provide any configurable parameters.

Response

Response codes

CodeTypeDescription
200AccessRequestData[]

Successful

403

Approving remote access request is disabled

Response body objects

The ResponseBody object

The object doesn't provide any parameters.

The AccessRequestData object

Access Request data

ElementTypeDescription
requestIdstring

Request id

userIdstring

User id

reasonstring

Request reason description

requestedDaysinteger

For how many days access is requested

rolestring

Requested role

The element can hold these values
  • devops-admin
  • devops-user
  • devops-viewer
createdTimestampinteger

Access request created at (timestamp)

expirationTimestampinteger

Access expires at (timestamp)

statestring

Access request state

The element can hold these values
  • ACCEPTED
  • EXPIRED
  • PENDING
  • REJECTED
stateModifiedByUserstring

Access request state was modified by user

Response body JSON model

json
[ { "requestId": "string", "userId": "string", "reason": "string", "requestedDays": 1, "role": "devops-admin", "createdTimestamp": 1, "expirationTimestamp": 1, "state": "ACCEPTED", "stateModifiedByUser": "string" } ]

Example

In this example you request a cluster (myManaged.cluster.com) to return a list of all current remote access requests.

Curl

bash
curl -X GET "https://myManaged.cluster.com/api/cluster/v2/remoteaccess/requests" -H "accept: application/json"

Request URL

plaintext
https://myManaged.cluster.com/api/cluster/v2/remoteaccess/requests

Response body

json
{ "requestId":"7a397770-86b7-473b-b23e-4a07d79f2eff", "userId":"john.smith@dynatrace.com", "reason":"SUP-123456 Verifying cluster state after upgrade", "requestedDays":7, "role":"devops-admin", "createdTimestamp":1586452866661, "expirationTimestamp":null, "state":"PENDING", "stateModifiedByUser":null }

Response code

200