Skip to main content

url_lists

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

Overview

Nameurl_lists
TypeResource
Idgoogle.networksecurity.url_lists

Fields

NameDatatypeDescription
namestringRequired. Name of the resource provided by the user. Name is of the form projects/{project}/locations/{location}/urlLists/{url_list} url_list should match the pattern:(^a-z?$).
descriptionstringOptional. Free-text description of the resource.
createTimestringOutput only. Time when the security policy was created.
updateTimestringOutput only. Time when the security policy was updated.
valuesarrayRequired. FQDNs and URLs.

Methods

NameAccessible byRequired ParamsDescription
projects_locations_url_lists_getSELECTlocationsId, projectsId, urlListsIdGets details of a single UrlList.
projects_locations_url_lists_listSELECTlocationsId, projectsIdLists UrlLists in a given project and location.
projects_locations_url_lists_createINSERTlocationsId, projectsIdCreates a new UrlList in a given project and location.
projects_locations_url_lists_deleteDELETElocationsId, projectsId, urlListsIdDeletes a single UrlList.
projects_locations_url_lists_patchUPDATElocationsId, projectsId, urlListsIdUpdates the parameters of a single UrlList.

SELECT examples

Lists UrlLists in a given project and location.

SELECT
name,
description,
createTime,
updateTime,
values
FROM google.networksecurity.url_lists
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';

INSERT example

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

/*+ create */
INSERT INTO google.networksecurity.url_lists (
locationsId,
projectsId,
name,
description,
values
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ values }}'
;

UPDATE example

Updates a url_lists resource.

/*+ update */
UPDATE google.networksecurity.url_lists
SET
name = '{{ name }}',
description = '{{ description }}',
values = '{{ values }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND urlListsId = '{{ urlListsId }}';

DELETE example

Deletes the specified url_lists resource.

/*+ delete */
DELETE FROM google.networksecurity.url_lists
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND urlListsId = '{{ urlListsId }}';