links
Creates, updates, deletes, gets or lists a links
resource.
Overview
Name | links |
Type | Resource |
Id | google.logging.links |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. The resource name of the link. The name can have up to 100 characters. A valid link id (at the end of the link name) must only have alphanumeric characters and underscores within it. "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/links/[LINK_ID]" For example:`projects/my-project/locations/global/buckets/my-bucket/links/my_link |
description | string | Optional. Describes this link.The maximum length of the description is 8000 characters. |
bigqueryDataset | object | Describes a BigQuery dataset that was created by a link. |
createTime | string | Output only. The creation timestamp of the link. |
lifecycleState | string | Output only. The resource lifecycle state. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
billing_accounts_locations_buckets_links_get | SELECT | billingAccountsId, bucketsId, linksId, locationsId | Gets a link. |
billing_accounts_locations_buckets_links_list | SELECT | billingAccountsId, bucketsId, locationsId | Lists links. |
folders_locations_buckets_links_get | SELECT | bucketsId, foldersId, linksId, locationsId | Gets a link. |
folders_locations_buckets_links_list | SELECT | bucketsId, foldersId, locationsId | Lists links. |
locations_buckets_links_list | SELECT | parent, parentType | Lists links. |
organizations_locations_buckets_links_get | SELECT | bucketsId, linksId, locationsId, organizationsId | Gets a link. |
organizations_locations_buckets_links_list | SELECT | bucketsId, locationsId, organizationsId | Lists links. |
projects_locations_buckets_links_get | SELECT | bucketsId, linksId, locationsId, projectsId | Gets a link. |
projects_locations_buckets_links_list | SELECT | bucketsId, locationsId, projectsId | Lists links. |
billing_accounts_locations_buckets_links_create | INSERT | billingAccountsId, bucketsId, locationsId | Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. |
folders_locations_buckets_links_create | INSERT | bucketsId, foldersId, locationsId | Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. |
locations_buckets_links_create | INSERT | parent, parentType | Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. |
organizations_locations_buckets_links_create | INSERT | bucketsId, locationsId, organizationsId | Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. |
projects_locations_buckets_links_create | INSERT | bucketsId, locationsId, projectsId | Asynchronously creates a linked dataset in BigQuery which makes it possible to use BigQuery to read the logs stored in the log bucket. A log bucket may currently only contain one link. |
billing_accounts_locations_buckets_links_delete | DELETE | billingAccountsId, bucketsId, linksId, locationsId | Deletes a link. This will also delete the corresponding BigQuery linked dataset. |
folders_locations_buckets_links_delete | DELETE | bucketsId, foldersId, linksId, locationsId | Deletes a link. This will also delete the corresponding BigQuery linked dataset. |
organizations_locations_buckets_links_delete | DELETE | bucketsId, linksId, locationsId, organizationsId | Deletes a link. This will also delete the corresponding BigQuery linked dataset. |
projects_locations_buckets_links_delete | DELETE | bucketsId, linksId, locationsId, projectsId | Deletes a link. This will also delete the corresponding BigQuery linked dataset. |
SELECT
examples
Lists links.
SELECT
name,
description,
bigqueryDataset,
createTime,
lifecycleState
FROM google.logging.links
WHERE parent = '{{ parent }}'
AND parentType = '{{ parentType }}';
INSERT
example
Use the following StackQL query and manifest file to create a new links
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.logging.links (
parent,
parentType,
description,
bigqueryDataset
)
SELECT
'{{ parent }}',
'{{ parentType }}',
'{{ description }}',
'{{ bigqueryDataset }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: description
value: string
- name: createTime
value: string
- name: lifecycleState
value: string
- name: bigqueryDataset
value:
- name: datasetId
value: string
DELETE
example
Deletes the specified links
resource.
/*+ delete */
DELETE FROM google.logging.links
WHERE bucketsId = '{{ bucketsId }}'
AND foldersId = '{{ foldersId }}'
AND linksId = '{{ linksId }}'
AND locationsId = '{{ locationsId }}';