---
title: "AddResource"
method: POST
path: "/access/resource"
tags: ["ZTA"]
---

# AddResource

`POST /access/resource`

新增ZTA的resource

## Request body

- MparamAddResource
  - `host` string, required — api.github.com,192.168.1.1/16
  - `name` string, required
  - `port` string, required — 80-443;3306;6379
  - `type` 'cidr' | 'dns'

## Response `200`

OK

- ControllerRes
  - `code` integer
  - `data` object
  - `message` string

---

[API](https://skmtc.dev/flowshield/apis/fullnode-api.md) · [All operations](https://skmtc.dev/flowshield/apis/fullnode-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/flowshield/fullnode-api/revisions/9ba38b714762/schema)
