sitesSecIntelProfiles := client.SitesSecIntelProfiles()
SitesSecIntelProfiles
Get derived Sky-ATP secintel profiles for Site
ListSiteSecIntelProfilesDerived(
ctx context.Context,
siteId uuid.UUID,
resolve *bool) (
models.ApiResponse[[]models.SecintelProfile],
error)
Parameter | Type | Tags | Description |
---|---|---|---|
siteId |
uuid.UUID |
Template, Required | - |
resolve |
*bool |
Query, Optional | whether resolve the site variables |
ctx := context.Background()
siteId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
apiResponse, err := sitesSecIntelProfiles.ListSiteSecIntelProfilesDerived(ctx, siteId, nil)
if err != nil {
log.Fatalln(err)
} else {
// Printing the result and response
fmt.Println(apiResponse.Data)
fmt.Println(apiResponse.Response.StatusCode)
}
[
{
"name": "secintel-custom",
"profiles": [
{
"action": "default",
"category": "CC"
}
]
}
]
HTTP Status Code | Error Description | Exception Class |
---|---|---|
400 | Bad Syntax | ResponseHttp400Exception |
401 | Unauthorized | ResponseHttp401ErrorException |
403 | Permission Denied | ResponseHttp403ErrorException |
404 | Not found. The API endpoint doesn’t exist or resource doesn’ t exist | ResponseHttp404Exception |
429 | Too Many Request. The API Token used for the request reached the 5000 API Calls per hour threshold | ResponseHttp429ErrorException |