Methods
-
deleteAuthTokenUrl(tokenId)
-
Generate a URL for deleting an auth token, via a
DELETErequest.Parameters:
Name Type Description tokenIdstring the token ID to delete
Returns:
the URL
- Type
- string
-
generateAuthTokenUrl(type)
-
Generate a URL for creating a new auth token, via a
POSTrequest.The request body accepts a
module:domain~SecurityPolicyJSON document.Parameters:
Name Type Description typeAuthTokenType the auth token type to generate
Returns:
the URL
- Type
- string
-
listAllAuthTokensUrl()
-
Generate a URL for listing all available auth tokens.
Returns:
the URL
- Type
- string
-
replaceAuthTokenSecurityPolicyUrl(tokenId)
-
Generate a URL for replacing a security policy on an auth token, via a
PUTrequest.The request body accepts a
module:domain~SecurityPolicyJSON document.Parameters:
Name Type Description tokenIdstring the ID of the token to update
Returns:
the URL
- Type
- string
-
updateAuthTokenSecurityPolicyUrl(tokenId)
-
Generate a URL for updating (merging) a security policy on an auth token, via a
PATCHrequest.The request body accepts a
module:net~SecurityPolicyJSON document.Parameters:
Name Type Description tokenIdstring the ID of the token to update
Returns:
the URL
- Type
- string
-
updateAuthTokenStatusUrl(tokenId, status)
-
Generate a URL for updating the status of an auth token, via a
POSTrequest.Parameters:
Name Type Description tokenIdstring the ID of the token to update
statusAuthTokenStatus the status to change to
Returns:
the URL
- Type
- string