Scim Logs

A SCIM log entry represents a single SCIM request made to the system. It includes the request made and response provided to the SCIM client.

List Scim Logs

SDK Method

scim_log.List()

Return Values

Returns a *scim_log.Iter and an error. Range over All() to receive files_sdk.ScimLog values and errors. Check each loop error before using its resource. Next() and Err() remain supported.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator.

Additional Arguments

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    scim_log "github.com/Files-com/files-sdk-go/v3/scimlog"
)

scimLogIterator, err := scim_log.List(files_sdk.ScimLogListParams{})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}

for scimLog, err := range scimLogIterator.All() {
    if err != nil {
        var respErr files_sdk.ResponseError
        if errors.As(err, &respErr) {
            fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
        } else {
            fmt.Printf("Request failed: %v\n", err)
        }
        return
    }
    fmt.Println(scimLog)
}

Show Scim Log

SDK Method

scim_log.Find()

Return Values

Returns a files_sdk.ScimLog value and an error.

Authorization Requirement

Requires a Site-Wide API key, or a User API key or session from a Site Administrator.

ScimLogFindParams Fields

FieldDescription
Id
int64
Required
Scim Log ID.

Example Request

import (
    "fmt"
    "errors"

    files_sdk "github.com/Files-com/files-sdk-go/v3"
    scim_log "github.com/Files-com/files-sdk-go/v3/scimlog"
)

scimLog, err := scim_log.Find(files_sdk.ScimLogFindParams{Id: 1})
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Printf("API error (%s): %s\n", respErr.Type, respErr.ErrorMessage)
    } else {
        fmt.Printf("Request failed: %v\n", err)
    }
    return
}
fmt.Println(scimLog)

The ScimLog Object

Some of the methods above return a ScimLog object. The attributes of this object are listed below.

AttributeDescription
Id
int64
The unique ID of this SCIM request.
CreatedAt
string
The date and time when this SCIM request occurred.
RequestPath
string
The path portion of the URL requested.
RequestMethod
string
The HTTP method used for this request.
HttpResponseCode
string
The HTTP response code returned for this request.
UserAgent
string
The User-Agent header sent with the request.
RequestJson
string
The JSON payload sent with the request.
ResponseJson
string
The JSON payload returned in the response.