Skip to main content

networks_vpc_service_controls

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

Overview

Namenetworks_vpc_service_controls
TypeResource
Idgoogle.servicenetworking.networks_vpc_service_controls

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
enabledbooleanOutput only. Indicates whether the VPC Service Controls are enabled or disabled for the connection. If the consumer called the EnableVpcServiceControls method, then this is true. If the consumer called DisableVpcServiceControls, then this is false. The default is false.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_vpc_service_controlsselectservicesId, projectsId, networksIdConsumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.

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
networksIdstring
projectsIdstring
servicesIdstring

SELECT examples

Consumers use this method to find out the state of VPC Service Controls. The controls could be enabled or disabled for a connection.

SELECT
enabled
FROM google.servicenetworking.networks_vpc_service_controls
WHERE servicesId = '{{ servicesId }}' -- required
AND projectsId = '{{ projectsId }}' -- required
AND networksId = '{{ networksId }}' -- required;