url_lists
Creates, updates, deletes, gets or lists a url_lists
resource.
Overview
Name | url_lists |
Type | Resource |
Id | google.networksecurity.url_lists |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Required. 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?$). |
description | string | Optional. Free-text description of the resource. |
createTime | string | Output only. Time when the security policy was created. |
updateTime | string | Output only. Time when the security policy was updated. |
values | array | Required. FQDNs and URLs. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
projects_locations_url_lists_get | SELECT | locationsId, projectsId, urlListsId | Gets details of a single UrlList. |
projects_locations_url_lists_list | SELECT | locationsId, projectsId | Lists UrlLists in a given project and location. |
projects_locations_url_lists_create | INSERT | locationsId, projectsId | Creates a new UrlList in a given project and location. |
projects_locations_url_lists_delete | DELETE | locationsId, projectsId, urlListsId | Deletes a single UrlList. |
projects_locations_url_lists_patch | UPDATE | locationsId, projectsId, urlListsId | Updates 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.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.networksecurity.url_lists (
locationsId,
projectsId,
name,
description,
values
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ description }}',
'{{ values }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: description
value: string
- name: values
value:
- string
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 }}';