Agent Job#
get_agent_job{agent_id}#
コードサンプル
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/agent/job/{agent_id} \
-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/agent/job/{agent_id}, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id},
{
method: GET,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /agent/job/{agent_id}
agent_idでエージェントレベルのJobs を取得します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
agent_id |
path |
integer |
true |
エージェントID |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
[
{
"jobname": "string",
"jobenabled": true,
"jobdesc": "string"
}
]
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
成功した応答 |
Inline |
レスポンススキーマ#
ステータスコード 200
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
anonymous |
false |
none |
なし |
|
» jobname |
string |
false |
none |
ジョブの名前。 |
» jobenabled |
boolean |
false |
none |
ジョブが有効か無効かを判断します。 |
» jobdesc |
string |
false |
none |
ジョブの説明。 |
注釈
この操作には認証が必要ありません
post_agent_job{agent_id}#
コードサンプル
# You can also use wget
curl -X POST https://PEM-SERVER-IP/api/v14/agent/job/{agent_id} \
-H Content-Type: application/json \
-H Accept: application/json \
-H X-Auth-Token: string
import requests
headers = {
Content-Type: application/json,
Accept: application/json,
X-Auth-Token: string
}
r = requests.post(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}, headers = headers)
print(r.json())
const inputBody = {
"jobname": "string",
"jobenabled": true,
"jobdesc": "string",
"jsteps": [],
"jschedules": [
{
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
],
"notify": "DEFAULT",
"email_group_id": "string"
};
const headers = {
Content-Type:application/json,
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id},
{
method: POST,
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
POST /agent/job/{agent_id}
エージェントレベルのJob を作成します。
ボディパラメーター
{
"jobname": "string",
"jobenabled": true,
"jobdesc": "string",
"jsteps": [],
"jschedules": [
{
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
],
"notify": "DEFAULT",
"email_group_id": "string"
}
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
agent_id |
path |
integer |
true |
エージェントID |
X-Auth-Token |
header |
string |
true |
承認トークン |
body |
body |
true |
なし |
応答例
{
"id": 0
}
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
201 |
正常に作成されました |
Inline |
レスポンススキーマ#
ステータスコード 201
Name |
Type |
Required |
Restrictions |
Description |
|---|---|---|---|---|
» id |
integer |
false |
none |
ジョブのID |
注釈
この操作には認証が必要ありません
get_agent_job{agent_id}_{job_id}#
コードサンプル
# You can also use wget
curl -X GET https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id} \
-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/agent/job/{agent_id}/{job_id}, headers = headers)
print(r.json())
const headers = {
Accept:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id},
{
method: GET,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
GET /agent/job/{agent_id}/{job_id}
agent_idおよびjob_idでエージェントレベルのJobs を取得します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
agent_id |
path |
integer |
true |
エージェントID |
job_id |
path |
integer |
true |
ジョブID |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
{
"jobid": 0,
"jobname": "string",
"jobenabled": true,
"jobdesc": "string",
"jobcreated": "2019-08-24T14:15:22Z",
"jobchanged": "2019-08-24T14:15:22Z",
"jlgstatus": "string",
"jobnextrun": "2019-08-24T14:15:22Z",
"joblastrun": "2019-08-24T14:15:22Z",
"is_alert_job": true,
"notify": "string",
"email_group_id": "string",
"jsteps": [],
"jschedules": [
{
"jscid": 0,
"jscjobid": 0,
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2019-08-24T14:15:22Z",
"jscend": "2019-08-24T14:15:22Z",
"jscweekdays": [
true
],
"jscmonthdays": [
true
],
"jscmonths": [
true
],
"jschours": [
true
],
"jscminutes": [
true
],
"jscexceptions": [
null
],
"jsctimezone": "string"
}
]
}
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
成功した応答 |
注釈
この操作には認証が必要ありません
put_agent_job{agent_id}_{job_id}#
コードサンプル
# You can also use wget
curl -X PUT https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id} \
-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/agent/job/{agent_id}/{job_id}, headers = headers)
print(r.json())
const inputBody = {
"jobname": "string",
"jobenabled": true,
"jobdesc": "string",
"jsteps": {
"added": [
{
"jstname": "string",
"jstdesc": "string",
"jstenabled": true,
"jstkind": true,
"jstcode": "string",
"server_id": 0,
"database_name": "string",
"jstonerror": "f"
}
],
"changed": [
{
"jstid": 0,
"jstname": "string",
"jstdesc": "string",
"jstenabled": true,
"jstkind": true,
"jstcode": "string",
"server_id": 0,
"database_name": "string",
"jstonerror": "f",
"jstnextrun": "string"
}
]
},
"jschedules": {
"added": [
{
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
],
"changed": [
{
"jscid": 0,
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
]
},
"notify": "DEFAULT",
"email_group_id": "string"
};
const headers = {
Content-Type:application/json,
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id},
{
method: PUT,
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
PUT /agent/job/{agent_id}/{job_id}
エージェントレベルのJob を更新します。
ボディパラメーター
{
"jobname": "string",
"jobenabled": true,
"jobdesc": "string",
"jsteps": {
"added": [
{
"jstname": "string",
"jstdesc": "string",
"jstenabled": true,
"jstkind": true,
"jstcode": "string",
"server_id": 0,
"database_name": "string",
"jstonerror": "f"
}
],
"changed": [
{
"jstid": 0,
"jstname": "string",
"jstdesc": "string",
"jstenabled": true,
"jstkind": true,
"jstcode": "string",
"server_id": 0,
"database_name": "string",
"jstonerror": "f",
"jstnextrun": "string"
}
]
},
"jschedules": {
"added": [
{
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
],
"changed": [
{
"jscid": 0,
"jscname": "string",
"jscdesc": "string",
"jscenabled": true,
"jscstart": "2023-10-09 22:43 +05:30",
"jscend": "2023-10-11 22:43 +05:30",
"jscweekdays": "Monday",
"jscmonthdays": 1,
"jscmonths": "January",
"jschours": 0,
"jscminutes": 0,
"jscexceptions": [
{
"jexdate": "2023-10-19",
"jextime": "09:39:00"
}
],
"jsctimezone": "Asia/Calcutta"
}
]
},
"notify": "DEFAULT",
"email_group_id": "string"
}
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
agent_id |
path |
integer |
true |
エージェントID |
job_id |
path |
integer |
true |
ジョブID |
X-Auth-Token |
header |
string |
true |
承認トークン |
body |
body |
true |
なし |
応答例
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
ステータス200 |
None |
レスポンススキーマ#
注釈
この操作には認証が必要ありません
delete_agent_job{agent_id}_{job_id}#
コードサンプル
# You can also use wget
curl -X DELETE https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id} \
-H X-Auth-Token: string
import requests
headers = {
X-Auth-Token: string
}
r = requests.delete(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id}, headers = headers)
print(r.json())
const headers = {
X-Auth-Token:string
};
fetch(https://PEM-SERVER-IP/api/v14/agent/job/{agent_id}/{job_id},
{
method: DELETE,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});
DELETE /agent/job/{agent_id}/{job_id}
agent_idとjob_idを使用してJob を削除します。
パラメーター#
Name |
In |
Type |
Required |
Description |
|---|---|---|---|---|
agent_id |
path |
integer |
true |
エージェントID |
job_id |
path |
integer |
true |
ジョブID |
X-Auth-Token |
header |
string |
true |
承認トークン |
応答例
応答#
Status |
Meaning |
Description |
Schema |
|---|---|---|---|
200 |
削除が成功しました。 |
None |
レスポンススキーマ#
注釈
この操作には認証が必要ありません