Skip to main content

resourceDelegations

Paperspace Core API reference guide for resourceDelegations.

Create resourceDelegations with limited access, e.g. for users who needs to stream a machine you created. The create method takes a delegation object as the only argument with resource name as key and an object with ids to list resource ids to give access to.

info

Resource delegations will expire after 4 hours.

create

Examples

paperspace resourceDelegations create \
--machine '{ "ids": ["psec02yp2"] }' \
--apiKey "edc20a51d9b2145..."

Parameters

NameTypeAttributesDescription
machineobjectoptionalOptional resource 'machine' to grant access to.
idsarrayoptionalOptional list of machine ids to grant access to.

Response

Type object

{
"delegation": {
"machine": {
"ids": ["psec02yp2"]
}
},
"isEnabled": true,
"accessTokenId": "resource-delegation-token-34d7e42302bf7c69013eb0e778991d21587fb73ba1d127608d0625a46d5b",
"dtCreated": "2022-03-14T18:57:12.986Z",
"id": 500908
}