Skip to main content

xpn_hosts

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

Overview​

Namexpn_hosts
TypeResource
Idgoogle.compute.xpn_hosts

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstring (uint64)[Output Only] The unique identifier for the resource. This identifier is defined by the server. This is not the project ID, and is just a unique ID used by Compute Engine to identify resources.
namestringThe project ID. For example: my-example-project. Use the project ID to make requests to Compute Engine.
cloudArmorTierstringOutput only. [Output Only] The Cloud Armor tier for this project. It can be one of the following values: CA_STANDARD,CA_ENTERPRISE_PAYGO. If this field is not specified, it is assumed to beCA_STANDARD. (CA_ENTERPRISE_ANNUAL, CA_ENTERPRISE_PAYGO, CA_STANDARD)
commonInstanceMetadataobjectMetadata key/value pairs available to all instances contained in this project. See Custom metadata for more information. (id: Metadata)
creationTimestampstring[Output Only] Creation timestamp inRFC3339 text format.
defaultNetworkTierstringThis signifies the default network tier used for configuring resources of the project and can only take the following values:PREMIUM, STANDARD. Initially the default network tier is PREMIUM. (FIXED_STANDARD, PREMIUM, STANDARD, STANDARD_OVERRIDES_FIXED_STANDARD)
defaultServiceAccountstring[Output Only] Default service account used by VMs running in this project.
descriptionstringAn optional textual description of the resource.
enabledFeaturesarrayAn optional list of restricted features enabled for use on this project.
kindstringOutput only. [Output Only] Type of the resource. Always compute#project for projects. (default: compute#project)
quotasarray[Output Only] Quotas assigned to this project.
selfLinkstring[Output Only] Server-defined URL for the resource.
usageExportLocationobjectAn optional naming prefix for daily usage reports and the Google Cloud Storage bucket where they are stored. (id: UsageExportLocation)
vmDnsSettingstringOutput only. [Output Only] Default internal DNS setting used by VMs running in this project. (GLOBAL_DEFAULT, UNSPECIFIED_VM_DNS_SETTING, ZONAL_DEFAULT, ZONAL_ONLY)
xpnProjectStatusstring[Output Only] The role this project has in a shared VPC configuration. Currently, only projects with the host role, which is specified by the value HOST, are differentiated. (HOST, UNSPECIFIED_XPN_PROJECT_STATUS)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_xpn_hostselectprojectGets the shared VPC host project that this project links to. May be empty
if no link exists.
list_xpn_hostsselectprojectfilter, maxResults, orderBy, pageToken, returnPartialSuccessLists all shared VPC host projects visible to the user in an organization.

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
filterstring
maxResultsinteger (uint32)
orderBystring
pageTokenstring
returnPartialSuccessboolean

SELECT examples​

Gets the shared VPC host project that this project links to. May be empty
if no link exists.

SELECT
id,
name,
cloudArmorTier,
commonInstanceMetadata,
creationTimestamp,
defaultNetworkTier,
defaultServiceAccount,
description,
enabledFeatures,
kind,
quotas,
selfLink,
usageExportLocation,
vmDnsSetting,
xpnProjectStatus
FROM google.compute.xpn_hosts
WHERE project = '{{ project }}' -- required
;