instances_access_config
Creates, updates, deletes, gets or lists a instances_access_config
resource.
Overview
Name | instances_access_config |
Type | Resource |
Id | google.compute.instances_access_config |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_access_config | INSERT | instance, networkInterface, project, zone | Adds an access config to an instance's network interface. |
delete_access_config | DELETE | accessConfig, instance, networkInterface, project, zone | Deletes an access config from an instance's network interface. |
update_access_config | UPDATE | instance, networkInterface, project, zone | Updates 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.
- All Properties
- Manifest
/*+ 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 }}'
;
- name: your_resource_model_name
props:
- name: kind
value: string
- name: type
value: string
- name: name
value: string
- name: natIP
value: string
- name: externalIpv6
value: string
- name: externalIpv6PrefixLength
value: integer
- name: setPublicPtr
value: boolean
- name: publicPtrDomainName
value: string
- name: networkTier
value: string
- name: securityPolicy
value: string
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 }}';