- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- Try it!
Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.
HTTP request
POST https://compute.googleapis.com/compute/v1/projects/{project}/global/publicAdvertisedPrefixes The URLs use gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
project |
Project ID for this request. |
Query parameters
| Parameters | |
|---|---|
requestId |
An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "description": string, "selfLink": string, "ipCidrRange": string, "dnsVerificationIp": string, "sharedSecret": string, "status": enum, "pdpScope": enum, "publicDelegatedPrefixs": [ { "name": string, "region": string, "project": string, "status": string, "ipRange": string } ], "fingerprint": string, "byoipApiVersion": enum, "ipv6AccessType": enum } |
| Fields | |
|---|---|
kind |
Output only. Type of the resource. Always |
id |
Output only. The unique identifier for the resource type. The server generates this identifier. |
creationTimestamp |
Output only. Creation timestamp in RFC3339 text format. |
name |
[REQUIRED] Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression |
description |
An optional description of this resource. Provide this property when you create the resource. |
selfLink |
Output only. Server-defined URL for the resource. |
ipCidrRange |
The address range, in CIDR format, represented by this public advertised prefix. |
dnsVerificationIp |
The address to be used for reverse DNS verification. |
sharedSecret |
Output only. The shared secret to be used for reverse DNS verification. |
status |
The status of the public advertised prefix. Possible values include:
|
pdpScope |
Specifies how child public delegated prefix will be scoped. It could be one of following values:
|
publicDelegatedPrefixs[] |
Output only. The list of public delegated prefixes that exist for this public advertised prefix. |
publicDelegatedPrefixs[].name |
The name of the public delegated prefix |
publicDelegatedPrefixs[].region |
The region of the public delegated prefix if it is regional. If absent, the prefix is global. |
publicDelegatedPrefixs[].project |
The project number of the public delegated prefix |
publicDelegatedPrefixs[].status |
The status of the public delegated prefix. Possible values are: INITIALIZING: The public delegated prefix is being initialized and addresses cannot be created yet. ANNOUNCED: The public delegated prefix is active. |
publicDelegatedPrefixs[].ipRange |
The IP address range of the public delegated prefix |
fingerprint |
Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a new To see the latest fingerprint, make a A base64-encoded string. |
byoipApiVersion |
Output only. The version of BYOIP API. |
ipv6AccessType |
The internet access type for IPv6 Public Advertised Prefixes. |
Response body
Represents an Operation resource.
Google Compute Engine has three Operation resources:
You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
Operations can be global, regional or zonal.
- For global operations, use the
globalOperationsresource. - For regional operations, use the
regionOperationsresource. - For zonal operations, use the
zoneOperationsresource.
For more information, read Global, Regional, and Zonal Resources.
Note that completed Operation resources have a limited retention period.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "kind": string, "id": string, "creationTimestamp": string, "name": string, "zone": string, "clientOperationId": string, "operationType": string, "targetLink": string, "targetId": string, "status": enum, "statusMessage": string, "user": string, "progress": integer, "insertTime": string, "startTime": string, "endTime": string, "error": { "errors": [ { "code": string, "location": string, "message": string, "errorDetails": [ { "errorInfo": { "reason": string, "domain": string, "metadatas": { string: string, ... } }, "quotaInfo": { "metricName": string, "limitName": string, "dimensions": { string: string, ... }, "limit": number, "futureLimit": number, "rolloutStatus": enum }, "help": { "links": [ { "description": string, "url": string } ] }, "localizedMessage": { "locale": string, "message": string } } ] } ] }, "warnings": [ { "code": enum, "message": string, "data": [ { "key": string, "value": string } ] } ], "httpErrorStatusCode": integer, "httpErrorMessage": string, "selfLink": string, "region": string, "description": string, "operationGroupId": string, // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "setCommonInstanceMetadataOperationMetadata": { "clientOperationId": string, "perLocationOperations": { string: { "state": enum, "error": { "code": integer, "message": string, "details": [ { "@type": string, field1: ..., ... } ] } }, ... } }, "instancesBulkInsertOperationMetadata": { "perLocationStatus": { string: { "status": enum, "targetVmCount": integer, "createdVmCount": integer, "failedToCreateVmCount": integer, "deletedVmCount": integer }, ... } }, "getVersionOperationMetadata": { "inlineSbomInfo": { "currentComponentVersions": { string: string, ... }, "targetComponentVersions": { string: string, ... } } }, "getHealthOperationMetadata": { "healthInfo": { "healthStatus": enum, "unhealthyReason": enum, "repairCategory": enum, "availabilitySloStatus": enum, "updateTime": string } } // End of mutually exclusive fields. } |
| Fields | |
|---|---|
kind |
Output only. Type of the resource. Always |
id |
Output only. The unique identifier for the operation. This identifier is defined by the server. |
creationTimestamp |
[Deprecated] This field is deprecated. |
name |
Output only. Name of the operation. |
zone |
Output only. The URL of the zone where the operation resides. Only applicable when performing per-zone operations. |
clientOperationId |
Output only. The value of |
operationType |
Output only. The type of operation, such as |
targetLink |
Output only. The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the disk that the snapshot was created from. |
targetId |
Output only. The unique target ID, which identifies a specific incarnation of the target resource. |
status |
Output only. The status of the operation, which can be one of the following: |
statusMessage |
Output only. An optional textual description of the current status of the operation. |
user |
Output only. User who requested the operation, for example: |
progress |
Output only. 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 when the operation will be complete. This number should monotonically increase as the operation progresses. |
insertTime |
Output only. The time that this operation was requested. This value is in RFC3339 text format. |
startTime |
Output only. The time that this operation was started by the server. This value is in RFC3339 text format. |
endTime |
Output only. The time that this operation was completed. This value is in RFC3339 text format. |
error |
Output only. If errors are generated during processing of the operation, this field will be populated. |
error.errors[] |
Output only. The array of errors encountered while processing this operation. |
error.errors[].code |
Output only. The error type identifier for this error. |
error.errors[].location |
Output only. Indicates the field in the request that caused the error. This property is optional. |
error.errors[].message |
Output only. An optional, human-readable error message. |
error.errors[].errorDetails[] |
Output only. An optional list of messages that contain the error details. There is a set of defined message types to use for providing details.The syntax depends on the error code. For example, QuotaExceededInfo will have details when the error code is QUOTA_EXCEEDED. |
error.errors[].errorDetails[].errorInfo |
Error information containing structured domain, reason, and metadata. |
error.errors[].errorDetails[].errorInfo.reason |
The reason of the error. This is a constant value that identifies the proximate cause of the error. Error reasons are unique within a particular domain of errors. This should be at most 63 chara |