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

The following fields are returned by SELECT queries:

Successful response

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]([a-z0-9-]{0,61}[a-z0-9])?$).
createTimestring (google-datetime)Output only. Time when the security policy was created.
descriptionstringOptional. Free-text description of the resource.
updateTimestring (google-datetime)Output only. Time when the security policy was updated.
valuesarrayRequired. FQDNs and URLs.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
projects_locations_url_lists_getselectprojectsId, locationsId, urlListsIdGets details of a single UrlList.
projects_locations_url_lists_listselectprojectsId, locationsIdpageSize, pageTokenLists UrlLists in a given project and location.
projects_locations_url_lists_createinsertprojectsId, locationsIdurlListIdCreates a new UrlList in a given project and location.
projects_locations_url_lists_patchupdateprojectsId, locationsId, urlListsIdupdateMaskUpdates the parameters of a single UrlList.
projects_locations_url_lists_deletedeleteprojectsId, locationsId, urlListsIdDeletes a single UrlList.

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
locationsIdstring
projectsIdstring
urlListsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
urlListIdstring

SELECT examples

Gets details of a single UrlList.

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

INSERT examples

Creates a new UrlList in a given project and location.

INSERT INTO google.networksecurity.url_lists (
data__name,
data__description,
data__values,
projectsId,
locationsId,
urlListId
)
SELECT
'{{ name }}',
'{{ description }}',
'{{ values }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ urlListId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Updates the parameters of a single UrlList.

UPDATE google.networksecurity.url_lists
SET
data__name = '{{ name }}',
data__description = '{{ description }}',
data__values = '{{ values }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND urlListsId = '{{ urlListsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Deletes a single UrlList.

DELETE FROM google.networksecurity.url_lists
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND urlListsId = '{{ urlListsId }}' --required;