百度智能云

All Product Document

          Intrusion Detection System

          Set Related Interface

          Query the Postpaid Switch Interface

          Description

          • Query the postpaid switch.

          Request structure

          GET /v{version}/securityAudit/postpayStatus&clientToken={clientToken} HTTP/1.1
          Host: bss.bj.baidubce.com
          Authorization: authorization string

          Request header

          There are no other special headers except the public headers.

          Request parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 2)
          clientToken String Yes Query parameter Idempotence Token, for details, please see clientToken

          Return status code

          "200" for return successful and Error Code for return failed.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          Parameter name Type Description
          accountId String User id
          postpayStatus PostpayStatus Postpaid status

          Request example

          GET /v2/securityAudit/postpayStatus&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
          HOST bss.bj.baidubce.com
          Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02

          Response example

          HTTP/1.1 200 OK
          x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
          Date: Wed, 10 Apr 2016 08:26:52 GMT
          Transfer-Encoding: chunked
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          
          {
              "accountId": "111",
              "postpayStatus": 1,
          }

          Query the Log Service Configuration Interface

          Description

          • Query the log service configuration.

          Request structure

          GET /v{version}/securityAudit/logService&clientToken={clientToken} HTTP/1.1
          Host: bss.bj.baidubce.com
          Authorization: authorization string

          Request header

          There are no other special headers except the public headers.

          Request parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 2)
          clientToken String Yes Query parameter Idempotence Token, for details, please see clientToken

          Return status code

          "200" for return successful and Error Code for return failed.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          Parameter name Type Description
          accountId String User id
          logServiceStatus LogServiceStatus Log service status
          bucket BucketModel Bucket configuration information

          Request example

          GET /v2/securityAudit/logService&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
          HOST bss.bj.baidubce.com
          Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02

          Response example

          HTTP/1.1 200 OK
          x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
          Date: Wed, 10 Apr 2016 08:26:52 GMT
          Transfer-Encoding: chunked
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          
          {
              "accountId": "111",
              "logServiceStatus": 1,
              "bucket": {
                  "bj": "bucket1",
                  "gz": "bucket2",
                  "su": "bucket3",
              }
          }

          Query the Interface of Authorized eip Configuration

          Description

          • Query the authorized eip.

          Request structure

          GET /v{version}/securityAudit/authEipList&clientToken={clientToken} HTTP/1.1
          Host: bss.bj.baidubce.com
          Authorization: authorization string

          Request header

          There are no other special headers except the public headers.

          Request parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 2)
          clientToken String Yes Query parameter Idempotence Token, for details, please see clientToken

          Return status code

          "200" for return successful and Error Code for return failed.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          Parameter name Type Description
          accountId String User id
          authAllEip AuthAllEipStatus Whether to authorize all eips
          eipDict EipDictModel List of eip configuration

          Request example

          GET /v2/securityAudit/authEipList&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
          HOST bss.bj.baidubce.com
          Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02

          Response example

          HTTP/1.1 200 OK
          x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
          Date: Wed, 10 Apr 2016 08:26:52 GMT
          Transfer-Encoding: chunked
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          
          {
              "authAllEip": 0,                                                
              "eipDict": {                                                    
                  "bj": ["180.76.1.1", ...],
                  "gz": ["182.61.1.1", ...],
                  "su": ["106.12.1.1", ...],
              },
          }

          Set the Authorized eip Interface

          Description

          • Set the authorized eip.

          Request structure

          PUT /v{version}/securityAudit/authEipList&clientToken={clientToken} HTTP/1.1
          Host: bss.bj.baidubce.com
          Authorization: authorization string
          
          {
              "authAllEip": 0,                                                
              "eipDict": {                                                    
                  "bj": ["180.76.1.1", ...],
                  "gz": ["182.61.1.1", ...],
                  "su": ["106.12.1.1", ...],
              },
          }

          Request header

          There are no other special headers except the public headers.

          Request parameter

          Parameter name Type Required or not Parameter position Description
          version String Yes URL parameter API version number (the current value is 2)
          clientToken String Yes Query parameter Idempotence Token, for details, please see clientToken
          authAllEip AuthAllEipStatus Yes RequestBody Whether to authorize all eips
          eipDict EipDictModel Yes RequestBody List of eip configuration

          Return status code

          "200" for return successful and Error Code for return failed.

          Return header

          There are no other special headers except the public headers.

          Return parameter

          No special return parameters.

          Request example

          PUT /v2/securityAudit/authEipList&clientToken=be31b98c-5e41-4838-9830-9be700de5a20 HTTP/1.1
          HOST bss.bj.baidubce.com
          Authorization bce-auth-v1/5e5a8adf11ae475ba95f1bd38228b44f/2016-04-10T08:26:52Z/1800/host;x-bce-date/ec3c0069f9abb1e247773a62707224124b2b31b4c171133677f9042969791f02
          
          {
              "authAllEip": 0,                                                
              "eipDict": {                                                    
                  "bj": ["180.76.1.1", ...],
                  "gz": ["182.61.1.1", ...],
                  "su": ["106.12.1.1", ...],
              },
          }

          Response example

          HTTP/1.1 200 OK
          x-bce-request-id: 946002ee-cb4f-4aad-b686-5be55df27f09
          Date: Wed, 10 Apr 2016 08:26:52 GMT
          Transfer-Encoding: chunked
          Content-Type: application/json;charset=UTF-8
          Server: BWS
          Previous
          Statistic Analysis Query Interface
          Next
          Appendix 1