mirror of
https://github.com/LukeHagar/developer.sailpoint.com.git
synced 2025-12-08 20:37:46 +00:00
Update python SDK docs: 16303892545
This commit is contained in:
@@ -76,7 +76,8 @@ with ApiClient(configuration) as api_client:
|
||||
create_personal_access_token_request = '''{
|
||||
"scope" : [ "demo:personal-access-token-scope:first", "demo:personal-access-token-scope:second" ],
|
||||
"accessTokenValiditySeconds" : 36900,
|
||||
"name" : "NodeJS Integration"
|
||||
"name" : "NodeJS Integration",
|
||||
"expirationDate" : "2018-01-11T18:45:37.098Z"
|
||||
}''' # CreatePersonalAccessTokenRequest | Name and scope of personal access token.
|
||||
|
||||
try:
|
||||
|
||||
@@ -20,6 +20,7 @@ Name | Type | Description | Notes
|
||||
**name** | **str** | The name of the personal access token (PAT) to be created. Cannot be the same as another PAT owned by the user for whom this PAT is being created. | [required]
|
||||
**scope** | **[]str** | Scopes of the personal access token. If no scope is specified, the token will be created with the default scope \"sp:scopes:all\". This means the personal access token will have all the rights of the owner who created it. | [optional]
|
||||
**access_token_validity_seconds** | **int** | Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. | [optional]
|
||||
**expiration_date** | **datetime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. | [optional]
|
||||
}
|
||||
|
||||
## Example
|
||||
@@ -30,7 +31,8 @@ from sailpoint.v2024.models.create_personal_access_token_request import CreatePe
|
||||
create_personal_access_token_request = CreatePersonalAccessTokenRequest(
|
||||
name='NodeJS Integration',
|
||||
scope=[demo:personal-access-token-scope:first, demo:personal-access-token-scope:second],
|
||||
access_token_validity_seconds=36900
|
||||
access_token_validity_seconds=36900,
|
||||
expiration_date='2018-01-11T18:45:37.098Z'
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
@@ -23,6 +23,7 @@ Name | Type | Description | Notes
|
||||
**owner** | [**PatOwner**](pat-owner) | | [required]
|
||||
**created** | **datetime** | The date and time, down to the millisecond, when this personal access token was created. | [required]
|
||||
**access_token_validity_seconds** | **int** | Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. | [required]
|
||||
**expiration_date** | **datetime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. | [required]
|
||||
}
|
||||
|
||||
## Example
|
||||
@@ -40,7 +41,8 @@ owner=sailpoint.v2024.models.pat_owner.PatOwner(
|
||||
id = '2c9180a46faadee4016fb4e018c20639',
|
||||
name = 'Support', ),
|
||||
created='2017-07-11T18:45:37.098Z',
|
||||
access_token_validity_seconds=36900
|
||||
access_token_validity_seconds=36900,
|
||||
expiration_date='2018-01-11T18:45:37.098Z'
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
@@ -23,6 +23,8 @@ Name | Type | Description | Notes
|
||||
**created** | **datetime** | The date and time, down to the millisecond, when this personal access token was created. | [required]
|
||||
**last_used** | **datetime** | The date and time, down to the millisecond, when this personal access token was last used to generate an access token. This timestamp does not get updated on every PAT usage, but only once a day. This property can be useful for identifying which PATs are no longer actively used and can be removed. | [optional]
|
||||
**managed** | **bool** | If true, this token is managed by the SailPoint platform, and is not visible in the user interface. For example, Workflows will create managed personal access tokens for users who create workflows. | [optional] [default to False]
|
||||
**access_token_validity_seconds** | **int** | Number of seconds an access token is valid when generated using this Personal Access Token. If no value is specified, the token will be created with the default value of 43200. | [optional] [default to 43200]
|
||||
**expiration_date** | **datetime** | Date and time, down to the millisecond, when this personal access token will expire. If not provided, the token will expire 6 months after its creation date. The value must be a valid date-time string between the current date and 6 months from the creation date. | [optional]
|
||||
}
|
||||
|
||||
## Example
|
||||
@@ -40,7 +42,9 @@ owner=sailpoint.v2024.models.pat_owner.PatOwner(
|
||||
name = 'Support', ),
|
||||
created='2017-07-11T18:45:37.098Z',
|
||||
last_used='2017-07-11T18:45:37.098Z',
|
||||
managed=False
|
||||
managed=False,
|
||||
access_token_validity_seconds=36900,
|
||||
expiration_date='2018-01-11T18:45:37.098Z'
|
||||
)
|
||||
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user