Cloud Asset Inventory field name update

To maintain consistency between Cloud Asset Inventory response field names and other public Google Cloud Platform APIs response field names, Cloud Asset Inventory updates certain field names to match the public APIs.

To keep the Cloud Asset API temporarily backwards compatible, Cloud Asset Inventory exports both types of field names. Note that only field names are updated. The content of the fields aren't changed.

While the deprecated Cloud Asset Inventory field names are backwards compatible during the transition time period, review the list of updated asset field names below. If you have any data processes depending on the soon-to-be deprecated field names, avoid possible service disruptions by updating them to use the new field names.

The following table shows the list of deprecated field names and what they are updated to.

Resource type CAI deprecated field name CAI updated field name
Autoscaler
RegionAutoscaler
autoscalingpolicy.customMetricUtilization autoscalingpolicy.customMetricUtilizations
BackendService
RegionBackendService
backend.researchGroup backend.group
backend backends
customRequestHeader customRequestHeaders
enableCdn enableCDN
healthCheck healthChecks
serviceProtocol protocol
securitySettings.serverSettingsSelector.labelMatch securitySettings.serverSettingsSelector.labelMatches
Disk
RegionDisk
guestOsFeature guestOsFeatures
license licenses
licenseCode licenseCodes
replicaZone replicaZones
resourcePolicy resourcePolicies
user users
Firewall allowed.ipProtocol allowed.IPProtocol
allowed.port allowed.ports
destinationRange destinationRanges
sourceRange sourceRanges
sourceServiceAccount sourceServiceAccounts
sourceTag sourceTags
targetServiceAccount targetServiceAccounts
targetTag targetTags
denied.ipProtocol denied.IPProtocol
denied.port denied.ports
ForwardingRule
GlobalForwardingRule
ipAddress IPAddress
ipProtocol IPProtocol
Image guestOsFeature guestOsFeatures
license licenses
licenseCode licenseCodes
storageLocation storageLocations
Instance disk disks
guestAccelerator guestAccelerators
networkInterface networkInterfaces
resourcePolicy resourcePolicies
serviceAccount serviceAccounts
disk.guestOsFeature disk.guestOsFeatures
disk.license disk.licenses
disk.initializeParams.guestOsFeature disk.initializeParams.guestOsFeatures
disk.initializeParams.replicaZone disk.initializeParams.replicaZones
metadata.item metadata.items
networkInterface.accessConfig.externalIp networkInterface.accessConfig.natIP
networkInterface.accessConfig networkInterface.accessConfigs
networkInterface.aliasIpRange networkInterface.aliasIpRanges
networkInterface.ipAddress networkInterface.networkIP
scheduling.nodeAffinity scheduling.nodeAffinities
scheduling.nodeAffinity.value scheduling.nodeAffinity.values
serviceAccount.scope serviceAccount.scopes
tags.tag tags.items
InstanceGroup
RegionInstanceGroup
namedPort namedPorts
InstanceGroupManager
RegionInstanceGroupManager
autoHealingPolicy autoHealingPolicies
namedPort namedPorts
targetPool targetPools
version versions
distributionPolicy.zone distributionPolicy.zones
statefulPolicy.preservedResources.disk statefulPolicy.preservedResources.disks
InstanceTemplate disk disks
guestAccelerator guestAccelerators
networkInterface networkInterfaces
serviceAccount serviceAccounts
disk.guestOsFeature disk.guestOsFeatures
disk.license disk.licenses
disk.initializeParams.guestOsFeature disk.initializeParams.guestOsFeatures
disk.initializeParams.replicaZone disk.initializeParams.replicaZones
metadata.item metadata.items
networkInterface.accessConfig.externalIp networkInterface.accessConfig.natIP
networkInterface.accessConfig networkInterface.accessConfigs
networkInterface.aliasIpRange networkInterface.aliasIpRanges
networkInterface.ipAddress networkInterface.networkIP
scheduling.nodeAffinity scheduling.nodeAffinities
scheduling.nodeAffinity.value scheduling.nodeAffinity.values
serviceAccount.scope serviceAccount.scopes
tags.tag tags.items
sourceInstanceParams.diskConfig sourceInstanceParams.diskConfigs
Network gatewayIpv4 gatewayIPv4
ipv4Range IPv4Range
subnetwork subnetworks
Project enabledFeature enabledFeatures
quota quotas
commonInstanceMetadata.item commonInstanceMetadata.items
Route tag tags
warning warnings
Router bgp.advertisedGroup bgp.advertisedGroups
bgp.advertisedIpRange bgp.advertisedIpRanges
bgpPeer.advertisedGroup bgpPeer.advertisedGroups
bgpPeer.advertisedGroup bgpPeer.advertisedIpRanges
bgpPeer bgpPeers
interface interfaces
nat nats
nat.natIp nat.natIps
nat.subnetwork nat.subnetworks
nat.subnetwork.secondaryIpRangeName nat.subnetwork.secondaryIpRangeNames
Snapshot guestOsFeature guestOsFeatures
license licenses
licenseCode licenseCodes
storageLocation storageLocations
Subnetwork allowConflictingRoutes allowSubnetCidrRoutesOverlap
secondaryIpRange secondaryIpRanges
TargetHttpsProxy sslCertificate sslCertificates
TargetPool healthCheck healthChecks
instance instances
TargetSslProxy backendService service
sslCertificate sslCertificates
TargetTcpProxy backendService service
TargetVpnGateway forwardingRule forwardingRules
tunnel tunnels
UrlMap test tests
hostRule hostRules
pathMatcher pathMatchers
test.expectedBackendService test.service
hostRule.host hostRule.hosts
pathMatcher.routeRule pathMatcher.routeRules
pathMatcher.pathRule pathMatcher.pathRules
pathMatcher.routeRule.matchRule pathMatcher.routeRule.matchRules
pathMatcher.routeRule.matchRule.headerMatch pathMatcher.routeRule.matchRule.headerMatches
pathMatcher.routeRule.matchRule.metadataFilter pathMatcher.routeRule.matchRule.metadataFilters
pathMatcher.routeRule.matchRule.queryParameterMatch pathMatcher.routeRule.matchRule.queryParameterMatches
pathMatcher.routeRule.matchRule.metadataFilter.filterLabel pathMatcher.routeRule.matchRule.metadataFilter.filterLabels
pathMatcher.routeRule.routeAction.weightedBackendService pathMatcher.routeRule.routeAction.weightedBackendServices
pathMatcher.routeRule.routeAction.corsPolicy.exposeHeader pathMatcher.routeRule.routeAction.corsPolicy.exposeHeaders
pathMatcher.routeRule.routeAction.corsPolicy.allowOrigin pathMatcher.routeRule.routeAction.corsPolicy.allowOrigins
pathMatcher.routeRule.routeAction.corsPolicy.allowMethod pathMatcher.routeRule.routeAction.corsPolicy.allowMethods
pathMatcher.routeRule.routeAction.corsPolicy.allowOriginRegex pathMatcher.routeRule.routeAction.corsPolicy.allowOriginRegexes
pathMatcher.routeRule.routeAction.corsPolicy.allowHeader pathMatcher.routeRule.routeAction.corsPolicy.allowHeaders
pathMatcher.routeRule.routeAction.retryPolicy.retryCondition pathMatcher.routeRule.routeAction.retryPolicy.retryConditions
pathMatcher.pathRule.path pathMatcher.pathRule.paths
pathMatcher.pathRule.backendService pathMatcher.pathRule.backendService
pathMatcher.pathRule.routeAction.weightedBackendService pathMatcher.pathRule.routeAction.weightedBackendServices
pathMatcher.pathRule.routeAction.corsPolicy.exposeHeader pathMatcher.pathRule.routeAction.corsPolicy.exposeHeaders
pathMatcher.pathRule.routeAction.corsPolicy.allowOrigin pathMatcher.pathRule.routeAction.corsPolicy.allowOrigins
pathMatcher.pathRule.routeAction.corsPolicy.allowMethod pathMatcher.pathRule.routeAction.corsPolicy.allowMethods
pathMatcher.pathRule.routeAction.corsPolicy.allowOriginRegex pathMatcher.pathRule.routeAction.corsPolicy.allowOriginRegexes
pathMatcher.pathRule.routeAction.corsPolicy.allowHeader pathMatcher.pathRule.routeAction.corsPolicy.allowHeaders
pathMatcher.pathRule.routeAction.retryPolicy.retryCondition pathMatcher.pathRule.routeAction.retryPolicy.retryConditions
pathMatcher.defaultRouteAction.weightedBackendService pathMatcher.defaultRouteAction.weightedBackendServices
pathMatcher.defaultRouteAction.corsPolicy.exposeHeader pathMatcher.defaultRouteAction.corsPolicy.exposeHeaders
pathMatcher.defaultRouteAction.corsPolicy.allowOrigin pathMatcher.defaultRouteAction.corsPolicy.allowOrigins
pathMatcher.defaultRouteAction.corsPolicy.allowMethod pathMatcher.defaultRouteAction.corsPolicy.allowMethods
pathMatcher.defaultRouteAction.corsPolicy.allowOriginRegex pathMatcher.defaultRouteAction.corsPolicy.allowOriginRegexes
pathMatcher.defaultRouteAction.corsPolicy.allowHeader pathMatcher.defaultRouteAction.corsPolicy.allowHeaders
pathMatcher.defaultRouteAction.retryPolicy.retryCondition pathMatcher.defaultRouteAction.retryPolicy.retryConditions
defaultRouteAction.weightedBackendService defaultRouteAction.weightedBackendServices
defaultRouteAction.corsPolicy.exposeHeader defaultRouteAction.corsPolicy.exposeHeaders
defaultRouteAction.corsPolicy.allowOrigin defaultRouteAction.corsPolicy.allowOrigins
defaultRouteAction.corsPolicy.allowMethod defaultRouteAction.corsPolicy.allowMethods
defaultRouteAction.corsPolicy.allowOriginRegex defaultRouteAction.corsPolicy.allowOriginRegexes
defaultRouteAction.corsPolicy.allowHeader defaultRouteAction.corsPolicy.allowHeaders
defaultRouteAction.retryPolicy.retryCondition defaultRouteAction.retryPolicy.retryConditions
Var denne siden nyttig? Si fra hva du synes:

Send tilbakemelding om ...

Cloud Asset Inventory Documentation