orgsClientsWan := client.OrgsClientsWan()
OrgsClientsWan
- Count Org Wan Client Events
- Count Org Wan Clients
- Search Org Wan Client Events
- Search Org Wan Clients
Count by Distinct Attributes of Org WAN Client-Events
CountOrgWanClientEvents(
ctx context.Context,
orgId uuid.UUID,
distinct *models.OrgWanClientsEventsCountDistinctEnum,
mType *string,
start *int,
end *int,
duration *string,
limit *int) (
models.ApiResponse[models.RepsonseCount],
error)
Parameter | Type | Tags | Description |
---|---|---|---|
orgId |
uuid.UUID |
Template, Required | - |
distinct |
*models.OrgWanClientsEventsCountDistinctEnum |
Query, Optional | Default: "type" |
mType |
*string |
Query, Optional | see listDeviceEventsDefinitions |
start |
*int |
Query, Optional | start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified |
end |
*int |
Query, Optional | end datetime, can be epoch or relative time like -1d, -2h; now if not specified |
duration |
*string |
Query, Optional | duration like 7d, 2w Default: "1d" |
limit |
*int |
Query, Optional | Default: 100 Constraints: >= 0 |
ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
distinct := models.OrgWanClientsEventsCountDistinctEnum("type")
duration := "10m"
limit := 100
apiResponse, err := orgsClientsWan.CountOrgWanClientEvents(ctx, orgId, &distinct, nil, nil, nil, &duration, &limit)
if err != nil {
log.Fatalln(err)
} else {
// Printing the result and response
fmt.Println(apiResponse.Data)
fmt.Println(apiResponse.Response.StatusCode)
}
{
"distinct": "string",
"end": 0,
"limit": 0,
"results": [
{
"count": 0,
"property": "string"
}
],
"start": 0,
"total": 0
}
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 |
Count Org WAN Clients
CountOrgWanClients(
ctx context.Context,
orgId uuid.UUID,
distinct *models.OrgWanClientsCountDistinctEnum,
start *int,
end *int,
duration *string,
limit *int,
page *int) (
models.ApiResponse[models.RepsonseCount],
error)
Parameter | Type | Tags | Description |
---|---|---|---|
orgId |
uuid.UUID |
Template, Required | - |
distinct |
*models.OrgWanClientsCountDistinctEnum |
Query, Optional | Default: "mac" |
start |
*int |
Query, Optional | start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified |
end |
*int |
Query, Optional | end datetime, can be epoch or relative time like -1d, -2h; now if not specified |
duration |
*string |
Query, Optional | duration like 7d, 2w Default: "1d" |
limit |
*int |
Query, Optional | Default: 100 Constraints: >= 0 |
page |
*int |
Query, Optional | Default: 1 Constraints: >= 1 |
ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
distinct := models.OrgWanClientsCountDistinctEnum("mac")
duration := "10m"
limit := 100
page := 1
apiResponse, err := orgsClientsWan.CountOrgWanClients(ctx, orgId, &distinct, nil, nil, &duration, &limit, &page)
if err != nil {
log.Fatalln(err)
} else {
// Printing the result and response
fmt.Println(apiResponse.Data)
fmt.Println(apiResponse.Response.StatusCode)
}
{
"distinct": "string",
"end": 0,
"limit": 0,
"results": [
{
"count": 0,
"property": "string"
}
],
"start": 0,
"total": 0
}
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 |
Search Org WAN Client Events
SearchOrgWanClientEvents(
ctx context.Context,
orgId uuid.UUID,
mType *string,
mac *string,
hostname *string,
ip *string,
mfg *string,
nacruleId *string,
start *int,
end *int,
duration *string,
limit *int) (
models.ApiResponse[models.SearchEventsWanClient],
error)
Parameter | Type | Tags | Description |
---|---|---|---|
orgId |
uuid.UUID |
Template, Required | - |
mType |
*string |
Query, Optional | see listDeviceEventsDefinitions |
mac |
*string |
Query, Optional | partial / full MAC address |
hostname |
*string |
Query, Optional | partial / full hostname |
ip |
*string |
Query, Optional | client IP |
mfg |
*string |
Query, Optional | Manufacture |
nacruleId |
*string |
Query, Optional | nacrule_id |
start |
*int |
Query, Optional | start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified |
end |
*int |
Query, Optional | end datetime, can be epoch or relative time like -1d, -2h; now if not specified |
duration |
*string |
Query, Optional | duration like 7d, 2w Default: "1d" |
limit |
*int |
Query, Optional | Default: 100 Constraints: >= 0 |
ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
duration := "10m"
limit := 100
apiResponse, err := orgsClientsWan.SearchOrgWanClientEvents(ctx, orgId, nil, nil, nil, nil, nil, nil, nil, nil, &duration, &limit)
if err != nil {
log.Fatalln(err)
} else {
// Printing the result and response
fmt.Println(apiResponse.Data)
fmt.Println(apiResponse.Response.StatusCode)
}
{
"end": 0,
"limit": 0,
"results": {
"When": "2022-12-31 23:59:59.293000+00:00",
"ev_type": "CLIENT_IP_ASSIGNED",
"metadata": {},
"org_id": "b0b9f142-aaba-11e6-aafc-0242ac110002",
"random_mac": true,
"site_id": "fc656275-b157-43fd-b922-5f4f341c19bf",
"text": "DHCP Ack IP 192.168.88.216",
"wcid": "62bbfb75-10d8-49d1-dec7-d2df91624287"
},
"start": 0,
"total": 0
}
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 |
Search Org WAN Clients
SearchOrgWanClients(
ctx context.Context,
orgId uuid.UUID,
mac *string,
hostname *string,
ip *string,
network *string,
ipSrc *string,
mfg *string,
start *int,
end *int,
duration *string,
limit *int,
page *int) (
models.ApiResponse[models.SearchWanClient],
error)
Parameter | Type | Tags | Description |
---|---|---|---|
orgId |
uuid.UUID |
Template, Required | - |
mac |
*string |
Query, Optional | partial / full MAC address |
hostname |
*string |
Query, Optional | partial / full hostname |
ip |
*string |
Query, Optional | client IP |
network |
*string |
Query, Optional | network |
ipSrc |
*string |
Query, Optional | IP source |
mfg |
*string |
Query, Optional | Manufacture |
start |
*int |
Query, Optional | start datetime, can be epoch or relative time like -1d, -1w; -1d if not specified |
end |
*int |
Query, Optional | end datetime, can be epoch or relative time like -1d, -2h; now if not specified |
duration |
*string |
Query, Optional | duration like 7d, 2w Default: "1d" |
limit |
*int |
Query, Optional | Default: 100 Constraints: >= 0 |
page |
*int |
Query, Optional | Default: 1 Constraints: >= 1 |
ctx := context.Background()
orgId := uuid.MustParse("000000ab-00ab-00ab-00ab-0000000000ab")
duration := "10m"
limit := 100
page := 1
apiResponse, err := orgsClientsWan.SearchOrgWanClients(ctx, orgId, nil, nil, nil, nil, nil, nil, nil, nil, &duration, &limit, &page)
if err != nil {
log.Fatalln(err)
} else {
// Printing the result and response
fmt.Println(apiResponse.Data)
fmt.Println(apiResponse.Response.StatusCode)
}
{
"end": 0,
"limit": 0,
"results": [
{
"When": "2022-12-31T23:59:43.497+0000",
"hostname": [
"sonoszp"
],
"ip": [
"192.168.1.139"
],
"last_hostname": "sonoszp",
"last_ip": "192.168.1.139",
"mfg": "Sonos",
"org_id": "b4e16c72-d50e-4c03-a952-a3217e231e2c",
"site_id": "f688779c-e335-4f88-8d7c-9c5e9964528b",
"wcid": "8bbe7389-212b-c65d-2208-00fab2017936"
}
],
"start": 0,
"total": 0
}
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 |