Skip to main content

xpn_host

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

Overview

Namexpn_host
TypeResource
Idgoogle.compute.xpn_host

Fields

NameDatatypeDescription
idstring[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.
descriptionstringAn optional textual description of the resource.
cloudArmorTierstring[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 be CA_STANDARD.
commonInstanceMetadataobjectA metadata key/value entry.
creationTimestampstring[Output Only] Creation timestamp in RFC3339 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.
defaultServiceAccountstring[Output Only] Default service account used by VMs running in this project.
enabledFeaturesarrayRestricted features enabled for use on this project.
kindstring[Output Only] Type of the resource. Always compute#project for projects.
quotasarray[Output Only] Quotas assigned to this project.
selfLinkstring[Output Only] Server-defined URL for the resource.
usageExportLocationobjectThe location in Cloud Storage and naming method of the daily usage report. Contains bucket_name and report_name prefix.
vmDnsSettingstring[Output Only] Default internal DNS setting used by VMs running in this project.
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.

Methods

NameAccessible byRequired ParamsDescription
get_xpn_hostSELECTprojectGets the shared VPC host project that this project links to. May be empty if no link exists.

SELECT examples

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

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