Skip to content

Add Benchmark Task API Scope not accepting Device Group name #3

@jakejennings

Description

@jakejennings

I am receiving an error when I am trying to add a benchmark task. I am trying to create the task for a specific Device Group. When I specify the group like the API requires, I am receiving this error:
Benchmark Task added Failed! - {"statusCode":791006,"statusDescription":"device group : Shared Device Groups/TEST IDF/test402 does not exist."}

This my payload:
{'taskName': 'Gather IDF Data', 'startDate': '2023-11-13', 'schedule': {'frequency': 'once', 'startTime': ['13:00:00']}, 'deviceScope': {'scopeType': 'deviceGroup', 'scopes': ['Shared Device Groups/TEST IDF/test402']}, 'cliCommands': ['show version']}

The device group exists in the domain (from the GUI):
"data": { "parentId": "f_083a9973-bf29-452c-a33b-c34b55600668", "isFolder": false, "path": "Shared Device Groups/TEST IDF/test402", "ancestors": [ "f_sharedDevGroups", "f_083a9973-bf29-452c-a33b-c34b55600668" ], "order": 0, "HasInterface": false, "count": 1, "devCount": 1, "devCountNoIntf": 1, "intfCount": 0, "canEdit": true, "isMPLSCloud": false, "isWAN": false, "isDMVPN": false, "isAutoTest": false, "ID": "791a6b98-83cc-c990-bf3f-236e4c63dd40", "Name": "test402", "Type": 0 }

Am I not matching the Device Group properly? The documentation says it needs to be the full path and not a GUID.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions