Skip to main content

public_advertised_prefixes

Creates, updates, deletes, gets or lists a public_advertised_prefixes resource.

Overview

Namepublic_advertised_prefixes
TypeResource
Idgoogle.compute.public_advertised_prefixes

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
idstring (uint64)[Output Only] The unique identifier for the resource type. The server generates this identifier.
namestringName 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 [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (pattern: a-z?)
byoipApiVersionstring[Output Only] The version of BYOIP API.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
dnsVerificationIpstringThe address to be used for reverse DNS verification.
fingerprintstring (byte)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 PublicAdvertisedPrefix. An up-to-date fingerprint must be provided in order to update the PublicAdvertisedPrefix, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make a get() request to retrieve a PublicAdvertisedPrefix.
ipCidrRangestringThe address range, in CIDR format, represented by this public advertised prefix.
kindstring[Output Only] Type of the resource. Always compute#publicAdvertisedPrefix for public advertised prefixes. (default: compute#publicAdvertisedPrefix)
pdpScopestringSpecifies how child public delegated prefix will be scoped. It could be one of following values: - REGIONAL: The public delegated prefix is regional only. The provisioning will take a few minutes. - GLOBAL: The public delegated prefix is global only. The provisioning will take ~4 weeks. - GLOBAL_AND_REGIONAL [output only]: The public delegated prefixes is BYOIP V1 legacy prefix. This is output only value and no longer supported in BYOIP V2.
publicDelegatedPrefixsarray[Output Only] The list of public delegated prefixes that exist for this public advertised prefix.
selfLinkstring[Output Only] Server-defined URL for the resource.
sharedSecretstring[Output Only] The shared secret to be used for reverse DNS verification.
statusstringThe status of the public advertised prefix. Possible values include: - INITIAL: RPKI validation is complete. - PTR_CONFIGURED: User has configured the PTR. - VALIDATED: Reverse DNS lookup is successful. - REVERSE_DNS_LOOKUP_FAILED: Reverse DNS lookup failed. - PREFIX_CONFIGURATION_IN_PROGRESS: The prefix is being configured. - PREFIX_CONFIGURATION_COMPLETE: The prefix is fully configured. - PREFIX_REMOVAL_IN_PROGRESS: The prefix is being removed.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectproject, publicAdvertisedPrefixReturns the specified PublicAdvertisedPrefix resource.
listselectprojectfilter, maxResults, orderBy, pageToken, returnPartialSuccessLists the PublicAdvertisedPrefixes for a project.
insertinsertprojectrequestIdCreates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.
patchupdateproject, publicAdvertisedPrefixrequestIdPatches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.
deletedeleteproject, publicAdvertisedPrefixrequestIdDeletes the specified PublicAdvertisedPrefix
announceexecproject, publicAdvertisedPrefixrequestIdAnnounces the specified PublicAdvertisedPrefix
withdrawexecproject, publicAdvertisedPrefixrequestIdWithdraws the specified PublicAdvertisedPrefix

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
projectstring
publicAdvertisedPrefixstring
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
requestIdstring
returnPartialSuccessboolean

SELECT examples

Returns the specified PublicAdvertisedPrefix resource.

SELECT
id,
name,
byoipApiVersion,
creationTimestamp,
description,
dnsVerificationIp,
fingerprint,
ipCidrRange,
kind,
pdpScope,
publicDelegatedPrefixs,
selfLink,
sharedSecret,
status
FROM google.compute.public_advertised_prefixes
WHERE project = '{{ project }}' -- required
AND publicAdvertisedPrefix = '{{ publicAdvertisedPrefix }}' -- required;

INSERT examples

Creates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.

INSERT INTO google.compute.public_advertised_prefixes (
data__kind,
data__id,
data__creationTimestamp,
data__name,
data__description,
data__selfLink,
data__ipCidrRange,
data__dnsVerificationIp,
data__sharedSecret,
data__status,
data__pdpScope,
data__publicDelegatedPrefixs,
data__fingerprint,
data__byoipApiVersion,
project,
requestId
)
SELECT
'{{ kind }}',
'{{ id }}',
'{{ creationTimestamp }}',
'{{ name }}',
'{{ description }}',
'{{ selfLink }}',
'{{ ipCidrRange }}',
'{{ dnsVerificationIp }}',
'{{ sharedSecret }}',
'{{ status }}',
'{{ pdpScope }}',
'{{ publicDelegatedPrefixs }}',
'{{ fingerprint }}',
'{{ byoipApiVersion }}',
'{{ project }}',
'{{ requestId }}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone
;

UPDATE examples

Patches the specified Router resource with the data included in the request. This method supports PATCH semantics and uses JSON merge patch format and processing rules.

UPDATE google.compute.public_advertised_prefixes
SET
data__kind = '{{ kind }}',
data__id = '{{ id }}',
data__creationTimestamp = '{{ creationTimestamp }}',
data__name = '{{ name }}',
data__description = '{{ description }}',
data__selfLink = '{{ selfLink }}',
data__ipCidrRange = '{{ ipCidrRange }}',
data__dnsVerificationIp = '{{ dnsVerificationIp }}',
data__sharedSecret = '{{ sharedSecret }}',
data__status = '{{ status }}',
data__pdpScope = '{{ pdpScope }}',
data__publicDelegatedPrefixs = '{{ publicDelegatedPrefixs }}',
data__fingerprint = '{{ fingerprint }}',
data__byoipApiVersion = '{{ byoipApiVersion }}'
WHERE
project = '{{ project }}' --required
AND publicAdvertisedPrefix = '{{ publicAdvertisedPrefix }}' --required
AND requestId = '{{ requestId}}'
RETURNING
id,
name,
clientOperationId,
creationTimestamp,
description,
endTime,
error,
httpErrorMessage,
httpErrorStatusCode,
insertTime,
instancesBulkInsertOperationMetadata,
kind,
operationGroupId,
operationType,
progress,
region,
selfLink,
setCommonInstanceMetadataOperationMetadata,
startTime,
status,
statusMessage,
targetId,
targetLink,
user,
warnings,
zone;

DELETE examples

Deletes the specified PublicAdvertisedPrefix

DELETE FROM google.compute.public_advertised_prefixes
WHERE project = '{{ project }}' --required
AND publicAdvertisedPrefix = '{{ publicAdvertisedPrefix }}' --required
AND requestId = '{{ requestId }}';

Lifecycle Methods

Announces the specified PublicAdvertisedPrefix

EXEC google.compute.public_advertised_prefixes.announce 
@project='{{ project }}' --required,
@publicAdvertisedPrefix='{{ publicAdvertisedPrefix }}' --required,
@requestId='{{ requestId }}';