sailpoint.v2024.MachineClassificationConfigApi
All URIs are relative to https://sailpoint.api.identitynow.com/v2024
| Method | HTTP request | Description | 
|---|---|---|
| delete-machine-classification-config | DELETE /sources/{sourceId}/machine-classification-config | Delete source's classification config | 
| get-machine-classification-config | GET /sources/{sourceId}/machine-classification-config | Machine classification config for source | 
| set-machine-classification-config | PUT /sources/{sourceId}/machine-classification-config | Update source's classification config | 
delete-machine-classification-config
Delete source's classification config Use this API to remove Classification Config for a Source. A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.
Parameters
| Param Type | Name | Data Type | Required | Description | 
|---|---|---|---|---|
| Path | id | str | True | Source ID. | 
Return type
(empty response body)
Responses
| Code | Description | Data Type | Response headers | 
|---|---|---|---|
| 200 | No content - indicates the request was successful but there is no content to be returned in the response. | - | |
| 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. | ListAccessProfiles401Response | - | 
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - | 
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | 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. | ListAccessProfiles429Response | - | 
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto | - | 
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.v2024.api.machine_classification_config_api import MachineClassificationConfigApi
from sailpoint.v2024.api_client import ApiClient
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
    id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source ID. # str | Source ID.
    try:
        # Delete source's classification config
        
        MachineClassificationConfigApi(api_client).delete_machine_classification_config(id=id)
        # Below is a request that includes all optional parameters
        # MachineClassificationConfigApi(api_client).delete_machine_classification_config(id)
    except Exception as e:
        print("Exception when calling MachineClassificationConfigApi->delete_machine_classification_config: %s\n" % e)
get-machine-classification-config
Machine classification config for source This API returns a Machine Classification Config for a Source using Source ID.
Parameters
| Param Type | Name | Data Type | Required | Description | 
|---|---|---|---|---|
| Path | id | str | True | Source ID | 
Return type
Responses
| Code | Description | Data Type | Response headers | 
|---|---|---|---|
| 200 | A Config Object | MachineClassificationConfig | - | 
| 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. | ListAccessProfiles401Response | - | 
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - | 
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | 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. | ListAccessProfiles429Response | - | 
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto | - | 
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
Example
from sailpoint.v2024.api.machine_classification_config_api import MachineClassificationConfigApi
from sailpoint.v2024.api_client import ApiClient
from sailpoint.v2024.models.machine_classification_config import MachineClassificationConfig
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
    id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source ID # str | Source ID
    try:
        # Machine classification config for source
        
        results = MachineClassificationConfigApi(api_client).get_machine_classification_config(id=id)
        # Below is a request that includes all optional parameters
        # results = MachineClassificationConfigApi(api_client).get_machine_classification_config(id)
        print("The response of MachineClassificationConfigApi->get_machine_classification_config:\n")
        print(results.model_dump_json(by_alias=True, indent=4))
    except Exception as e:
        print("Exception when calling MachineClassificationConfigApi->get_machine_classification_config: %s\n" % e)
set-machine-classification-config
Update source's classification config Use this API to update Classification Config for a Source. A token with ORG_ADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.
Parameters
| Param Type | Name | Data Type | Required | Description | 
|---|---|---|---|---|
| Path | id | str | True | Source ID. | 
| Body | machine_classification_config | MachineClassificationConfig | True | 
Return type
Responses
| Code | Description | Data Type | Response headers | 
|---|---|---|---|
| 200 | Updated Machine Classification Config Object. | MachineClassificationConfig | - | 
| 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. | ListAccessProfiles401Response | - | 
| 403 | Forbidden - Returned if the user you are running as, doesn't have access to this end-point. | ErrorResponseDto | - | 
| 404 | Not Found - returned if the request URL refers to a resource or object that does not exist | 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. | ListAccessProfiles429Response | - | 
| 500 | Internal Server Error - Returned if there is an unexpected error. | ErrorResponseDto | - | 
HTTP request headers
- Content-Type: application/json
- Accept: application/json
Example
from sailpoint.v2024.api.machine_classification_config_api import MachineClassificationConfigApi
from sailpoint.v2024.api_client import ApiClient
from sailpoint.v2024.models.machine_classification_config import MachineClassificationConfig
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
    id = 'ef38f94347e94562b5bb8424a56397d8' # str | Source ID. # str | Source ID.
    machine_classification_config = '''{
          "criteria" : {
            "children" : [ {
              "children" : [ {
                "children" : [ "children", "children" ],
                "caseSensitive" : false,
                "dataType" : "dataType",
                "attribute" : "sAMAccountName",
                "operation" : "EQUALS",
                "value" : "SVC"
              }, {
                "children" : [ "children", "children" ],
                "caseSensitive" : false,
                "dataType" : "dataType",
                "attribute" : "sAMAccountName",
                "operation" : "EQUALS",
                "value" : "SVC"
              } ],
              "caseSensitive" : false,
              "dataType" : "dataType",
              "attribute" : "employeeType",
              "operation" : "EQUALS",
              "value" : "SERVICE"
            }, {
              "children" : [ {
                "children" : [ "children", "children" ],
                "caseSensitive" : false,
                "dataType" : "dataType",
                "attribute" : "sAMAccountName",
                "operation" : "EQUALS",
                "value" : "SVC"
              }, {
                "children" : [ "children", "children" ],
                "caseSensitive" : false,
                "dataType" : "dataType",
                "attribute" : "sAMAccountName",
                "operation" : "EQUALS",
                "value" : "SVC"
              } ],
              "caseSensitive" : false,
              "dataType" : "dataType",
              "attribute" : "employeeType",
              "operation" : "EQUALS",
              "value" : "SERVICE"
            } ],
            "caseSensitive" : false,
            "dataType" : "dataType",
            "attribute" : "distinguishedName",
            "operation" : "EQUALS",
            "value" : "OU=Service Accounts"
          },
          "created" : "2017-07-11T18:45:37.098Z",
          "modified" : "2018-06-25T20:22:28.104Z",
          "classificationMethod" : "SOURCE",
          "enabled" : true
        }''' # MachineClassificationConfig | 
    try:
        # Update source's classification config
        new_machine_classification_config = MachineClassificationConfig.from_json(machine_classification_config)
        results = MachineClassificationConfigApi(api_client).set_machine_classification_config(id=id, machine_classification_config=new_machine_classification_config)
        # Below is a request that includes all optional parameters
        # results = MachineClassificationConfigApi(api_client).set_machine_classification_config(id, new_machine_classification_config)
        print("The response of MachineClassificationConfigApi->set_machine_classification_config:\n")
        print(results.model_dump_json(by_alias=True, indent=4))
    except Exception as e:
        print("Exception when calling MachineClassificationConfigApi->set_machine_classification_config: %s\n" % e)