Connectors
...
Actions
Get Asset
5 min
description gets the asset associated with id or uuid endpoint url rest/asset/{{id}} method get inputs path parameters (object) – required id (string) – required parameters (object) fields (string) output example \[ { "status code" 200, "response headers" {}, "reason" "ok", "json body" { "type" "regular", "response" { "id" "33", "name" "test", "type" "combination", "description" "", "tags" "", "context" "", "status" "0", "templateid" " 1", "createdtime" "1412171859", "modifiedtime" "1412171859", "typefields" { "combinations" { "operator" "intersection", "operand1" { "id" "28", "name" "test 1", "description" "", "uuid" "370cdc1b 6aa9 4897 844c 01c4caf80220" }, "operand2" { "id" "29", "name" "test 2", "description" "", "uuid" "359c3a46 ce56 420c 8305 6498a72aa3f6" } } }, "repositories" \[ { "ipcount" "1", "repository" { "id" "37", "name" "ag repo1", "description" "", "type" "local", "uuid" "488a8ee7 69f3 4e49 a53f 0b1db6cf8209" } }, { "ipcount" "1", "repository" { "id" "38", "name" "jm ipv4", "description" "", "type" "local", "uuid" "d7cfe6cf 8a69 4859 b9d0 9c6f05d1672d" } }, { "ipcount" "0", "repository" { "id" "39", "name" "ipv6 rep", "description" "", "type" "local", "uuid" "7c187636 3180 4e56 8e59 688ac2a7e831" } } ], "ipcount" 0, "groups" \[], "assetdatafields" \[], "viewableips" \[ { "repository" { "id" "37", "name" "ag repo1", "description" "", "type" "local", "uuid" "488a8ee7 69f3 4e49 a53f 0b1db6cf8209" }, "iplist" "192 168 1 1\n", "ipcount" "1" }, { "repository" { "id" "38", "name" "jm ipv4", "description" "", "type" "local", "uuid" "d7cfe6cf 8a69 4859 b9d0 9c6f05d1672d" }, "iplist" "192 168 1 1\n", "ipcount" "1" }, { "repository" { "id" "39", "name" "ipv6 rep", "description" "", "type" "local", "uuid" "7c187636 3180 4e56 8e59 688ac2a7e831" }, "iplist" "", "ipcount" "0" } ], "creator" { "id" "1", "username" "head", "firstname" "security manager", "lastname" "", "uuid" "48f26f3b 6a79 4153 96db 4c63d1bf3d46" }, "owner" { "id" "1", "username" "head", "firstname" "security manager", "lastname" "", "uuid" "48f26f3b 6a79 4153 96db 4c63d1bf3d46" }, "ownergroup" { "id" "0", "name" "full access", "description" "full access group" }, "targetgroup" { "id" 1, "name" "", "description" "" } }, "error code" 0, "error msg" "", "warnings" \[], "timestamp" 1412273575 } } ] output parameters status code (number) reason (string) json body (object) type (string) response (object) id (string) name (string) type (string) description (string) tags (string) context (string) status (string) templateid (string) createdtime (string) modifiedtime (string) typefields (object) combinations (object) operator (string) operand1 (object) id (string) name (string) description (string) uuid (string) operand2 (object) id (string) name (string) description (string) uuid (string) repositories (array) ipcount (string) repository (object) id (string) name (string) description (string) type (string) uuid (string) ipcount (number) groups (array) file name (string) – required file (string) – required assetdatafields (array) file name (string) – required file (string) – required viewableips (array) repository (object) id (string) name (string) description (string) type (string) uuid (string) iplist (string) ipcount (string) creator (object) id (string) username (string) firstname (string) lastname (string) uuid (string) owner (object) id (string) username (string) firstname (string) lastname (string) uuid (string) ownergroup (object) id (string) name (string) description (string) targetgroup (object) id (number) name (string) description (string) error code (number) error msg (string) warnings (array) file name (string) – required file (string) – required timestamp (number)