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

NameDatatypeDescription
idstring[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.
descriptionstringAn optional description of this resource. Provide this property when you create the resource.
byoipApiVersionstring[Output Only] The version of BYOIP API.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 text format.
dnsVerificationIpstringThe address to be used for reverse DNS verification.
fingerprintstringFingerprint 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.
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

NameAccessible byRequired ParamsDescription
getSELECTproject, publicAdvertisedPrefixReturns the specified PublicAdvertisedPrefix resource.
listSELECTprojectLists the PublicAdvertisedPrefixes for a project.
insertINSERTprojectCreates a PublicAdvertisedPrefix in the specified project using the parameters that are included in the request.
deleteDELETEproject, publicAdvertisedPrefixDeletes the specified PublicAdvertisedPrefix
patchUPDATEproject, publicAdvertisedPrefixPatches 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.
announceEXECproject, publicAdvertisedPrefixAnnounces the specified PublicAdvertisedPrefix
withdrawEXECproject, publicAdvertisedPrefixWithdraws the specified PublicAdvertisedPrefix

SELECT examples

Lists the PublicAdvertisedPrefixes for a project.

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

INSERT example

Use the following StackQL query and manifest file to create a new public_advertised_prefixes resource.

/*+ create */
INSERT INTO google.compute.public_advertised_prefixes (
project,
name,
description,
ipCidrRange,
dnsVerificationIp,
sharedSecret,
status,
pdpScope,
publicDelegatedPrefixs,
fingerprint,
byoipApiVersion
)
SELECT
'{{ project }}',
'{{ name }}',
'{{ description }}',
'{{ ipCidrRange }}',
'{{ dnsVerificationIp }}',
'{{ sharedSecret }}',
'{{ status }}',
'{{ pdpScope }}',
'{{ publicDelegatedPrefixs }}',
'{{ fingerprint }}',
'{{ byoipApiVersion }}'
;

UPDATE example

Updates a public_advertised_prefixes resource.

/*+ update */
UPDATE google.compute.public_advertised_prefixes
SET
name = '{{ name }}',
description = '{{ description }}',
ipCidrRange = '{{ ipCidrRange }}',
dnsVerificationIp = '{{ dnsVerificationIp }}',
sharedSecret = '{{ sharedSecret }}',
status = '{{ status }}',
pdpScope = '{{ pdpScope }}',
publicDelegatedPrefixs = '{{ publicDelegatedPrefixs }}',
fingerprint = '{{ fingerprint }}',
byoipApiVersion = '{{ byoipApiVersion }}'
WHERE
project = '{{ project }}'
AND publicAdvertisedPrefix = '{{ publicAdvertisedPrefix }}';

DELETE example

Deletes the specified public_advertised_prefixes resource.

/*+ delete */
DELETE FROM google.compute.public_advertised_prefixes
WHERE project = '{{ project }}'
AND publicAdvertisedPrefix = '{{ publicAdvertisedPrefix }}';