All URIs are relative to https://localhost:3780
Method | HTTP request | Description |
---|---|---|
add_asset_tag | PUT /api/3/assets/{id}/tags/{tagId} | Asset Tag |
create_asset | POST /api/3/sites/{id}/assets | Assets |
delete_asset | DELETE /api/3/assets/{id} | Asset |
find_assets | POST /api/3/assets/search | Asset Search |
get_asset | GET /api/3/assets/{id} | Asset |
get_asset_databases | GET /api/3/assets/{id}/databases | Asset Databases |
get_asset_files | GET /api/3/assets/{id}/files | Asset Files |
get_asset_service | GET /api/3/assets/{id}/services/{protocol}/{port} | Asset Service |
get_asset_service_configurations | GET /api/3/assets/{id}/services/{protocol}/{port}/configurations | Asset Service Configurations |
get_asset_service_databases | GET /api/3/assets/{id}/services/{protocol}/{port}/databases | Asset Service Databases |
get_asset_service_user_groups | GET /api/3/assets/{id}/services/{protocol}/{port}/user_groups | Asset Service User Groups |
get_asset_service_users | GET /api/3/assets/{id}/services/{protocol}/{port}/users | Asset Service Users |
get_asset_service_web_application | GET /api/3/assets/{id}/services/{protocol}/{port}/web_applications/{webApplicationId} | Asset Service Web Application |
get_asset_service_web_applications | GET /api/3/assets/{id}/services/{protocol}/{port}/web_applications | Asset Service Web Applications |
get_asset_services | GET /api/3/assets/{id}/services | Asset Services |
get_asset_software | GET /api/3/assets/{id}/software | Asset Software |
get_asset_tags | GET /api/3/assets/{id}/tags | Asset Tags |
get_asset_user_groups | GET /api/3/assets/{id}/user_groups | Asset User Groups |
get_asset_users | GET /api/3/assets/{id}/users | Asset Users |
get_assets | GET /api/3/assets | Assets |
get_operating_system | GET /api/3/operating_systems/{id} | Operating System |
get_operating_systems | GET /api/3/operating_systems | Operating Systems |
get_software | GET /api/3/software/{id} | Software |
get_softwares | GET /api/3/software | Software |
remove_asset_tag | DELETE /api/3/assets/{id}/tags/{tagId} | Asset Tag |
Links add_asset_tag(id, tag_id)
Asset Tag
Assigns the specified tag to the asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
tag_id = 56 # int | The identifier of the tag.
try:
# Asset Tag
api_response = api_instance.add_asset_tag(id, tag_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->add_asset_tag: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
tag_id | int | The identifier of the tag. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CreatedReference create_asset(id, asset=asset)
Assets
Creates or updates an asset with the specified details.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 56 # int | The identifier of the site.
asset = rapid7vmconsole.AssetCreate() # AssetCreate | The details of the asset being added or updated. The operating system can be specified in one of three ways, with the order of precedence: `\"osFingerprint\"`, `\"os\"`, `\"cpe\"` (optional)
try:
# Assets
api_response = api_instance.create_asset(id, asset=asset)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->create_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the site. | |
asset | AssetCreate | The details of the asset being added or updated. The operating system can be specified in one of three ways, with the order of precedence: `"osFingerprint"`, `"os"`, `"cpe"` | [optional] |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Links delete_asset(id)
Asset
Deletes the specified asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset
api_response = api_instance.delete_asset(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->delete_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageOfAsset find_assets(param1, page=page, size=size, sort=sort)
Asset Search
Returns all assets for which you have access that match the given search criteria.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
param1 = rapid7vmconsole.SearchCriteria() # SearchCriteria | param1
page = 0 # int | The index of the page (zero-based) to retrieve. (optional) (default to 0)
size = 10 # int | The number of records per page to retrieve. (optional) (default to 10)
sort = ['sort_example'] # list[str] | The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. (optional)
try:
# Asset Search
api_response = api_instance.find_assets(param1, page=page, size=size, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->find_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
param1 | SearchCriteria | param1 | |
page | int | The index of the page (zero-based) to retrieve. | [optional] [default to 0] |
size | int | The number of records per page to retrieve. | [optional] [default to 10] |
sort | list[str] | The criteria to sort the records by, in the format: `property[,ASC | DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Asset get_asset(id)
Asset
Returns the specified asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset
api_response = api_instance.get_asset(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesDatabase get_asset_databases(id)
Asset Databases
Returns the databases enumerated on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Databases
api_response = api_instance.get_asset_databases(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_databases: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesFile get_asset_files(id)
Asset Files
Returns the files discovered on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Files
api_response = api_instance.get_asset_files(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_files: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Service get_asset_service(id, protocol, port)
Asset Service
Returns the service running a port and protocol on the asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service
api_response = api_instance.get_asset_service(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesConfiguration get_asset_service_configurations(id, protocol, port)
Asset Service Configurations
Returns the configuration (properties) of a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service Configurations
api_response = api_instance.get_asset_service_configurations(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_configurations: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesDatabase get_asset_service_databases(id, protocol, port)
Asset Service Databases
Returns the databases running on a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service Databases
api_response = api_instance.get_asset_service_databases(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_databases: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesGroupAccount get_asset_service_user_groups(id, protocol, port)
Asset Service User Groups
Returns the user groups enumerated on a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service User Groups
api_response = api_instance.get_asset_service_user_groups(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_user_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesUserAccount get_asset_service_users(id, protocol, port)
Asset Service Users
Returns the users enumerated on a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service Users
api_response = api_instance.get_asset_service_users(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WebApplication get_asset_service_web_application(id, protocol, port, web_application_id)
Asset Service Web Application
Returns a web application running on a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
web_application_id = 789 # int | The identifier of the web application.
try:
# Asset Service Web Application
api_response = api_instance.get_asset_service_web_application(id, protocol, port, web_application_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_web_application: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. | |
web_application_id | int | The identifier of the web application. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReferencesWithWebApplicationIDLink get_asset_service_web_applications(id, protocol, port)
Asset Service Web Applications
Returns the web applications running on a port and protocol on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
protocol = 'protocol_example' # str | The protocol of the service.
port = 56 # int | The port of the service.
try:
# Asset Service Web Applications
api_response = api_instance.get_asset_service_web_applications(id, protocol, port)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_service_web_applications: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
protocol | str | The protocol of the service. | |
port | int | The port of the service. |
ReferencesWithWebApplicationIDLink
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReferencesWithReferenceWithEndpointIDLinkServiceLink get_asset_services(id)
Asset Services
Returns the services discovered on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Services
api_response = api_instance.get_asset_services(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_services: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
ReferencesWithReferenceWithEndpointIDLinkServiceLink
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesSoftware get_asset_software(id)
Asset Software
Returns the software on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Software
api_response = api_instance.get_asset_software(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_software: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesAssetTag get_asset_tags(id)
Asset Tags
Returns tags assigned to an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Tags
api_response = api_instance.get_asset_tags(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_tags: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesGroupAccount get_asset_user_groups(id)
Asset User Groups
Returns user groups enumerated on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset User Groups
api_response = api_instance.get_asset_user_groups(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_user_groups: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResourcesUserAccount get_asset_users(id)
Asset Users
Returns users enumerated on an asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
try:
# Asset Users
api_response = api_instance.get_asset_users(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_asset_users: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageOfAsset get_assets(page=page, size=size, sort=sort)
Assets
Returns all assets for which you have access.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
page = 0 # int | The index of the page (zero-based) to retrieve. (optional) (default to 0)
size = 10 # int | The number of records per page to retrieve. (optional) (default to 10)
sort = ['sort_example'] # list[str] | The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. (optional)
try:
# Assets
api_response = api_instance.get_assets(page=page, size=size, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_assets: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | The index of the page (zero-based) to retrieve. | [optional] [default to 0] |
size | int | The number of records per page to retrieve. | [optional] [default to 10] |
sort | list[str] | The criteria to sort the records by, in the format: `property[,ASC | DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OperatingSystem get_operating_system(id)
Operating System
Returns the details for an operating system.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the operating system.
try:
# Operating System
api_response = api_instance.get_operating_system(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_operating_system: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the operating system. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageOfOperatingSystem get_operating_systems(page=page, size=size, sort=sort)
Operating Systems
Returns all operating systems discovered across all assets.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
page = 0 # int | The index of the page (zero-based) to retrieve. (optional) (default to 0)
size = 10 # int | The number of records per page to retrieve. (optional) (default to 10)
sort = ['sort_example'] # list[str] | The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. (optional)
try:
# Operating Systems
api_response = api_instance.get_operating_systems(page=page, size=size, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_operating_systems: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | The index of the page (zero-based) to retrieve. | [optional] [default to 0] |
size | int | The number of records per page to retrieve. | [optional] [default to 10] |
sort | list[str] | The criteria to sort the records by, in the format: `property[,ASC | DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Software get_software(id)
Software
Returns the details for software.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the software.
try:
# Software
api_response = api_instance.get_software(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_software: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the software. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
PageOfSoftware get_softwares(page=page, size=size, sort=sort)
Software
Returns all software enumerated on any asset.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
page = 0 # int | The index of the page (zero-based) to retrieve. (optional) (default to 0)
size = 10 # int | The number of records per page to retrieve. (optional) (default to 10)
sort = ['sort_example'] # list[str] | The criteria to sort the records by, in the format: `property[,ASC|DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. (optional)
try:
# Software
api_response = api_instance.get_softwares(page=page, size=size, sort=sort)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->get_softwares: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
page | int | The index of the page (zero-based) to retrieve. | [optional] [default to 0] |
size | int | The number of records per page to retrieve. | [optional] [default to 10] |
sort | list[str] | The criteria to sort the records by, in the format: `property[,ASC | DESC]`. The default sort order is ascending. Multiple sort criteria can be specified using multiple sort query parameters. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Links remove_asset_tag(id, tag_id)
Asset Tag
Removes the specified tag from the asset's tags.
from __future__ import print_function
import time
import rapid7vmconsole
from rapid7vmconsole.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = rapid7vmconsole.AssetApi()
id = 789 # int | The identifier of the asset.
tag_id = 56 # int | The identifier of the tag.
try:
# Asset Tag
api_response = api_instance.remove_asset_tag(id, tag_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AssetApi->remove_asset_tag: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
id | int | The identifier of the asset. | |
tag_id | int | The identifier of the tag. |
No authorization required
- Content-Type: application/json
- Accept: application/json;charset=UTF-8
[Back to top] [Back to API list] [Back to Model list] [Back to README]