---
title: "Perform an action on the specified vSphere resources"
method: POST
path: "/target/{target}/datacenter/{datacenter}"
tags: ["not-yet-implemented"]
---

# Perform an action on the specified vSphere resources

`POST /target/{target}/datacenter/{datacenter}`

Making a `POST` request on a datacenter with an action of `firewall:allow` or `firewall:deny` will update the host firewall on those resources.

## Path parameters

- `target` string, required
- `datacenter` string, required

## Query parameters

- `compute-resource` string
- `action` 'firewall:allow' | 'firewall:deny', required
- `thumbprint` string

## Response `204`

A successful operation

## Other responses

- `default` — An error occurred

## Changes

- **2018-06-18** `b8b5b3801ae2` — 1 info
  - api tag `not-yet-implemented` added
- **2017-07-12** `7a99cfe3f0d8` — 1 info
  - api tag `not-yet-implemented` removed

[Change history](https://skmtc.dev/vmware/apis/vic-machine-api/changes/target/:target/datacenter/:datacenter/post.md)

---

[API](https://skmtc.dev/vmware/apis/vic-machine-api.md) · [All operations](https://skmtc.dev/vmware/apis/vic-machine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vmware/vic-machine-api/revisions/022f4170e516/schema)
