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

scimlog.List()

Return Object

[]*ScimLog

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

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.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

for scimLogIterator.Next() {
    scimLog := scimLogIterator.scimLog()
}
err = scimLogIterator.Err()
if err != nil {
    var respErr files_sdk.ResponseError
    if errors.As(err, &respErr) {
        fmt.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

Show Scim Log

SDK Method

scimlog.Find()

Return Object

ScimLog

Authorization Requirement

Requires either a Site-Wide API key or User API key or session from a User with Site Admin permissions.

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.Println("Response Error Occurred (" + respErr.Type + "): " + respErr.ErrorMessage)
    } else {
        fmt.Printf("Unexpected Error: %s\n", err.Error())
    }
}

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.