forked from docs/doc-exports
Compare commits
1 Commits
Precheck
...
Update-met
| Author | SHA1 | Date | |
|---|---|---|---|
| 0bae1a2298 |
@ -1,81 +0,0 @@
|
||||
# .gitea/workflows/class-txt-check.yml
|
||||
name: Docs Precheck - CLASS.TXT.json Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize, edited]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
class-txt-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Get changed CLASS.TXT.json files
|
||||
id: changed-files
|
||||
run: |
|
||||
BASE_SHA="${{ gitea.event.pull_request.base.sha }}"
|
||||
changed=$(git diff --name-only ${BASE_SHA}...HEAD | grep -E 'CLASS\.TXT\.json$' | tr '\n' ' ' || true)
|
||||
echo "files=$changed" >> $GITHUB_OUTPUT
|
||||
echo "CHANGED_FILES=$changed" >> $GITHUB_ENV
|
||||
echo "Changed CLASS.TXT.json files: $changed"
|
||||
|
||||
- name: Run duplicate title check
|
||||
id: class-check
|
||||
run: |
|
||||
python3 .gitea/workflows/helpers/class-txt-check.py
|
||||
|
||||
- name: Comment on PR with violations
|
||||
if: failure() && steps.class-check.outcome == 'failure'
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ gitea.repository }}
|
||||
PR_NUMBER: ${{ gitea.event.pull_request.number }}
|
||||
TOKEN: ${{ gitea.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# Ensure URL starts with http
|
||||
if [[ ! "${GITEA_SERVER_URL}" =~ ^https?:// ]]; then
|
||||
GITEA_SERVER_URL="http://${GITEA_SERVER_URL}"
|
||||
echo "Added http:// prefix to URL"
|
||||
fi
|
||||
|
||||
# Generate comment message
|
||||
MSG=$(python3 .gitea/workflows/helpers/class-comment.py)
|
||||
echo "$MSG"
|
||||
|
||||
# Extract body from JSON
|
||||
BODY=$(echo "$MSG" | python3 -c "import sys, json; print(json.load(sys.stdin)['body'])")
|
||||
|
||||
# Build the full URL
|
||||
FULL_URL="${GITEA_SERVER_URL}/api/v1/repos/${REPO}/issues/${PR_NUMBER}/comments"
|
||||
echo "Posting comment to: ${FULL_URL}"
|
||||
|
||||
# Comment on PR
|
||||
curl -sS -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${FULL_URL}" \
|
||||
-d "$(echo "$BODY" | python3 -c "import sys, json; print(json.dumps({'body': sys.stdin.read()}))")"
|
||||
|
||||
- name: Final status
|
||||
if: always()
|
||||
run: |
|
||||
if [ -f violations.json ]; then
|
||||
echo "::error::CLASS.TXT.json check failed. See previous step for details."
|
||||
exit 1
|
||||
fi
|
||||
@ -1,84 +0,0 @@
|
||||
# .gitea/workflows/docs-precheck.yml
|
||||
name: Docs Precheck - Underscore Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize, edited]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
docs-precheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Install dependencies
|
||||
run: pip install beautifulsoup4 lxml
|
||||
|
||||
- name: Get changed HTML files
|
||||
id: changed-files
|
||||
run: |
|
||||
BASE_SHA="${{ gitea.event.pull_request.base.sha }}"
|
||||
changed=$(git diff --name-only ${BASE_SHA}...HEAD | grep -E '\.(html|htm)$' | tr '\n' ' ' || true)
|
||||
echo "files=$changed" >> $GITHUB_OUTPUT
|
||||
echo "CHANGED_FILES=$changed" >> $GITHUB_ENV
|
||||
echo "Changed HTML files: $changed"
|
||||
|
||||
- name: Run underscore check
|
||||
id: underscore-check
|
||||
run: |
|
||||
python3 .gitea/workflows/helpers/underscore-check.py
|
||||
|
||||
- name: Comment on PR with violations
|
||||
if: failure() && steps.underscore-check.outcome == 'failure'
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ gitea.repository }}
|
||||
PR_NUMBER: ${{ gitea.event.pull_request.number }}
|
||||
TOKEN: ${{ gitea.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# Ensure URL starts with http
|
||||
if [[ ! "${GITEA_SERVER_URL}" =~ ^https?:// ]]; then
|
||||
GITEA_SERVER_URL="http://${GITEA_SERVER_URL}"
|
||||
echo "Added http:// prefix to URL"
|
||||
fi
|
||||
|
||||
# Generate comment message
|
||||
MSG=$(python3 .gitea/workflows/helpers/underscore-comment.py)
|
||||
echo "$MSG"
|
||||
|
||||
# Extract body from JSON
|
||||
BODY=$(echo "$MSG" | python3 -c "import sys, json; print(json.load(sys.stdin)['body'])")
|
||||
|
||||
# Build the full URL
|
||||
FULL_URL="${GITEA_SERVER_URL}/api/v1/repos/${REPO}/issues/${PR_NUMBER}/comments"
|
||||
echo "Posting comment to: ${FULL_URL}"
|
||||
|
||||
# Comment on PR
|
||||
curl -sS -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${FULL_URL}" \
|
||||
-d "$(echo "$BODY" | python3 -c "import sys, json; print(json.dumps({'body': sys.stdin.read()}))")"
|
||||
|
||||
- name: Final status
|
||||
if: always()
|
||||
run: |
|
||||
if [ -f violations.json ]; then
|
||||
echo "::error::Underscore check failed. See previous step for details."
|
||||
exit 1
|
||||
fi
|
||||
@ -1,71 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Generate PR comment for CLASS.TXT.json duplicate title violations.
|
||||
|
||||
This script reads violations.json (created by class-txt-check.py) and generates
|
||||
a formatted markdown comment to be posted on the PR. The comment includes:
|
||||
- File path where violations were found
|
||||
- Parent document title and code
|
||||
- The duplicate title
|
||||
- Document codes that share the duplicate title
|
||||
|
||||
Usage:
|
||||
Run after class-txt-check.py fails. Reads violations.json and outputs JSON
|
||||
with 'body' field containing the markdown comment text.
|
||||
"""
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
with open("violations.json", "r") as f:
|
||||
violations = json.load(f)
|
||||
except Exception:
|
||||
violations = []
|
||||
|
||||
if not violations:
|
||||
print(json.dumps({"body": "No violations to report"}))
|
||||
sys.exit(0)
|
||||
|
||||
# Group violations by file
|
||||
by_file = {}
|
||||
for v in violations:
|
||||
key = v["file"]
|
||||
if key not in by_file:
|
||||
by_file[key] = []
|
||||
by_file[key].append(v)
|
||||
|
||||
# Build message
|
||||
lines = [
|
||||
"❌ **Duplicate title detected in CLASS.TXT.json**",
|
||||
"",
|
||||
"Found child documents with duplicate titles under the same parent:",
|
||||
"",
|
||||
]
|
||||
|
||||
for filepath, file_violations in by_file.items():
|
||||
lines.append(f"**{filepath}:**")
|
||||
for v in file_violations:
|
||||
parent_code = v["parent_code"]
|
||||
parent_title = v["parent_title"]
|
||||
duplicate_title = v["duplicate_title"]
|
||||
codes = v["codes"]
|
||||
|
||||
lines.append(f" - Parent: `{parent_title}` (code: `{parent_code}`)")
|
||||
lines.append(f" Duplicate title: `{duplicate_title}`")
|
||||
for code in codes:
|
||||
lines.append(f" - Document code: `{code}`")
|
||||
lines.append("")
|
||||
|
||||
lines.append(
|
||||
"**Please ensure all child documents under the same parent have unique titles.**"
|
||||
)
|
||||
|
||||
message = "\n".join(lines)
|
||||
print(json.dumps({"body": message}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,63 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Generate PR comment for metadata registration check violations.
|
||||
|
||||
This script reads violations.json (created by metadata-check.py) and generates
|
||||
a formatted markdown comment to be posted on the PR. The comment includes:
|
||||
- HTML file path that was added but not registered
|
||||
- Which metadata files it's missing from (CLASS.TXT.json, ALL_META.TXT.json)
|
||||
- Whether the metadata files don't exist or the file is simply missing from them
|
||||
|
||||
Usage:
|
||||
Run after metadata-check.py fails. Reads violations.json and outputs JSON
|
||||
with 'body' field containing the markdown comment text.
|
||||
"""
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
with open("violations.json", "r") as f:
|
||||
violations = json.load(f)
|
||||
except Exception:
|
||||
violations = []
|
||||
|
||||
if not violations:
|
||||
print(json.dumps({"body": "No violations to report"}))
|
||||
sys.exit(0)
|
||||
|
||||
# Build message
|
||||
lines = [
|
||||
"❌ **HTML file not registered in metadata**",
|
||||
"",
|
||||
"The following HTML files were added but are not properly registered in the metadata files:",
|
||||
"",
|
||||
]
|
||||
|
||||
for v in violations:
|
||||
html_file = v["file"]
|
||||
missing_from = v["missing_from"]
|
||||
|
||||
lines.append(f"**{html_file}**")
|
||||
for missing in missing_from:
|
||||
# Check if it's a "file not found" case
|
||||
if "(file not found)" in missing:
|
||||
lines.append(
|
||||
f" ❌ Missing from: `{missing.split(' (')[0]}` (metadata file does not exist)"
|
||||
)
|
||||
else:
|
||||
lines.append(f" ❌ Missing from: `{missing}`")
|
||||
lines.append("")
|
||||
|
||||
lines.append(
|
||||
"**Please add the new HTML files to both `CLASS.TXT.json` and `ALL_META.TXT.json` in the same directory.**"
|
||||
)
|
||||
|
||||
message = "\n".join(lines)
|
||||
print(json.dumps({"body": message}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,68 +0,0 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Generate PR comment for underscore check violations.
|
||||
|
||||
This script reads violations.json (created by underscore-check.py) and generates
|
||||
a formatted markdown comment to be posted on the PR. The comment includes:
|
||||
- File path where violations were found
|
||||
- Line number of each violation
|
||||
- The offending word (ending with underscore)
|
||||
- Context showing where the violation appears in the HTML
|
||||
|
||||
Usage:
|
||||
Run after underscore-check.py fails. Reads violations.json and outputs JSON
|
||||
with 'body' field containing the markdown comment text.
|
||||
"""
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
def main():
|
||||
try:
|
||||
with open("violations.json", "r") as f:
|
||||
violations = json.load(f)
|
||||
except Exception:
|
||||
violations = []
|
||||
|
||||
if not violations:
|
||||
print(json.dumps({"body": "No violations to report"}))
|
||||
sys.exit(0)
|
||||
|
||||
# Group violations by file
|
||||
by_file = {}
|
||||
for v in violations:
|
||||
key = v["file"]
|
||||
if key not in by_file:
|
||||
by_file[key] = []
|
||||
by_file[key].append(v)
|
||||
|
||||
# Build message
|
||||
lines = [
|
||||
"❌ **Underscore check failed**",
|
||||
"",
|
||||
"Found words ending with underscore (not followed by alphanumeric characters):",
|
||||
"",
|
||||
]
|
||||
|
||||
for filepath, file_violations in by_file.items():
|
||||
lines.append(f"**{filepath}:**")
|
||||
for v in file_violations:
|
||||
word = v["word"]
|
||||
line_num = v["line"]
|
||||
context = v["context"]
|
||||
# Escape markdown special chars in context
|
||||
context = context.replace("`", "\\`")
|
||||
lines.append(f" - Line {line_num}: `{word}` in context: `{context}`")
|
||||
lines.append("")
|
||||
|
||||
lines.append(
|
||||
"**Please fix these issues as soon as possible.** Words should not end with an underscore unless followed by alphanumeric characters (A-Za-z0-9)."
|
||||
)
|
||||
|
||||
message = "\n".join(lines)
|
||||
print(json.dumps({"body": message}))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@ -1,81 +0,0 @@
|
||||
# .gitea/workflows/metadata-check.yml
|
||||
name: Docs Precheck - Metadata Registration Check
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize, edited]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
pull-requests: write
|
||||
|
||||
jobs:
|
||||
metadata-check:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
|
||||
- name: Get added HTML files
|
||||
id: added-files
|
||||
run: |
|
||||
BASE_SHA="${{ gitea.event.pull_request.base.sha }}"
|
||||
added=$(git diff --name-status ${BASE_SHA}...HEAD | grep "^A" | awk '{print $2}' | grep -E '\.html$' | tr '\n' ' ' || true)
|
||||
echo "files=$added" >> $GITHUB_OUTPUT
|
||||
echo "ADDED_FILES=$added" >> $GITHUB_ENV
|
||||
echo "Added HTML files: $added"
|
||||
|
||||
- name: Run metadata registration check
|
||||
id: metadata-check
|
||||
run: |
|
||||
python3 .gitea/workflows/helpers/metadata-check.py
|
||||
|
||||
- name: Comment on PR with violations
|
||||
if: failure() && steps.metadata-check.outcome == 'failure'
|
||||
env:
|
||||
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
||||
REPO: ${{ gitea.repository }}
|
||||
PR_NUMBER: ${{ gitea.event.pull_request.number }}
|
||||
TOKEN: ${{ gitea.token }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
# Ensure URL starts with http
|
||||
if [[ ! "${GITEA_SERVER_URL}" =~ ^https?:// ]]; then
|
||||
GITEA_SERVER_URL="http://${GITEA_SERVER_URL}"
|
||||
echo "Added http:// prefix to URL"
|
||||
fi
|
||||
|
||||
# Generate comment message
|
||||
MSG=$(python3 .gitea/workflows/helpers/metadata-comment.py)
|
||||
echo "$MSG"
|
||||
|
||||
# Extract body from JSON
|
||||
BODY=$(echo "$MSG" | python3 -c "import sys, json; print(json.load(sys.stdin)['body'])")
|
||||
|
||||
# Build the full URL
|
||||
FULL_URL="${GITEA_SERVER_URL}/api/v1/repos/${REPO}/issues/${PR_NUMBER}/comments"
|
||||
echo "Posting comment to: ${FULL_URL}"
|
||||
|
||||
# Comment on PR
|
||||
curl -sS -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
"${FULL_URL}" \
|
||||
-d "$(echo "$BODY" | python3 -c "import sys, json; print(json.dumps({'body': sys.stdin.read()}))")"
|
||||
|
||||
- name: Final status
|
||||
if: always()
|
||||
run: |
|
||||
if [ -f violations.json ]; then
|
||||
echo "::error::Metadata registration check failed. See previous step for details."
|
||||
exit 1
|
||||
fi
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,11 +0,0 @@
|
||||
rules:
|
||||
path-starts-with-slash-no-spaces:
|
||||
description: Path must start with / and contain no spaces
|
||||
message: "Path '{{property}}' must start with '/' and must not contain spaces"
|
||||
severity: error
|
||||
given: $.paths
|
||||
then:
|
||||
field: "@key"
|
||||
function: pattern
|
||||
functionOptions:
|
||||
match: "^\\/[^\\s]*$"
|
||||
17
.yamllint
17
.yamllint
@ -1,17 +0,0 @@
|
||||
# .yamllint
|
||||
extends: default
|
||||
|
||||
yaml-files:
|
||||
- '*.yaml'
|
||||
- '*.yml'
|
||||
|
||||
rules:
|
||||
line-length:
|
||||
max: 120
|
||||
level: warning
|
||||
indentation:
|
||||
spaces: 2 # number of spaces per indent level
|
||||
indent-sequences: consistent # or true/false/whatever
|
||||
level: error
|
||||
document-start:
|
||||
level: warning
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -9,7 +9,7 @@
|
||||
<div class="section" id="antiddos_02_0002__section51086148"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0002__p57231627073"><strong id="antiddos_02_0002__b175141502119">Request parameters</strong></p>
|
||||
<p id="antiddos_02_0002__p19704119165617">None</p>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0002__section57122151"><h4 class="sectiontitle">Response Messages</h4><ul id="antiddos_02_0002__ul36643426"><li id="antiddos_02_0002__li61355386">Parameter description
|
||||
<div class="section" id="antiddos_02_0002__section57122151"><h4 class="sectiontitle">Response</h4><ul id="antiddos_02_0002__ul36643426"><li id="antiddos_02_0002__li61355386">Parameter description
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0002__table15327568" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0002__row24486356"><th align="left" class="cellrowborder" valign="top" width="30.099999999999998%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="antiddos_02_0002__p37237828">Name</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="22.99%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="antiddos_02_0002__p63474072">Type</p>
|
||||
@ -75,26 +75,32 @@
|
||||
</div>
|
||||
</li></ul>
|
||||
<ul id="antiddos_02_0002__ul549487"><li id="antiddos_02_0002__li4945391">Data structure description of <strong id="antiddos_02_0002__b121915511116">links</strong>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0002__table44508523" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0002__row13604004"><th align="left" class="cellrowborder" valign="top" width="37.34%" id="mcps1.3.4.3.1.2.1.4.1.1"><p id="antiddos_02_0002__p28182506">Parameter</p>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0002__table44508523" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0002__row13604004"><th align="left" class="cellrowborder" valign="top" width="30.61%" id="mcps1.3.4.3.1.2.1.5.1.1"><p id="antiddos_02_0002__p28182506">Parameter</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="25.540000000000003%" id="mcps1.3.4.3.1.2.1.4.1.2"><p id="antiddos_02_0002__p20504736">Type</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="18.02%" id="mcps1.3.4.3.1.2.1.5.1.2"><p id="antiddos_02_0002__p1081649">Mandatory</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="37.12%" id="mcps1.3.4.3.1.2.1.4.1.3"><p id="antiddos_02_0002__p50270944">Description</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="20.94%" id="mcps1.3.4.3.1.2.1.5.1.3"><p id="antiddos_02_0002__p20504736">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="30.43%" id="mcps1.3.4.3.1.2.1.5.1.4"><p id="antiddos_02_0002__p50270944">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0002__row45414681"><td class="cellrowborder" valign="top" width="37.34%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0002__p54710514">href</p>
|
||||
<tbody><tr id="antiddos_02_0002__row45414681"><td class="cellrowborder" valign="top" width="30.61%" headers="mcps1.3.4.3.1.2.1.5.1.1 "><p id="antiddos_02_0002__p54710514">href</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="25.540000000000003%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0002__p53636340152723">String</p>
|
||||
<td class="cellrowborder" valign="top" width="18.02%" headers="mcps1.3.4.3.1.2.1.5.1.2 "><p id="antiddos_02_0002__p2366611">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="37.12%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0002__p25189967">URLs of APIs</p>
|
||||
<td class="cellrowborder" valign="top" width="20.94%" headers="mcps1.3.4.3.1.2.1.5.1.3 "><p id="antiddos_02_0002__p53636340152723">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.4.3.1.2.1.5.1.4 "><p id="antiddos_02_0002__p25189967">URLs of APIs</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0002__row25383117"><td class="cellrowborder" valign="top" width="37.34%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0002__p42766607">rel</p>
|
||||
<tr id="antiddos_02_0002__row25383117"><td class="cellrowborder" valign="top" width="30.61%" headers="mcps1.3.4.3.1.2.1.5.1.1 "><p id="antiddos_02_0002__p42766607">rel</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="25.540000000000003%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0002__p65381003152726">String</p>
|
||||
<td class="cellrowborder" valign="top" width="18.02%" headers="mcps1.3.4.3.1.2.1.5.1.2 "><p id="antiddos_02_0002__p41543166">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="37.12%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0002__p35618305">self</p>
|
||||
<td class="cellrowborder" valign="top" width="20.94%" headers="mcps1.3.4.3.1.2.1.5.1.3 "><p id="antiddos_02_0002__p65381003152726">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.4.3.1.2.1.5.1.4 "><p id="antiddos_02_0002__p35618305">self</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -75,26 +75,32 @@
|
||||
</div>
|
||||
</li></ul>
|
||||
<ul id="antiddos_02_0007__ul549487"><li id="antiddos_02_0007__li4945391">Data structure description of <strong id="antiddos_02_0007__b986916122420">links</strong>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0007__table44508523" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0007__row13604004"><th align="left" class="cellrowborder" valign="top" width="37.34%" id="mcps1.3.4.3.1.2.1.4.1.1"><p id="antiddos_02_0007__p28182506">Parameter</p>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0007__table44508523" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0007__row13604004"><th align="left" class="cellrowborder" valign="top" width="30.61%" id="mcps1.3.4.3.1.2.1.5.1.1"><p id="antiddos_02_0007__p28182506">Parameter</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="25.540000000000003%" id="mcps1.3.4.3.1.2.1.4.1.2"><p id="antiddos_02_0007__p20504736">Type</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="18.02%" id="mcps1.3.4.3.1.2.1.5.1.2"><p id="antiddos_02_0007__p1081649">Mandatory</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="37.12%" id="mcps1.3.4.3.1.2.1.4.1.3"><p id="antiddos_02_0007__p50270944">Description</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="20.94%" id="mcps1.3.4.3.1.2.1.5.1.3"><p id="antiddos_02_0007__p20504736">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="30.43%" id="mcps1.3.4.3.1.2.1.5.1.4"><p id="antiddos_02_0007__p50270944">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0007__row45414681"><td class="cellrowborder" valign="top" width="37.34%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0007__p54710514">href</p>
|
||||
<tbody><tr id="antiddos_02_0007__row45414681"><td class="cellrowborder" valign="top" width="30.61%" headers="mcps1.3.4.3.1.2.1.5.1.1 "><p id="antiddos_02_0007__p54710514">href</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="25.540000000000003%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0007__p53636340152723">String</p>
|
||||
<td class="cellrowborder" valign="top" width="18.02%" headers="mcps1.3.4.3.1.2.1.5.1.2 "><p id="antiddos_02_0007__p2366611">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="37.12%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0007__p25189967">URL of the API</p>
|
||||
<td class="cellrowborder" valign="top" width="20.94%" headers="mcps1.3.4.3.1.2.1.5.1.3 "><p id="antiddos_02_0007__p53636340152723">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.4.3.1.2.1.5.1.4 "><p id="antiddos_02_0007__p25189967">URL of the API</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0007__row25383117"><td class="cellrowborder" valign="top" width="37.34%" headers="mcps1.3.4.3.1.2.1.4.1.1 "><p id="antiddos_02_0007__p42766607">rel</p>
|
||||
<tr id="antiddos_02_0007__row25383117"><td class="cellrowborder" valign="top" width="30.61%" headers="mcps1.3.4.3.1.2.1.5.1.1 "><p id="antiddos_02_0007__p42766607">rel</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="25.540000000000003%" headers="mcps1.3.4.3.1.2.1.4.1.2 "><p id="antiddos_02_0007__p65381003152726">String</p>
|
||||
<td class="cellrowborder" valign="top" width="18.02%" headers="mcps1.3.4.3.1.2.1.5.1.2 "><p id="antiddos_02_0007__p41543166">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="37.12%" headers="mcps1.3.4.3.1.2.1.4.1.3 "><p id="antiddos_02_0007__p35618305">self</p>
|
||||
<td class="cellrowborder" valign="top" width="20.94%" headers="mcps1.3.4.3.1.2.1.5.1.3 "><p id="antiddos_02_0007__p65381003152726">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.43%" headers="mcps1.3.4.3.1.2.1.5.1.4 "><p id="antiddos_02_0007__p35618305">self</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
@ -6,13 +6,17 @@
|
||||
<ul class="ullinks">
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0017.html">Querying Optional Anti-DDoS Defense Policies</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0018.html">Enabling Anti-DDoS</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0019.html">Disabling Anti-DDoS</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0020.html">Querying Configured Anti-DDoS Defense Policies</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0021.html">Updating Anti-DDoS Defense Policies</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0022.html">Querying Anti-DDoS Tasks</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0023.html">Querying the List of EIP Defense Statuses</a></strong><br>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0023.html">Querying the List of Defense Statuses of EIPs</a></strong><br>
|
||||
</li>
|
||||
<li class="ulchildlink"><strong><a href="antiddos_02_0024.html">Querying the Defense Status of a Specified EIP</a></strong><br>
|
||||
</li>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
163
docs/antiddos/api-ref/antiddos_02_0018.html
Normal file
163
docs/antiddos/api-ref/antiddos_02_0018.html
Normal file
File diff suppressed because it is too large
Load Diff
95
docs/antiddos/api-ref/antiddos_02_0019.html
Normal file
95
docs/antiddos/api-ref/antiddos_02_0019.html
Normal file
@ -0,0 +1,95 @@
|
||||
<a name="antiddos_02_0019"></a><a name="antiddos_02_0019"></a>
|
||||
|
||||
<h1 class="topictitle1">Disabling Anti-DDoS</h1>
|
||||
<div id="body8565311"><div class="section" id="antiddos_02_0019__section35024756"><h4 class="sectiontitle">Functions</h4><p id="antiddos_02_0019__p22701601">This asynchronous API allows you to disable the Anti-DDoS traffic scrubbing. Successfully invoking this API only means that the service node has received the disabling request. You need to use the task querying API to check the task execution status. For details about the task querying API, see <a href="antiddos_02_0022.html">Querying Anti-DDoS Tasks</a>.</p>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0019__section46787348"><h4 class="sectiontitle">URI</h4><ul id="antiddos_02_0019__ul40687155"><li id="antiddos_02_0019__li30640083">URI format<p id="antiddos_02_0019__p14122195143714"><a name="antiddos_02_0019__li30640083"></a><a name="li30640083"></a>DELETE /v1/{project_id}/antiddos/{floating_ip_id}</p>
|
||||
</li><li id="antiddos_02_0019__li65927667">Parameter description
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0019__table38540791" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0019__row18176357"><th align="left" class="cellrowborder" valign="top" width="30.92690730926907%" id="mcps1.3.2.2.2.1.1.5.1.1"><p id="antiddos_02_0019__p62998845">Parameter</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="17.52824717528247%" id="mcps1.3.2.2.2.1.1.5.1.2"><p id="antiddos_02_0019__p2632805">Mandatory</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="20.617938206179375%" id="mcps1.3.2.2.2.1.1.5.1.3"><p id="antiddos_02_0019__p11930629">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="30.92690730926907%" id="mcps1.3.2.2.2.1.1.5.1.4"><p id="antiddos_02_0019__p26856902">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0019__row27925455"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0019__p47369417">project_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.52824717528247%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0019__p11717596">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="20.617938206179375%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0019__p9601199">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0019__p39499626">User ID</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0019__row19952318"><td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.1 "><p id="antiddos_02_0019__p5525098">floating_ip_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.52824717528247%" headers="mcps1.3.2.2.2.1.1.5.1.2 "><p id="antiddos_02_0019__p44879761">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="20.617938206179375%" headers="mcps1.3.2.2.2.1.1.5.1.3 "><p id="antiddos_02_0019__p11382045">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="30.92690730926907%" headers="mcps1.3.2.2.2.1.1.5.1.4 "><p id="antiddos_02_0019__p49530486">ID corresponding to the EIP of a user</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0019__section18432949"><h4 class="sectiontitle">Request</h4><p id="antiddos_02_0019__p27004153377">None</p>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0019__section31678816"><h4 class="sectiontitle">Response</h4>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0019__table56967030" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="antiddos_02_0019__row62110049"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.4.2.2.4.1.1"><p id="antiddos_02_0019__p64858045">Name</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="14.14%" id="mcps1.3.4.2.2.4.1.2"><p id="antiddos_02_0019__p19010318">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="62.629999999999995%" id="mcps1.3.4.2.2.4.1.3"><p id="antiddos_02_0019__p63440828">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0019__row38433454"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0019__p26102093">error_code</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0019__p33894784">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0019__p61122992">Internal error code</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0019__row13236018"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0019__p65484519">error_description</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0019__p2645837">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0019__p12986251">Internal error description</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0019__row49767403"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0019__p4627874">task_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="14.14%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0019__p39313476">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="62.629999999999995%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0019__p50320472162213">ID of a task. This ID can be used to query the status of the task.</p>
|
||||
<p id="antiddos_02_0019__p30275003">This field is reserved for use in task auditing later. It is temporarily unused.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0019__section555716477373"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0019__ul178811332182913"><li id="antiddos_02_0019__li966416362293">Example request<pre class="codeblock" id="antiddos_02_0019__codeblock10809699144055">DELETE /v1/67641fe6886f43fcb78edbbf0ad0b99f/antiddos/1df977c2-fdc6-4483-bc1c-ba46829f57b8</pre>
|
||||
</li></ul>
|
||||
</div>
|
||||
<ul id="antiddos_02_0019__ul85717470379"><li id="antiddos_02_0019__li65712047153715">Example response<pre class="screen" id="antiddos_02_0019__screen1557114719378">{
|
||||
"error_code": "10000000",
|
||||
"error_description": "Task has been received and is being processed.",
|
||||
"task_id": "d90dc577-abd2-4be0-b2cf-cb8f5f67ddb0"
|
||||
}</pre>
|
||||
</li></ul>
|
||||
<div class="section" id="antiddos_02_0019__section16673895"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0019__p62919444">See <a href="antiddos_02_0031.html">Status Code</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<div class="familylinks">
|
||||
<div class="parentlink"><strong>Parent topic:</strong> <a href="antiddos_02_0016.html">Anti-DDoS APIs</a></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -42,47 +42,59 @@
|
||||
<p id="antiddos_02_0020__p132721814194018">None</p>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0020__section62747764"><h4 class="sectiontitle">Response</h4>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0020__table32841884" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="antiddos_02_0020__row64992155"><th align="left" class="cellrowborder" valign="top" width="36.89%" id="mcps1.3.4.2.2.4.1.1"><p id="antiddos_02_0020__p29873218">Parameter</p>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0020__table32841884" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="antiddos_02_0020__row64992155"><th align="left" class="cellrowborder" valign="top" width="30.44%" id="mcps1.3.4.2.2.5.1.1"><p id="antiddos_02_0020__p29873218">Parameter</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="17.299999999999997%" id="mcps1.3.4.2.2.4.1.2"><p id="antiddos_02_0020__p40305966">Type</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="17.48%" id="mcps1.3.4.2.2.5.1.2"><p id="antiddos_02_0020__p3811622">Mandatory</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="45.81%" id="mcps1.3.4.2.2.4.1.3"><p id="antiddos_02_0020__p43557827">Description</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="16.54%" id="mcps1.3.4.2.2.5.1.3"><p id="antiddos_02_0020__p40305966">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="35.54%" id="mcps1.3.4.2.2.5.1.4"><p id="antiddos_02_0020__p43557827">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0020__row38523084"><td class="cellrowborder" valign="top" width="36.89%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0020__p33362098">enable_L7</p>
|
||||
<tbody><tr id="antiddos_02_0020__row38523084"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p33362098">enable_L7</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.299999999999997%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0020__p46720306">Boolean</p>
|
||||
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p17975388">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="45.81%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0020__p26248478">Whether L7 defense has been enabled.</p>
|
||||
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p46720306">Boolean</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p26248478">Whether L7 defense has been enabled.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0020__row34909710"><td class="cellrowborder" valign="top" width="36.89%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0020__p9114291">traffic_pos_id</p>
|
||||
<tr id="antiddos_02_0020__row34909710"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p9114291">traffic_pos_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.299999999999997%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0020__p3079683015913">Integer</p>
|
||||
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p60129">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="45.81%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0020__p58963189">Position ID of traffic. The value ranges from 1 to 9, or 99, or 33 to 36.</p>
|
||||
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p3079683015913">Integer</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p58963189">Position ID of traffic. The value ranges from 1 to 9, or 99, or 33 to 36.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0020__row60906657"><td class="cellrowborder" valign="top" width="36.89%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0020__p34492175">http_request_pos_id</p>
|
||||
<tr id="antiddos_02_0020__row60906657"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p34492175">http_request_pos_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.299999999999997%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0020__p6409858615917">Integer</p>
|
||||
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p42402794">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="45.81%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0020__p38491397">Position ID of number of HTTP requests. The value ranges from 1 to 15 and 33 to 36.</p>
|
||||
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p6409858615917">Integer</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p38491397">Position ID of number of HTTP requests. The value ranges from 1 to 15 and 33 to 36.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0020__row10878253"><td class="cellrowborder" valign="top" width="36.89%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0020__p8723262">cleaning_access_pos_id</p>
|
||||
<tr id="antiddos_02_0020__row10878253"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p8723262">cleaning_access_pos_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.299999999999997%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0020__p1175927815921">Integer</p>
|
||||
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p35495616">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="45.81%" headers="mcps1.3.4.2.2.4.1.3 "><p id="antiddos_02_0020__p18980661">Position ID of access limit during cleaning. The value ranges from 1 to 8, or 99, or 33 to 36.</p>
|
||||
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p1175927815921">Integer</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><p id="antiddos_02_0020__p18980661">Position ID of access limit during cleaning. The value ranges from 1 to 8, or 99, or 33 to 36.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="antiddos_02_0020__row36608226"><td class="cellrowborder" valign="top" width="36.89%" headers="mcps1.3.4.2.2.4.1.1 "><p id="antiddos_02_0020__p12476353">app_type_id</p>
|
||||
<tr id="antiddos_02_0020__row36608226"><td class="cellrowborder" valign="top" width="30.44%" headers="mcps1.3.4.2.2.5.1.1 "><p id="antiddos_02_0020__p12476353">app_type_id</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="17.299999999999997%" headers="mcps1.3.4.2.2.4.1.2 "><p id="antiddos_02_0020__p4577985515925">Integer</p>
|
||||
<td class="cellrowborder" valign="top" width="17.48%" headers="mcps1.3.4.2.2.5.1.2 "><p id="antiddos_02_0020__p3951668">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="45.81%" headers="mcps1.3.4.2.2.4.1.3 "><div class="p" id="antiddos_02_0020__p5423486315930">Application type ID. Possible values:<ul id="antiddos_02_0020__ul3859304915932"><li id="antiddos_02_0020__li247061915932">0</li><li id="antiddos_02_0020__li3331034115936">1</li></ul>
|
||||
<td class="cellrowborder" valign="top" width="16.54%" headers="mcps1.3.4.2.2.5.1.3 "><p id="antiddos_02_0020__p4577985515925">Integer</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="35.54%" headers="mcps1.3.4.2.2.5.1.4 "><div class="p" id="antiddos_02_0020__p5423486315930">Application type ID. Possible values:<ul id="antiddos_02_0020__ul3859304915932"><li id="antiddos_02_0020__li247061915932">0</li><li id="antiddos_02_0020__li3331034115936">1</li></ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@ -87,12 +87,12 @@
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0022__section89594226506"><h4 class="sectiontitle">Example</h4><ul id="antiddos_02_0022__ul56581830155018"><li id="antiddos_02_0022__li1155961515018">Example request<pre class="codeblock" id="antiddos_02_0022__codeblock113342304561">GET /v1/67641fe6886f43fcb78edbbf0ad0b99f/query_task_status?task_id=4a4fefe7-34a1-40e2-a87c-16932af3ac4a</pre>
|
||||
</li></ul>
|
||||
</div>
|
||||
<ul id="antiddos_02_0022__ul6984722145017"><li id="antiddos_02_0022__li49844227506">Example response<pre class="screen" id="antiddos_02_0022__screen1498492215016">{
|
||||
"task_status": "running",
|
||||
"task_msg": ""
|
||||
}</pre>
|
||||
</li></ul>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0022__section27813538"><h4 class="sectiontitle">Status Code</h4><p id="antiddos_02_0022__p50824621">See <a href="antiddos_02_0031.html">Status Code</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -42,19 +42,23 @@
|
||||
<p id="antiddos_02_0024__p14332041145213">None</p>
|
||||
</div>
|
||||
<div class="section" id="antiddos_02_0024__section37841036"><h4 class="sectiontitle">Response</h4><ul id="antiddos_02_0024__ul58618290"><li id="antiddos_02_0024__li57802569">Parameter description
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0024__table50461073" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0024__row8925963"><th align="left" class="cellrowborder" valign="top" width="23.23%" id="mcps1.3.4.2.1.1.1.4.1.1"><p id="antiddos_02_0024__p51914417">Parameter</p>
|
||||
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="antiddos_02_0024__table50461073" frame="border" border="1" rules="all"><thead align="left"><tr id="antiddos_02_0024__row8925963"><th align="left" class="cellrowborder" valign="top" width="19.830000000000002%" id="mcps1.3.4.2.1.1.1.5.1.1"><p id="antiddos_02_0024__p51914417">Parameter</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="19.84%" id="mcps1.3.4.2.1.1.1.4.1.2"><p id="antiddos_02_0024__p33008942">Type</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="20.369999999999997%" id="mcps1.3.4.2.1.1.1.5.1.2"><p id="antiddos_02_0024__p44318255">Mandatory</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="56.93%" id="mcps1.3.4.2.1.1.1.4.1.3"><p id="antiddos_02_0024__p56478678">Description</p>
|
||||
<th align="left" class="cellrowborder" valign="top" width="14.899999999999999%" id="mcps1.3.4.2.1.1.1.5.1.3"><p id="antiddos_02_0024__p33008942">Type</p>
|
||||
</th>
|
||||
<th align="left" class="cellrowborder" valign="top" width="44.9%" id="mcps1.3.4.2.1.1.1.5.1.4"><p id="antiddos_02_0024__p56478678">Description</p>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody><tr id="antiddos_02_0024__row11370190"><td class="cellrowborder" valign="top" width="23.23%" headers="mcps1.3.4.2.1.1.1.4.1.1 "><p id="antiddos_02_0024__p48570174">status</p>
|
||||
<tbody><tr id="antiddos_02_0024__row11370190"><td class="cellrowborder" valign="top" width="19.830000000000002%" headers="mcps1.3.4.2.1.1.1.5.1.1 "><p id="antiddos_02_0024__p48570174">status</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="19.84%" headers="mcps1.3.4.2.1.1.1.4.1.2 "><p id="antiddos_02_0024__p36029352">String</p>
|
||||
<td class="cellrowborder" valign="top" width="20.369999999999997%" headers="mcps1.3.4.2.1.1.1.5.1.2 "><p id="antiddos_02_0024__p41870031">Yes</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="56.93%" headers="mcps1.3.4.2.1.1.1.4.1.3 "><div class="p" id="antiddos_02_0024__p32696434">Defense status, the possible value of which is one of the following:<ul id="antiddos_02_0024__ul25832457"><li id="antiddos_02_0024__li31165525"><span class="parmvalue" id="antiddos_02_0024__parmvalue555125744114325"><b>normal</b></span>: indicates that the defense status is normal.</li><li id="antiddos_02_0024__li12054271"><span class="parmvalue" id="antiddos_02_0024__parmvalue404664094114337"><b>configuring</b></span>: indicates that defense is being configured.</li><li id="antiddos_02_0024__li41379576"><span class="parmvalue" id="antiddos_02_0024__parmvalue600552156114412"><b>notConfig</b></span>: indicates that defense is not configured.</li><li id="antiddos_02_0024__li36871865"><span class="parmvalue" id="antiddos_02_0024__parmvalue1506354986114925"><b>packetcleaning</b></span>: indicates that traffic cleaning is underway.</li><li id="antiddos_02_0024__li63411331"><span class="parmvalue" id="antiddos_02_0024__parmvalue1400332350143613"><b>packetdropping</b></span>: indicates that traffic is discarded.</li></ul>
|
||||
<td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.4.2.1.1.1.5.1.3 "><p id="antiddos_02_0024__p36029352">String</p>
|
||||
</td>
|
||||
<td class="cellrowborder" valign="top" width="44.9%" headers="mcps1.3.4.2.1.1.1.5.1.4 "><div class="p" id="antiddos_02_0024__p32696434">Defense status, the possible value of which is one of the following:<ul id="antiddos_02_0024__ul25832457"><li id="antiddos_02_0024__li31165525"><span class="parmvalue" id="antiddos_02_0024__parmvalue555125744114325"><b>normal</b></span>: indicates that the defense status is normal.</li><li id="antiddos_02_0024__li12054271"><span class="parmvalue" id="antiddos_02_0024__parmvalue404664094114337"><b>configging</b></span>: indicates that defense is being configured.</li><li id="antiddos_02_0024__li41379576"><span class="parmvalue" id="antiddos_02_0024__parmvalue600552156114412"><b>notConfig</b></span>: indicates that defense is not configured.</li><li id="antiddos_02_0024__li36871865"><span class="parmvalue" id="antiddos_02_0024__parmvalue1506354986114925"><b>packetcleaning</b></span>: indicates that traffic cleaning is underway.</li><li id="antiddos_02_0024__li63411331"><span class="parmvalue" id="antiddos_02_0024__parmvalue1400332350143613"><b>packetdropping</b></span>: indicates that traffic is discarded.</li></ul>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user