Skip to main content

instances_access_config

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

Overview

Nameinstances_access_config
TypeResource
Idgoogle.compute.instances_access_config

Fields

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

NameAccessible byRequired ParamsDescription
add_access_configINSERTinstance, networkInterface, project, zoneAdds an access config to an instance's network interface.
delete_access_configDELETEaccessConfig, instance, networkInterface, project, zoneDeletes an access config from an instance's network interface.
update_access_configUPDATEinstance, networkInterface, project, zoneUpdates the specified access config from an instance's network interface with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules.

INSERT example

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

/*+ create */
INSERT INTO google.compute.instances_access_config (
instance,
networkInterface,
project,
zone,
type,
name,
natIP,
externalIpv6,
externalIpv6PrefixLength,
setPublicPtr,
publicPtrDomainName,
networkTier,
securityPolicy
)
SELECT
'{{ instance }}',
'{{ networkInterface }}',
'{{ project }}',
'{{ zone }}',
'{{ type }}',
'{{ name }}',
'{{ natIP }}',
'{{ externalIpv6 }}',
'{{ externalIpv6PrefixLength }}',
{{ setPublicPtr }},
'{{ publicPtrDomainName }}',
'{{ networkTier }}',
'{{ securityPolicy }}'
;

UPDATE example

Updates a instances_access_config resource.

/*+ update */
UPDATE google.compute.instances_access_config
SET
type = '{{ type }}',
name = '{{ name }}',
natIP = '{{ natIP }}',
externalIpv6 = '{{ externalIpv6 }}',
externalIpv6PrefixLength = '{{ externalIpv6PrefixLength }}',
setPublicPtr = true|false,
publicPtrDomainName = '{{ publicPtrDomainName }}',
networkTier = '{{ networkTier }}',
securityPolicy = '{{ securityPolicy }}'
WHERE
instance = '{{ instance }}'
AND networkInterface = '{{ networkInterface }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';

DELETE example

Deletes the specified instances_access_config resource.

/*+ delete */
DELETE FROM google.compute.instances_access_config
WHERE accessConfig = '{{ accessConfig }}'
AND instance = '{{ instance }}'
AND networkInterface = '{{ networkInterface }}'
AND project = '{{ project }}'
AND zone = '{{ zone }}';