全部产品
阿里云办公

删除证书

更新时间:2018-06-20 18:41:54

描述

说明:在Codepipeline中删除一个用户证书。

请求信息

请求行 RequestLine

  1. POST /credential/delete HTTP/1.1

请求行参数 URI Param

名称 类型 是否必须 描述
CredentialId String 证书ID

返回信息

返回行 ResponseLine

  1. HTTP/1.1 200 OK

返回码 HTTP Status Code

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

返回体 ResponseBody

  1. {
  2. "RequestId": "string"
  3. }

返回体解释

java代码示例(删除id为demo-id的用户证书):

  1. DeleteCredentialRequest deleteCredentialRequest = new DeleteCredentialRequest();
  2. try {
  3. deleteCredentialRequest.setAcceptFormat(FormatType.JSON);
  4. deleteCredentialRequest.setCredentialId("demo-id");
  5. DeleteCredentialResponse deleteCredentialResponse = client.getAcsResponse(deleteCredentialRequest);
  6. System.out.println(deleteCredentialResponse.getRequestId());
  7. } catch (Exception e) {
  8. e.printStackTrace();;
  9. }