>-#
get_server_exclude_database{sid}#
コードサンプル
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid} \
-H Accept: application/json \
-H X-Auth-Token: string
import requests
headers = {
Accept: application/json,
X-Auth-Token: string
}
r = requests.get(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid}, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid},
{
method: GET,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /server/exclude_database/{sid}
サーバーIDで識別される、除外されたデータベースの情報を取得します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
sid |
path |
string |
true |
サーバーID |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
{
"server_id": 0,
"name": "string",
"exclude_databases": [
"string"
]
}
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
ステータス200 |
注釈
この操作には認証が必要ありません
put_server_exclude_database{sid}#
コードサンプル
# You can also use wget
curl -X PUT https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid} \
-H Content-Type: application/json \
-H X-Auth-Token: string
import requests
headers = {
Content-Type: application/json,
X-Auth-Token: string
}
r = requests.put(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid}, headers = headers)
print(r.json())
const inputBody = {
"exclude_databases": [
"string"
]
};
const headers = {
Content-Type:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid},
{
method: PUT,
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /server/exclude_database/{sid}
除外されたデータベース情報を更新します。
ボディパラメーター
{
"exclude_databases": [
"string"
]
}
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
sid |
path |
string |
true |
サーバーID |
X-Auth-Token |
header |
string |
true |
承認トークン |
body |
body |
true |
なし |
応答例
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
電子メールグループが正常に更新されました |
None |
レスポンススキーマ#
注釈
この操作には認証が必要ありません
delete_server_exclude_database{sid}#
コードサンプル
# You can also use wget
curl -X DELETE https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid} \
-H X-Auth-Token: string
import requests
headers = {
X-Auth-Token: string
}
r = requests.delete(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid}, headers = headers)
print(r.json())
const headers = {
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/server/exclude_database/{sid},
{
method: DELETE,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /server/exclude_database/{sid}
除外されたデータベースを削除します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
sid |
path |
string |
true |
サーバーID |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
除外されたデータベースは正常に削除されました |
None |
レスポンススキーマ#
注釈
この操作には認証が必要ありません