Skip to content

Latest commit

 

History

History
80 lines (58 loc) · 2.08 KB

sites-sec-intel-profiles.md

File metadata and controls

80 lines (58 loc) · 2.08 KB

Sites Sec Intel Profiles

sitesSecIntelProfiles := client.SitesSecIntelProfiles()

Class Name

SitesSecIntelProfiles

List Site Sec Intel Profiles Derived

Get derived Sky-ATP secintel profiles for Site

ListSiteSecIntelProfilesDerived(
    ctx context.Context,
    siteId uuid.UUID,
    resolve *bool) (
    models.ApiResponse[[]models.SecintelProfile],
    error)

Parameters

Parameter Type Tags Description
siteId uuid.UUID Template, Required -
resolve *bool Query, Optional whether resolve the site variables

Response Type

[]models.SecintelProfile

Example Usage

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)
}

Example Response (as JSON)

[
  {
    "name": "secintel-custom",
    "profiles": [
      {
        "action": "default",
        "category": "CC"
      }
    ]
  }
]

Errors

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