Files
developer.sailpoint.com/docs/tools/sdk/go/Reference/V2025/Methods/ClassifySourceAPI.md
2025-06-16 14:28:43 +00:00

7.1 KiB

id, title, pagination_label, sidebar_label, sidebar_class_name, keywords, slug, tags
id title pagination_label sidebar_label sidebar_class_name keywords slug tags
v2025-classify-source ClassifySource ClassifySource ClassifySource gosdk
go
Golang
sdk
ClassifySource
V2025ClassifySource
/tools/sdk/go/v2025/methods/classify-source
SDK
Software Development Kit
ClassifySource
V2025ClassifySource

ClassifySourceAPI

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

Method HTTP request Description
delete-classify-machine-account-from-source Delete /sources/{sourceId}/classify Cancel classify source's accounts process
get-classify-machine-account-from-source-status Get /sources/{sourceId}/classify Source accounts classification status
send-classify-machine-account-from-source Post /sources/{sourceId}/classify Classify source's all accounts

delete-classify-machine-account-from-source

Cancel classify source's accounts process Use this API to cancel account classification process on a source. A token with API, ORG_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Source ID.

Other Parameters

Other parameters are passed through a pointer to a apiDeleteClassifyMachineAccountFromSourceRequest struct via the builder pattern

Name Type Description Notes

Return type

(empty response body)

HTTP request headers

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

Example

package main

import (
	"context"
	"fmt"
	"os"
  
    
	sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
    id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID.

    

    configuration := sailpoint.NewDefaultConfiguration()
    apiClient := sailpoint.NewAPIClient(configuration)
    r, err := apiClient.V2025.ClassifySourceAPI.DeleteClassifyMachineAccountFromSource(context.Background(), id).Execute()
	  //r, err := apiClient.V2025.ClassifySourceAPI.DeleteClassifyMachineAccountFromSource(context.Background(), id).Execute()
    if err != nil {
	    fmt.Fprintf(os.Stderr, "Error when calling `ClassifySourceAPI.DeleteClassifyMachineAccountFromSource``: %v\n", err)
	    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    
}

[Back to top]

get-classify-machine-account-from-source-status

Source accounts classification status Use this API to get the status of Machine Account Classification process for a source. A token with API, ORG_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Source ID.

Other Parameters

Other parameters are passed through a pointer to a apiGetClassifyMachineAccountFromSourceStatusRequest struct via the builder pattern

Name Type Description Notes

Return type

SourceClassificationStatus

HTTP request headers

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

Example

package main

import (
	"context"
	"fmt"
	"os"
  
    
	sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
    id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID.

    

    configuration := sailpoint.NewDefaultConfiguration()
    apiClient := sailpoint.NewAPIClient(configuration)
    resp, r, err := apiClient.V2025.ClassifySourceAPI.GetClassifyMachineAccountFromSourceStatus(context.Background(), id).Execute()
	  //resp, r, err := apiClient.V2025.ClassifySourceAPI.GetClassifyMachineAccountFromSourceStatus(context.Background(), id).Execute()
    if err != nil {
	    fmt.Fprintf(os.Stderr, "Error when calling `ClassifySourceAPI.GetClassifyMachineAccountFromSourceStatus``: %v\n", err)
	    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetClassifyMachineAccountFromSourceStatus`: SourceClassificationStatus
    fmt.Fprintf(os.Stdout, "Response from `ClassifySourceAPI.GetClassifyMachineAccountFromSourceStatus`: %v\n", resp)
}

[Back to top]

send-classify-machine-account-from-source

Classify source's all accounts Use this API to classify all the accounts from a source. A token with API, ORG_ADMIN, ROLE_ADMIN, ROLE_SUBADMIN, SOURCE_ADMIN, or SOURCE_SUBADMIN authority is required to call this API.

API Spec

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id string Source ID.

Other Parameters

Other parameters are passed through a pointer to a apiSendClassifyMachineAccountFromSourceRequest struct via the builder pattern

Name Type Description Notes

Return type

SendClassifyMachineAccountFromSource200Response

HTTP request headers

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

Example

package main

import (
	"context"
	"fmt"
	"os"
  
    
	sailpoint "github.com/sailpoint-oss/golang-sdk/v2"
)

func main() {
    id := `ef38f94347e94562b5bb8424a56397d8` // string | Source ID. # string | Source ID.

    

    configuration := sailpoint.NewDefaultConfiguration()
    apiClient := sailpoint.NewAPIClient(configuration)
    resp, r, err := apiClient.V2025.ClassifySourceAPI.SendClassifyMachineAccountFromSource(context.Background(), id).Execute()
	  //resp, r, err := apiClient.V2025.ClassifySourceAPI.SendClassifyMachineAccountFromSource(context.Background(), id).Execute()
    if err != nil {
	    fmt.Fprintf(os.Stderr, "Error when calling `ClassifySourceAPI.SendClassifyMachineAccountFromSource``: %v\n", err)
	    fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `SendClassifyMachineAccountFromSource`: SendClassifyMachineAccountFromSource200Response
    fmt.Fprintf(os.Stdout, "Response from `ClassifySourceAPI.SendClassifyMachineAccountFromSource`: %v\n", resp)
}

[Back to top]