You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 67c41d1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/CreateInstancesPayload.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
**count** | **int** | The number of virtual machines to be created. |
11
11
**create_bootable_volume** | **bool** | Indicates whether to create a bootable volume for the virtual machine. When set to `true`, a bootable volume will be created; the default value is `false`. | [optional]
12
12
**enable_port_randomization** | **bool** | Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true. | [optional][default to True]
13
+
**enhanced_monitoring_enabled** | **bool** | When true, the Hyperstack VM Agent is opted in for this VM and metrics ingestion is allowed by the prom-gateway. The agent must still be installed on the VM (typically via user_data cloud-init). | [optional][default to False]
13
14
**environment_name** | **str** | The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created. |
**flavor_name** | **str** | The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created. |
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
[**toggle_enhanced_metrics_for_avm**](VirtualMachineApi.md#toggle_enhanced_metrics_for_avm) | **PATCH** /core/virtual-machines/{vm_id}/enhanced-metrics | Enable or disable Enhanced Metrics for a virtual machine
**page_size** | **int**| | [optional][default to 10]
1290
1291
**search** | **str**| | [optional]
1291
1292
**environment** | **str**| | [optional]
1292
1293
**exclude_firewalls** | [**List[int]**](int.md)| Comma-separated list of Security Group IDs to ignore instances attached | [optional]
@@ -1739,3 +1740,89 @@ Name | Type | Description | Notes
1739
1740
1740
1741
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
Enable or disable Enhanced Metrics for a virtual machine
1747
+
1748
+
Enable or disable the Hyperstack VM Agent (Enhanced Metrics) for an existing virtual machine. The agent itself must be installed/removed manually inside the VM — the response includes the install command when enabling.
1749
+
1750
+
### Example
1751
+
1752
+
* Api Key Authentication (apiKey):
1753
+
1754
+
```python
1755
+
import hyperstack
1756
+
from hyperstack.models.user_enhanced_metrics_payload import UserEnhancedMetricsPayload
1757
+
from hyperstack.models.user_enhanced_metrics_response import UserEnhancedMetricsResponse
1758
+
from hyperstack.rest import ApiException
1759
+
from pprint import pprint
1760
+
1761
+
# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
1762
+
# See configuration.py for a list of all supported configuration parameters.
1763
+
configuration = hyperstack.Configuration(
1764
+
host="https://infrahub-api.nexgencloud.com/v1"
1765
+
)
1766
+
1767
+
# The client must configure the authentication and authorization parameters
1768
+
# in accordance with the API server security policy.
1769
+
# Examples for each auth method are provided below, use the example that
[[Back to top]](#)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to Model list]](../README.md#documentation-for-models)[[Back to README]](../README.md)
0 commit comments