adding v3 docs back in

This commit is contained in:
darrell-thobe-sp
2025-01-23 20:41:57 -05:00
parent f36c734ca4
commit 7194b934e8
658 changed files with 47533 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
---
id: create-personal-access-token-request
title: CreatePersonalAccessTokenRequest
pagination_label: CreatePersonalAccessTokenRequest
sidebar_label: CreatePersonalAccessTokenRequest
sidebar_class_name: powershellsdk
keywords: ['powershell', 'PowerShell', 'sdk', 'CreatePersonalAccessTokenRequest']
slug: /tools/sdk/powershell/v3/models/create-personal-access-token-request
tags: ['SDK', 'Software Development Kit', 'CreatePersonalAccessTokenRequest']
---
# CreatePersonalAccessTokenRequest
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Name** | **String** | 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** | Pointer to **[]String** | 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]
**AccessTokenValiditySeconds** | Pointer to **Int32** | 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]
## Examples
- Prepare the resource
```powershell
$CreatePersonalAccessTokenRequest = Initialize-PSSailpoint.V3CreatePersonalAccessTokenRequest -Name NodeJS Integration `
-Scope [demo:personal-access-token-scope:first, demo:personal-access-token-scope:second] `
-AccessTokenValiditySeconds 36900
```
- Convert the resource to JSON
```powershell
$CreatePersonalAccessTokenRequest | ConvertTo-JSON
```
[[Back to top]](#)