Skip to main content

sailpoint.access_model_metadata.AccessModelMetadataApi

Use this API to create and manage metadata attributes for your Access Model. Access Model Metadata allows you to add contextual information to your ISC Access Model items using pre-defined metadata for risk, regulations, privacy levels, etc., or by creating your own metadata attributes to reflect the unique needs of your organization. This release of the API includes support for entitlement metadata. Support for role and access profile metadata will be introduced in a subsequent release.

Common usages for Access Model metadata include:

  • Organizing and categorizing access items to make it easier for your users to search for and find the access rights they want to request, certify, or manage.

  • Providing richer information about access that is being acted on to allow stakeholders to make better decisions when approving, certifying, or managing access rights.

  • Identifying access that may requires additional approval requirements or be subject to more frequent review.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
create-access-model-metadata-attribute-v1POST /access-model-metadata/v1/attributesCreate access model metadata attribute
create-access-model-metadata-attribute-value-v1POST /access-model-metadata/v1/attributes/{key}/valuesCreate access model metadata value
get-access-model-metadata-attribute-v1GET /access-model-metadata/v1/attributes/{key}Get access model metadata attribute
get-access-model-metadata-attribute-value-v1GET /access-model-metadata/v1/attributes/{key}/values/{value}Get access model metadata value
list-access-model-metadata-attribute-v1GET /access-model-metadata/v1/attributesList access model metadata attributes
list-access-model-metadata-attribute-value-v1GET /access-model-metadata/v1/attributes/{key}/valuesList access model metadata values
update-access-model-metadata-attribute-v1PATCH /access-model-metadata/v1/attributes/{key}Update access model metadata attribute
update-access-model-metadata-attribute-value-v1PATCH /access-model-metadata/v1/attributes/{key}/values/{value}Update access model metadata value
update-access-model-metadata-by-filter-v1POST /access-model-metadata/v1/bulk-update/filterMetadata Attribute update by filter
update-access-model-metadata-by-ids-v1POST /access-model-metadata/v1/bulk-update/idsMetadata Attribute update by ids
update-access-model-metadata-by-query-v1POST /access-model-metadata/v1/bulk-update/queryMetadata Attribute update by query

create-access-model-metadata-attribute-v1

Create access model metadata attribute Create a new Access Model Metadata Attribute.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Bodyattribute_dtoAttributeDTOTrueAttribute to create

Return type

AttributeDTO

Responses

CodeDescriptionData TypeResponse headers
201CreatedAttributeDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_dto import AttributeDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
attribute_dto = '''{
"multiselect" : false,
"values" : [ {
"name" : "Public",
"value" : "public",
"status" : "active"
}, {
"name" : "Public",
"value" : "public",
"status" : "active"
} ],
"name" : "Privacy",
"description" : "Specifies the level of privacy associated with an access item.",
"type" : "governance",
"objectTypes" : [ "entitlement" ],
"key" : "iscPrivacy",
"status" : "active"
}''' # AttributeDTO | Attribute to create

try:
# Create access model metadata attribute
new_attribute_dto = AttributeDto.from_json(attribute_dto)
results = AccessModelMetadataApi(api_client).create_access_model_metadata_attribute_v1(attribute_dto=new_attribute_dto)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).create_access_model_metadata_attribute_v1(new_attribute_dto)
print("The response of AccessModelMetadataApi->create_access_model_metadata_attribute_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->create_access_model_metadata_attribute_v1: %s\n" % e)

[Back to top]

create-access-model-metadata-attribute-value-v1

Create access model metadata value Create a new value for an existing Access Model Metadata Attribute.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.
Bodyattribute_value_dtoAttributeValueDTOTrueAttribute value to create

Return type

AttributeValueDTO

Responses

CodeDescriptionData TypeResponse headers
201CreatedAttributeValueDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_value_dto import AttributeValueDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.
attribute_value_dto = '''{
"name" : "Public",
"value" : "public",
"status" : "active"
}''' # AttributeValueDTO | Attribute value to create

