Web Risk API . projects . submissions

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, x__xgafv=None)

Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the result verifies the existence of malicious phishing content, the site will be added to the [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a Submission of a URI suspected of containing phishing content to be reviewed. If the result verifies the existence of malicious phishing content, the site will be added to the [Google's Social Engineering lists](https://support.google.com/webmasters/answer/6350487/) in order to protect users that could get exposed to this threat in the future. Only allowlisted projects can use this method during Early Access. Please reach out to Sales or your customer engineer to obtain access.

Args:
  parent: string, Required. The name of the project that is making the submission. This string is in the format "projects/{project_number}". (required)
  body: object, The request body.
    The object takes the form of:

{ # Wraps a URI that might be displaying malicious content.
  "threatTypes": [ # ThreatTypes found to be associated with the submitted URI after reviewing it. This may be empty if the URI was not added to any list.
    "A String",
  ],
  "uri": "A String", # Required. The URI that is being reported for malicious content to be analyzed.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Wraps a URI that might be displaying malicious content.
  "threatTypes": [ # ThreatTypes found to be associated with the submitted URI after reviewing it. This may be empty if the URI was not added to any list.
    "A String",
  ],
  "uri": "A String", # Required. The URI that is being reported for malicious content to be analyzed.
}