更新时间:2017-11-23 20:59
说明:删除您在Codepipeline中的项目。
DELETE /job/{JobName} HTTP/1.1
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
JobName | String | 是 | 项目名称 |
HTTP/1.1 200 OK
Status Code | 描述 |
---|---|
204 | No Content |
401 | Authentication failed |
403 | The request was valid, but the server is refusing action. The user might not have the necessary permissions for a resource, or may need an account of some sort. |
500 | Internal Error |
{
"RequestId": "string"
}
无
@Test
public void deleteJob() {
DeleteJobRequest deleteJobRequest = new DeleteJobRequest();
try {
deleteJobRequest.setAcceptFormat(FormatType.JSON);
deleteJobRequest.setJobName("test");
deleteJobRequest.setMethod(MethodType.DELETE);
DeleteJobResponse deleteJobResponse = client.getAcsResponse(deleteJobRequest);
} catch (ServerException e) {
e.printStackTrace();
Assert.fail();
} catch (ClientException e) {
e.printStackTrace();
Assert.fail();
}
}
在文档使用中是否遇到以下问题
更多建议
匿名提交