|
| 1 | +# Copyright 2024 Google Inc. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | +--- |
| 15 | +name: 'VpcFlowLogsConfig' |
| 16 | +description: |
| 17 | + VPC Flow Logs Config is a resource that lets you configure |
| 18 | + Flow Logs for VPC, Interconnect attachments or VPN Tunnels. |
| 19 | +min_version: beta |
| 20 | +id_format: 'projects/{{project}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}' |
| 21 | +base_url: 'projects/{{project}}/locations/{{location}}/vpcFlowLogsConfigs' |
| 22 | +self_link: 'projects/{{project}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}' |
| 23 | +create_url: 'projects/{{project}}/locations/{{location}}/vpcFlowLogsConfigs?vpcFlowLogsConfigId={{vpc_flow_logs_config_id}}' |
| 24 | +update_verb: 'PATCH' |
| 25 | +update_mask: true |
| 26 | +import_format: |
| 27 | + - 'projects/{{project}}/locations/{{location}}/vpcFlowLogsConfigs/{{vpc_flow_logs_config_id}}' |
| 28 | +timeouts: |
| 29 | + insert_minutes: 20 |
| 30 | + update_minutes: 20 |
| 31 | + delete_minutes: 20 |
| 32 | +autogen_async: true |
| 33 | +async: |
| 34 | + actions: ['create', 'delete', 'update'] |
| 35 | + type: 'OpAsync' |
| 36 | + operation: |
| 37 | + base_url: '{{op_id}}' |
| 38 | + path: 'name' |
| 39 | + wait_ms: 1000 |
| 40 | + result: |
| 41 | + path: 'response' |
| 42 | + resource_inside_response: true |
| 43 | + error: |
| 44 | + path: 'error' |
| 45 | + message: 'message' |
| 46 | +custom_code: |
| 47 | +examples: |
| 48 | + - name: 'network_management_vpc_flow_logs_config_interconnect_full' |
| 49 | + primary_resource_id: 'interconnect-test' |
| 50 | + min_version: 'beta' |
| 51 | + vars: |
| 52 | + network_name: 'full-interconnect-test-network' |
| 53 | + router_name: 'full-interconnect-test-router' |
| 54 | + vpc_flow_logs_config_id: 'full-interconnect-test-id' |
| 55 | + interconnect_attachment_name: 'full-interconnect-test-id' |
| 56 | + - name: 'network_management_vpc_flow_logs_config_interconnect_basic' |
| 57 | + primary_resource_id: 'interconnect-test' |
| 58 | + min_version: 'beta' |
| 59 | + vars: |
| 60 | + network_name: 'basic-interconnect-test-network' |
| 61 | + router_name: 'basic-interconnect-test-router' |
| 62 | + vpc_flow_logs_config_id: 'basic-interconnect-test-id' |
| 63 | + interconnect_attachment_name: 'basic-interconnect-test-id' |
| 64 | + - name: 'network_management_vpc_flow_logs_config_vpn_basic' |
| 65 | + primary_resource_id: 'vpn-test' |
| 66 | + min_version: 'beta' |
| 67 | + vars: |
| 68 | + network_name: 'basic-test-network' |
| 69 | + vpn_tunnel_name: 'basic-test-tunnel' |
| 70 | + target_vpn_gateway_name: 'basic-test-gateway' |
| 71 | + address_name: 'basic-test-address' |
| 72 | + udp500_forwarding_rule_name: 'basic-test-fr500' |
| 73 | + udp4500_forwarding_rule_name: 'basic-test-fr4500' |
| 74 | + esp_forwarding_rule_name: 'basic-test-fresp' |
| 75 | + route_name: 'basic-test-route' |
| 76 | + vpc_flow_logs_config_id: 'basic-test-id' |
| 77 | + - name: 'network_management_vpc_flow_logs_config_vpn_full' |
| 78 | + primary_resource_id: 'vpn-test' |
| 79 | + min_version: 'beta' |
| 80 | + vars: |
| 81 | + network_name: 'full-test-network' |
| 82 | + vpn_tunnel_name: 'full-test-tunnel' |
| 83 | + target_vpn_gateway_name: 'full-test-gateway' |
| 84 | + address_name: 'full-test-address' |
| 85 | + udp500_forwarding_rule_name: 'full-test-fr500' |
| 86 | + udp4500_forwarding_rule_name: 'full-test-fr4500' |
| 87 | + esp_forwarding_rule_name: 'full-test-fresp' |
| 88 | + route_name: 'full-test-route' |
| 89 | + vpc_flow_logs_config_id: 'full-test-id' |
| 90 | +parameters: |
| 91 | + - name: 'location' |
| 92 | + type: String |
| 93 | + description: | |
| 94 | + Resource ID segment making up resource `name`. It identifies the resource |
| 95 | + within its parent collection as described in https://google.aip.dev/122. See documentation |
| 96 | + for resource type `networkmanagement.googleapis.com/VpcFlowLogsConfig`. |
| 97 | + url_param_only: true |
| 98 | + required: true |
| 99 | + immutable: true |
| 100 | + - name: 'vpcFlowLogsConfigId' |
| 101 | + type: String |
| 102 | + description: | |
| 103 | + Required. ID of the `VpcFlowLogsConfig`. |
| 104 | + url_param_only: true |
| 105 | + required: true |
| 106 | + immutable: true |
| 107 | +properties: |
| 108 | + - name: 'name' |
| 109 | + type: String |
| 110 | + description: | |
| 111 | + Identifier. Unique name of the configuration using the form: `projects/{project_id}/locations/global/vpcFlowLogsConfigs/{vpc_flow_logs_config_id}` |
| 112 | + output: true |
| 113 | + - name: 'description' |
| 114 | + type: String |
| 115 | + description: | |
| 116 | + Optional. The user-supplied description of the VPC Flow Logs configuration. Maximum |
| 117 | + of 512 characters. |
| 118 | + - name: 'state' |
| 119 | + type: String |
| 120 | + default_from_api: true |
| 121 | + description: | |
| 122 | + Optional. The state of the VPC Flow Log configuration. Default value |
| 123 | + is ENABLED. When creating a new configuration, it must be enabled. Possible |
| 124 | + - name: 'aggregationInterval' |
| 125 | + type: String |
| 126 | + default_from_api: true |
| 127 | + description: | |
| 128 | + Optional. The aggregation interval for the logs. Default value is |
| 129 | + INTERVAL_5_SEC. Possible values: AGGREGATION_INTERVAL_UNSPECIFIED INTERVAL_5_SEC INTERVAL_30_SEC INTERVAL_1_MIN INTERVAL_5_MIN INTERVAL_10_MIN INTERVAL_15_MIN" |
| 130 | + - name: 'flowSampling' |
| 131 | + type: Double |
| 132 | + default_from_api: true |
| 133 | + description: | |
| 134 | + Optional. The value of the field must be in (0, 1]. The sampling rate |
| 135 | + of VPC Flow Logs where 1.0 means all collected logs are reported. Setting the |
| 136 | + sampling rate to 0.0 is not allowed. If you want to disable VPC Flow Logs, use |
| 137 | + the state field instead. Default value is 1.0. |
| 138 | + - name: 'metadata' |
| 139 | + type: String |
| 140 | + default_from_api: true |
| 141 | + description: | |
| 142 | + Optional. Configures whether all, none or a subset of metadata fields |
| 143 | + should be added to the reported VPC flow logs. Default value is INCLUDE_ALL_METADATA. |
| 144 | + Possible values: METADATA_UNSPECIFIED INCLUDE_ALL_METADATA EXCLUDE_ALL_METADATA CUSTOM_METADATA |
| 145 | + - name: 'metadataFields' |
| 146 | + type: Array |
| 147 | + description: | |
| 148 | + Optional. Custom metadata fields to include in the reported VPC flow |
| 149 | + logs. Can only be specified if \"metadata\" was set to CUSTOM_METADATA. |
| 150 | + item_type: |
| 151 | + type: String |
| 152 | + - name: 'filterExpr' |
| 153 | + type: String |
| 154 | + description: | |
| 155 | + Optional. Export filter used to define which VPC Flow Logs should be logged. |
| 156 | + - name: 'interconnectAttachment' |
| 157 | + type: String |
| 158 | + description: | |
| 159 | + Traffic will be logged from the Interconnect Attachment. Format: projects/{project_id}/regions/{region}/interconnectAttachments/{name} |
| 160 | + - name: 'vpnTunnel' |
| 161 | + type: String |
| 162 | + description: | |
| 163 | + Traffic will be logged from the VPN Tunnel. Format: projects/{project_id}/regions/{region}/vpnTunnels/{name} |
| 164 | + - name: 'labels' |
| 165 | + type: KeyValueLabels |
| 166 | + description: | |
| 167 | + Optional. Resource labels to represent user-provided metadata. |
| 168 | + - name: 'createTime' |
| 169 | + type: String |
| 170 | + description: | |
| 171 | + Output only. The time the config was created. |
| 172 | + output: true |
| 173 | + - name: 'updateTime' |
| 174 | + type: String |
| 175 | + description: | |
| 176 | + Output only. The time the config was updated. |
| 177 | + output: true |
0 commit comments