vcf_call
Execute authenticated VMware Cloud Foundation API operations, from safe reads to estate-changing writes, with query parameters, JSON bodies, and async task tracking.
Instructions
Call a VCF API operation. Authentication is handled for you.
This performs real operations against real infrastructure. Reads are safe; POST/PATCH/PUT/DELETE change the estate, and some are irreversible (decommissioning a host, deleting a workload domain). Every mutating call is recorded to the audit log. Check vcf_describe_api first when writing.
Long-running operations return HTTP 202 and a task id -- follow it with vcf_task rather than assuming success.
Args: target: Appliance name from vcf_targets. method: GET, POST, PATCH, PUT or DELETE. path: Full request path including any base prefix, exactly as vcf_search_api reports it (e.g. "/v1/hosts", "/policy/api/v1/infra/segments/web-seg"). Substitute real ids for {placeholders}. query: Query parameters as an object. body: JSON request body. timeout: Seconds to wait (VCF operations can be slow; default 300). max_response_chars: Shrink oversized responses to fit (default 20000).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| path | Yes | ||
| query | No | ||
| method | Yes | ||
| target | Yes | ||
| timeout | No | ||
| max_response_chars | No |