try:
# Create access model metadata value
new_attribute_value_dto = AttributeValueDto.from_json(attribute_value_dto)
results = AccessModelMetadataApi(api_client).create_access_model_metadata_attribute_value_v1(key=key, attribute_value_dto=new_attribute_value_dto)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).create_access_model_metadata_attribute_value_v1(key, new_attribute_value_dto)
print("The response of AccessModelMetadataApi->create_access_model_metadata_attribute_value_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->create_access_model_metadata_attribute_value_v1: %s\n" % e)

[Back to top]

get-access-model-metadata-attribute-v1

Get access model metadata attribute Get single Access Model Metadata Attribute

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.

Return type

AttributeDTO

Responses

CodeDescriptionData TypeResponse headers
200OKAttributeDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_dto import AttributeDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.

try:
# Get access model metadata attribute

results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_v1(key=key)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_v1(key)
print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_v1: %s\n" % e)

[Back to top]

get-access-model-metadata-attribute-value-v1

Get access model metadata value Get single Access Model Metadata Attribute Value

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.
PathvaluestrTrueTechnical name of the Attribute value.

Return type

AttributeValueDTO

Responses

CodeDescriptionData TypeResponse headers
200OKAttributeValueDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_value_dto import AttributeValueDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.
value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value.

try:
# Get access model metadata value

results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value_v1(key=key, value=value)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).get_access_model_metadata_attribute_value_v1(key, value)
print("The response of AccessModelMetadataApi->get_access_model_metadata_attribute_value_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->get_access_model_metadata_attribute_value_v1: %s\n" % e)

[Back to top]

list-access-model-metadata-attribute-v1

List access model metadata attributes Get a list of Access Model Metadata Attributes

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Queryfiltersstr(optional)Filter results using the standard syntax described in V3 API Standard Collection Parameters Filtering is supported for the following fields and operators: key: eq name: eq type: eq status: eq objectTypes: eq Supported composite operators are and, or
Querysortersstr(optional)Sort results using the standard syntax described in V3 API Standard Collection Parameters Sorting is supported for the following fields: name, key
Querylimitint(optional) (default to 250)Max number of results to return. See V3 API Standard Collection Parameters for more information.
Querycountbool(optional) (default to False)If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.

Return type

List[AttributeDTO]

Responses

CodeDescriptionData TypeResponse headers
200OKList[AttributeDTO]-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_dto import AttributeDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
filters = 'name eq \"Privacy\"' # str | 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: **key**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators are *and, or* (optional) # str | 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: **key**: *eq* **name**: *eq* **type**: *eq* **status**: *eq* **objectTypes**: *eq* Supported composite operators are *and, or* (optional)
sorters = 'name,-key' # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, key** (optional) # str | Sort results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#sorting-results) Sorting is supported for the following fields: **name, key** (optional)
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
count = False # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False)

try:
# List access model metadata attributes

results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_v1()
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_v1(filters, sorters, limit, count)
print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_v1: %s\n" % e)

[Back to top]

list-access-model-metadata-attribute-value-v1

List access model metadata values Get a list of Access Model Metadata Attribute Values

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.
Querylimitint(optional) (default to 250)Max number of results to return. See V3 API Standard Collection Parameters for more information.
Querycountbool(optional) (default to False)If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information.

Return type

List[AttributeValueDTO]

Responses

CodeDescriptionData TypeResponse headers
200OKList[AttributeValueDTO]-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_value_dto import AttributeValueDTO
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.
limit = 250 # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)
count = False # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False) # bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to False)

try:
# List access model metadata values

results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value_v1(key=key)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).list_access_model_metadata_attribute_value_v1(key, limit, count)
print("The response of AccessModelMetadataApi->list_access_model_metadata_attribute_value_v1:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->list_access_model_metadata_attribute_value_v1: %s\n" % e)

[Back to top]

update-access-model-metadata-attribute-v1

