Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)



BackendServices: insert

Requires authorization

Creates a BackendService resource in the specified project using the data included in the request. Try it now .

Request

HTTP request

POST https://www.googleapis.com/compute/v1/projects/project/global/backendServices

Parameters

Parameter name Value Description
Path parameters
project string Name of the project scoping this request.

Authorization

This request requires authorization with the following scope ( read more about authentication and authorization ).

Scope
https://www.googleapis.com/auth/compute

Request body

In the request body, supply a BackendServices resource .

Response

If successful, this method returns a response body with the following structure:

{
  "kind": "compute#operation",
  "id": unsigned long,
  "creationTimestamp": string,
  "name": string,
  "zone": string,
  "clientOperationId": string,
  "operationType": string,
  "targetLink": string,
  "targetId": unsigned long,
  "status": string,
  "statusMessage": string,
  "user": string,
  "progress": integer,
  "insertTime": string,
  "startTime": string,
  "endTime": string,
  "error": {
    "errors": [
      {
        "code": string,
        "location": string,
        "message": string
      }
    ]
  },
  "warnings": [
    {
      "code": string,
      "message": string,
      "data": [
        {
          "key": string,
          "value": string
        }
      ]
    }
  ],
  "httpErrorStatusCode": integer,
  "httpErrorMessage": string,
  "selfLink": string,
  "region": string
}
Property name Value Description Notes
kind string Type of the resource.
id unsigned long Unique identifier for the resource; defined by the server (output only).
creationTimestamp string Creation timestamp in RFC3339 text format (output only).
name string Name of the resource (output only).
zone string URL of the zone where the operation resides (output only).
clientOperationId string An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
operationType string Type of the operation. Examples include "insert", "update", and "delete" (output only).
targetId unsigned long Unique target id which identifies a particular incarnation of the target (output only).
status string Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).

Acceptable values are:
  • " DONE "
  • " PENDING "
  • " RUNNING "
statusMessage string An optional textual description of the current status of the operation (output only).
user string User who requested the operation, for example "[email protected]" (output only).
progress integer An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
insertTime string The time that this operation was requested. This is in RFC 3339 format (output only).
startTime string The time that this operation was started by the server. This is in RFC 3339 format (output only).
endTime string The time that this operation was completed. This is in RFC 3339 format (output only).
error object If errors occurred during processing of this operation, this field will be populated (output only).
error. errors[] list The array of errors encountered while processing this operation.
error.errors[]. code string The error type identifier for this error.
error.errors[]. location string Indicates the field in the request which caused the error. This property is optional.
error.errors[]. message string An optional, human-readable error message.
warnings[] list If warning messages generated during processing of this operation, this field will be populated (output only).
warnings[]. code string The warning type identifier for this warning.

Acceptable values are:
  • " DEPRECATED_RESOURCE_USED "
  • " DISK_SIZE_LARGER_THAN_IMAGE_SIZE "
  • " INJECTED_KERNELS_DEPRECATED "
  • " NEXT_HOP_ADDRESS_NOT_ASSIGNED "
  • " NEXT_HOP_CANNOT_IP_FORWARD "
  • " NEXT_HOP_INSTANCE_NOT_FOUND "
  • " NEXT_HOP_INSTANCE_NOT_ON_NETWORK "
  • " NEXT_HOP_NOT_RUNNING "
  • " NO_RESULTS_ON_PAGE "
  • " REQUIRED_TOS_AGREEMENT "
  • " RESOURCE_NOT_DELETED "
  • " UNREACHABLE "
warnings[]. message string Optional human-readable details for this warning.
warnings[]. data[] list Metadata for this warning in 'key: value' format.
warnings[].data[]. key string A key for the warning data.
warnings[].data[]. value string A warning data value corresponding to the key.
httpErrorStatusCode integer If operation fails, the HTTP error status code returned, e.g. 404. (output only).
httpErrorMessage string If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
region string URL of the region where the operation resides (output only).

Try it!

Use the APIs Explorer below to call this method on live data and see the response.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.