PrivilegeCriteria
Use this API to create, retrieve, update, and delete privilege criteria.
All URIs are relative to https://sailpoint.api.identitynow.com
| Method | HTTP request | Description |
|---|---|---|
| New-CustomPrivilegeCriteriaV1 | POST /criteria/v1/privilege | Create custom privilege criteria |
| Remove-CustomPrivilegeCriteriaV1 | DELETE /criteria/v1/privilege/{criteriaId} | Delete privilege criteria |
| Get-PrivilegeCriteriaV1 | GET /criteria/v1/privilege/{criteriaId} | Get privilege criteria |
| Get-PrivilegeCriteriaV1 | GET /criteria/v1/privilege | List privilege criteria |
| Send-CustomPrivilegeCriteriaValueV1 | PUT /criteria/v1/privilege/{criteriaId} | Update privilege criteria |
create-custom-privilege-criteria-v1
Use this API to create a custom privilege criteria
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Body | Createprivilegecriteriarequest | Createprivilegecriteriarequest | True | Create custom privilege criteria request body. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 201 | Custom privilege criteria created | Privilegecriteriadto |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListPrivilegeCriteriaV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | ListPrivilegeCriteriaV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto |
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
$Createprivilegecriteriarequest = @""@
# Create custom privilege criteria
try {
$Result = ConvertFrom-JsonToCreateprivilegecriteriarequest -Json $Createprivilegecriteriarequest
New-CustomPrivilegeCriteriaV1 -Createprivilegecriteriarequest $Result
# Below is a request that includes all optional parameters
# New-CustomPrivilegeCriteriaV1 -Createprivilegecriteriarequest $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling New-CustomPrivilegeCriteriaV1"
Write-Host $_.ErrorDetails
}
delete-custom-privilege-criteria-v1
Use this API to delete a specific custom privilege criteria.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Path | CriteriaId | String | True | The Id of the custom privilege criteria to delete. |
Return type
(empty response body)
Responses
| Code | Description | Data Type |
|---|---|---|
| 204 | Success | |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListPrivilegeCriteriaV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | ListPrivilegeCriteriaV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
$CriteriaId = "6d123044-5834-4e8d-a49f-9c70089b0de1" # String | The Id of the custom privilege criteria to delete.
# Delete privilege criteria
try {
Remove-CustomPrivilegeCriteriaV1 -CriteriaId $CriteriaId
# Below is a request that includes all optional parameters
# Remove-CustomPrivilegeCriteriaV1 -CriteriaId $CriteriaId
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Remove-CustomPrivilegeCriteriaV1"
Write-Host $_.ErrorDetails
}
get-privilege-criteria-v1
Use this API to get a specific privilege criteria.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Path | CriteriaId | String | True | The Id of the privilege criteria record to return. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | OK | Privilegecriteriadto |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListPrivilegeCriteriaV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | ListPrivilegeCriteriaV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
$CriteriaId = "6d123044-5834-4e8d-a49f-9c70089b0de1" # String | The Id of the privilege criteria record to return.
# Get privilege criteria
try {
Get-PrivilegeCriteriaV1 -CriteriaId $CriteriaId
# Below is a request that includes all optional parameters
# Get-PrivilegeCriteriaV1 -CriteriaId $CriteriaId
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-PrivilegeCriteriaV1"
Write-Host $_.ErrorDetails
}
list-privilege-criteria-v1
Use this API to list all privilege criteria matching a filter
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Query | Filters | String | True | Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: type: eq sourceId: eq privilegeLevel: eq Supported composite operators: and All filter values are case-sensitive for this API. For example, the following is valid: ?filters=type eq ""CUSTOM"" and sourceId eq ""2c91809175e6c63f0175fb5570220569"" |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | OK | Privilegecriteriadto[] |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListPrivilegeCriteriaV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | ListPrivilegeCriteriaV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto |
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
$Filters = 'type eq "CUSTOM" and sourceId eq "c42c45d8d7c04d2da64d215cd8c32f21"" # String | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **type**: *eq* **sourceId**: *eq* **privilegeLevel**: *eq* **Supported composite operators**: *and* All filter values are case-sensitive for this API. For example, the following is valid: `?filters=type eq ""CUSTOM"" and sourceId eq ""2c91809175e6c63f0175fb5570220569"'`
# List privilege criteria
try {
Get-PrivilegeCriteriaV1 -Filters $Filters
# Below is a request that includes all optional parameters
# Get-PrivilegeCriteriaV1 -Filters $Filters
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Get-PrivilegeCriteriaV1"
Write-Host $_.ErrorDetails
}
put-custom-privilege-criteria-value-v1
Use this API to update a specific custom privilege criteria by overwriting the information with new information.
Parameters
| Param Type | Name | Data Type | Required | Description |
|---|---|---|---|---|
| Path | CriteriaId | String | True | The Id of the privilege criteria record to return. |
| Body | Privilegecriteriadto | Privilegecriteriadto | True | The new version of the custom privilege criteria. This overwrites the existing privilege criteria. |
Return type
Responses
| Code | Description | Data Type |
|---|---|---|
| 200 | OK | Privilegecriteriadto |
| 400 | Client Error - Returned if the request body is invalid. | Errorresponsedto |
| 401 | Unauthorized - Returned if there is no authorization header, or if the JWT token is expired. | ListPrivilegeCriteriaV1401Response |
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | Errorresponsedto |
| 429 | Too Many Requests - Returned in response to too many requests in a given period of time - rate limited. The Retry-After header in the response includes how long to wait before trying again. | ListPrivilegeCriteriaV1429Response |
| 500 | Internal Server Error - Returned if there is an unexpected error. | Errorresponsedto |
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
$CriteriaId = "6d123044-5834-4e8d-a49f-9c70089b0de1" # String | The Id of the privilege criteria record to return.
$Privilegecriteriadto = @""@
# Update privilege criteria
try {
$Result = ConvertFrom-JsonToPrivilegecriteriadto -Json $Privilegecriteriadto
Send-CustomPrivilegeCriteriaValueV1 -CriteriaId $CriteriaId -Privilegecriteriadto $Result
# Below is a request that includes all optional parameters
# Send-CustomPrivilegeCriteriaValueV1 -CriteriaId $CriteriaId -Privilegecriteriadto $Result
} catch {
Write-Host $_.Exception.Response.StatusCode.value__ "Exception occurred when calling Send-CustomPrivilegeCriteriaValueV1"
Write-Host $_.ErrorDetails
}