Update access model metadata attribute Update an existing Access Model Metadata Attribute.
The following fields are patchable: name, description, multiselect, values

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.
Bodyjson_patch_operation[]JsonPatchOperationTrueJSON Patch array to apply

Return type

AttributeDTO

Responses

CodeDescriptionData TypeResponse headers
200OK - Attribute updated successfullyAttributeDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_dto import AttributeDTO
from sailpoint.access_model_metadata.models.json_patch_operation import JsonPatchOperation
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.
json_patch_operation = '''[sailpoint.access_model_metadata.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSON Patch array to apply

try:
# Update access model metadata attribute
new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation)
results = AccessModelMetadataApi(api_client).update_access_model_metadata_attribute_v1(key=key, json_patch_operation=new_json_patch_operation)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).update_access_model_metadata_attribute_v1(key, new_json_patch_operation)
print("The response of AccessModelMetadataApi->update_access_model_metadata_attribute_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->update_access_model_metadata_attribute_v1: %s\n" % e)

[Back to top]

update-access-model-metadata-attribute-value-v1

Update access model metadata value Update an existing Access Model Metadata Attribute Value.
The following fields are patchable: name

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
PathkeystrTrueTechnical name of the Attribute.
PathvaluestrTrueTechnical name of the Attribute value.
Bodyjson_patch_operation[]JsonPatchOperationTrueJSON Patch array to apply

Return type

AttributeValueDTO

Responses

CodeDescriptionData TypeResponse headers
200OK - Attribute value updated successfullyAttributeValueDTO-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
404Not Found - returned if the request URL refers to a resource or object that does not existErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.attribute_value_dto import AttributeValueDTO
from sailpoint.access_model_metadata.models.json_patch_operation import JsonPatchOperation
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
key = 'iscPrivacy' # str | Technical name of the Attribute. # str | Technical name of the Attribute.
value = 'public' # str | Technical name of the Attribute value. # str | Technical name of the Attribute value.
json_patch_operation = '''[sailpoint.access_model_metadata.JsonPatchOperation()]''' # List[JsonPatchOperation] | JSON Patch array to apply

try:
# Update access model metadata value
new_json_patch_operation = JsonPatchOperation.from_json(json_patch_operation)
results = AccessModelMetadataApi(api_client).update_access_model_metadata_attribute_value_v1(key=key, value=value, json_patch_operation=new_json_patch_operation)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).update_access_model_metadata_attribute_value_v1(key, value, new_json_patch_operation)
print("The response of AccessModelMetadataApi->update_access_model_metadata_attribute_value_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->update_access_model_metadata_attribute_value_v1: %s\n" % e)

[Back to top]

update-access-model-metadata-by-filter-v1

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Metadata Attribute update by filter Bulk update Access Model Metadata Attribute Values using a filter

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Bodyentitlement_attribute_bulk_update_filter_requestEntitlementAttributeBulkUpdateFilterRequestTrueAttribute metadata bulk update request body.

Return type

AccessModelMetadataBulkUpdateResponse

Responses

CodeDescriptionData TypeResponse headers
200OKAccessModelMetadataBulkUpdateResponse-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.access_model_metadata_bulk_update_response import AccessModelMetadataBulkUpdateResponse
from sailpoint.access_model_metadata.models.entitlement_attribute_bulk_update_filter_request import EntitlementAttributeBulkUpdateFilterRequest
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
entitlement_attribute_bulk_update_filter_request = '''{
"values" : [ {
"attribute" : "iscFederalClassifications",
"values" : [ "topSecret" ]
} ],
"filters" : "id eq 2c9180867817ac4d017817c491119a20",
"replaceScope" : "attribute",
"operation" : "add"
}''' # EntitlementAttributeBulkUpdateFilterRequest | Attribute metadata bulk update request body.

try:
# Metadata Attribute update by filter
new_entitlement_attribute_bulk_update_filter_request = EntitlementAttributeBulkUpdateFilterRequest.from_json(entitlement_attribute_bulk_update_filter_request)
results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_filter_v1(entitlement_attribute_bulk_update_filter_request=new_entitlement_attribute_bulk_update_filter_request)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_filter_v1(new_entitlement_attribute_bulk_update_filter_request)
print("The response of AccessModelMetadataApi->update_access_model_metadata_by_filter_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->update_access_model_metadata_by_filter_v1: %s\n" % e)

[Back to top]

update-access-model-metadata-by-ids-v1

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Metadata Attribute update by ids Bulk update Access Model Metadata Attribute Values using ids.

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Bodyentitlement_attribute_bulk_update_ids_requestEntitlementAttributeBulkUpdateIdsRequestTrueAttribute metadata bulk update request body.

Return type

AccessModelMetadataBulkUpdateResponse

Responses

CodeDescriptionData TypeResponse headers
200OKAccessModelMetadataBulkUpdateResponse-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.access_model_metadata_bulk_update_response import AccessModelMetadataBulkUpdateResponse
from sailpoint.access_model_metadata.models.entitlement_attribute_bulk_update_ids_request import EntitlementAttributeBulkUpdateIdsRequest
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
entitlement_attribute_bulk_update_ids_request = '''{
"entitlements" : [ "2c9180867817ac4d017817c491119a20", "2c9180867817ac4d017817c491119a21" ],
"values" : [ {
"attribute" : "iscFederalClassifications",
"values" : [ "topSecret" ]
} ],
"replaceScope" : "attribute",
"operation" : "add"
}''' # EntitlementAttributeBulkUpdateIdsRequest | Attribute metadata bulk update request body.

try:
# Metadata Attribute update by ids
new_entitlement_attribute_bulk_update_ids_request = EntitlementAttributeBulkUpdateIdsRequest.from_json(entitlement_attribute_bulk_update_ids_request)
results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_ids_v1(entitlement_attribute_bulk_update_ids_request=new_entitlement_attribute_bulk_update_ids_request)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_ids_v1(new_entitlement_attribute_bulk_update_ids_request)
print("The response of AccessModelMetadataApi->update_access_model_metadata_by_ids_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->update_access_model_metadata_by_ids_v1: %s\n" % e)

[Back to top]

update-access-model-metadata-by-query-v1

deprecated

This endpoint has been deprecated and may be replaced or removed in future versions of the API.

Metadata Attribute update by query Bulk update Access Model Metadata Attribute Values using a query

API Spec

Parameters

Param TypeNameData TypeRequiredDescription
Bodyentitlement_attribute_bulk_update_query_requestEntitlementAttributeBulkUpdateQueryRequestTrueAttribute metadata bulk update request body.

Return type

AccessModelMetadataBulkUpdateResponse

Responses

CodeDescriptionData TypeResponse headers
200OKAccessModelMetadataBulkUpdateResponse-
400Client Error - Returned if the request body is invalid.ErrorResponseDto-
401Unauthorized - Returned if there is no authorization header, or if the JWT token is expired.ListAccessModelMetadataAttributeV1401Response-
403Forbidden - Returned if the user you are running as, doesn't have access to this end-point.ErrorResponseDto-
429Too 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.ListAccessModelMetadataAttributeV1429Response-
500Internal Server Error - Returned if there is an unexpected error.ErrorResponseDto-

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

Example

from sailpoint.access_model_metadata.api.access_model_metadata_api import AccessModelMetadataApi
from sailpoint.access_model_metadata.api_client import ApiClient
from sailpoint.access_model_metadata.models.access_model_metadata_bulk_update_response import AccessModelMetadataBulkUpdateResponse
from sailpoint.access_model_metadata.models.entitlement_attribute_bulk_update_query_request import EntitlementAttributeBulkUpdateQueryRequest
from sailpoint.configuration import Configuration
configuration = Configuration()


with ApiClient(configuration) as api_client:
entitlement_attribute_bulk_update_query_request = '''{
"query" : {
"queryDsl" : {
"match" : {
"name" : "john.doe"
}
},
"aggregationType" : "DSL",
"aggregationsVersion" : "",
"query" : {
"query" : "name:a*",
"timeZone" : "America/Chicago",
"fields" : "[\"firstName,lastName,email\"]",
"innerHit" : {
"query" : "source.name:\\\"Active Directory\\\"",
"type" : "access"
}
},
"aggregationsDsl" : { },
"sort" : [ "displayName", "+id" ],
"filters" : { },
"queryVersion" : "",
"queryType" : "SAILPOINT",
"includeNested" : true,
"queryResultFilter" : {
"excludes" : [ "stacktrace" ],
"includes" : [ "name", "displayName" ]
},
"indices" : [ "identities" ],
"typeAheadQuery" : {
"field" : "source.name",
"size" : 100,
"query" : "Work",
"sortByValue" : true,
"nestedType" : "access",
"sort" : "asc",
"maxExpansions" : 10
},
"textQuery" : {
"contains" : true,
"terms" : [ "The quick brown fox", "3141592", "7" ],
"matchAny" : false,
"fields" : [ "displayName", "employeeNumber", "roleCount" ]
},
"searchAfter" : [ "John Doe", "2c91808375d8e80a0175e1f88a575221" ],
"aggregations" : {
"filter" : {
"field" : "access.type",
"name" : "Entitlements",
"type" : "TERM",
"value" : "ENTITLEMENT"
},
"bucket" : {
"field" : "attributes.city",
"size" : 100,
"minDocCount" : 2,
"name" : "Identity Locations",
"type" : "TERMS"
},
"metric" : {
"field" : "@access.name",
"name" : "Access Name Count",
"type" : "COUNT"
},
"subAggregation" : {
"filter" : {
"field" : "access.type",
"name" : "Entitlements",
"type" : "TERM",
"value" : "ENTITLEMENT"
},
"bucket" : {
"field" : "attributes.city",
"size" : 100,
"minDocCount" : 2,
"name" : "Identity Locations",
"type" : "TERMS"
},
"metric" : {
"field" : "@access.name",
"name" : "Access Name Count",
"type" : "COUNT"
},
"subAggregation" : {
"filter" : {
"field" : "access.type",
"name" : "Entitlements",
"type" : "TERM",
"value" : "ENTITLEMENT"
},
"bucket" : {
"field" : "attributes.city",
"size" : 100,
"minDocCount" : 2,
"name" : "Identity Locations",
"type" : "TERMS"
},
"metric" : {
"field" : "@access.name",
"name" : "Access Name Count",
"type" : "COUNT"
},
"nested" : {
"name" : "id",
"type" : "access"
}
},
"nested" : {
"name" : "id",
"type" : "access"
}
},
"nested" : {
"name" : "id",
"type" : "access"
}
}
},
"values" : [ {
"attribute" : "iscFederalClassifications",
"values" : [ "topSecret" ]
} ],
"replaceScope" : "attribute",
"operation" : "add"
}''' # EntitlementAttributeBulkUpdateQueryRequest | Attribute metadata bulk update request body.

try:
# Metadata Attribute update by query
new_entitlement_attribute_bulk_update_query_request = EntitlementAttributeBulkUpdateQueryRequest.from_json(entitlement_attribute_bulk_update_query_request)
results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_query_v1(entitlement_attribute_bulk_update_query_request=new_entitlement_attribute_bulk_update_query_request)
# Below is a request that includes all optional parameters
# results = AccessModelMetadataApi(api_client).update_access_model_metadata_by_query_v1(new_entitlement_attribute_bulk_update_query_request)
print("The response of AccessModelMetadataApi->update_access_model_metadata_by_query_v1:\n")
print(results.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling AccessModelMetadataApi->update_access_model_metadata_by_query_v1: %s\n" % e)

[Back to top]