service_project_attachments
Creates, updates, deletes, gets or lists a service_project_attachments
resource.
Overview
Name | service_project_attachments |
Type | Resource |
Id | google.apphub.service_project_attachments |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. The resource name of a ServiceProjectAttachment. Format: "projects/{host-project-id}/locations/global/serviceProjectAttachments/{service-project-id}." |
createTime | string | Output only. Create time. |
serviceProject | string | Required. Immutable. Service project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number. |
state | string | Output only. ServiceProjectAttachment state. |
uid | string | Output only. A globally unique identifier (in UUID4 format) for the ServiceProjectAttachment . |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | locationsId, projectsId, serviceProjectAttachmentsId | Gets a service project attachment. |
list | SELECT | locationsId, projectsId | Lists service projects attached to the host project. |
create | INSERT | locationsId, projectsId | Attaches a service project to the host project. |
delete | DELETE | locationsId, projectsId, serviceProjectAttachmentsId | Deletes a service project attachment. |
SELECT
examples
Lists service projects attached to the host project.
SELECT
name,
createTime,
serviceProject,
state,
uid
FROM google.apphub.service_project_attachments
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new service_project_attachments
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.apphub.service_project_attachments (
locationsId,
projectsId,
name,
serviceProject
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ name }}',
'{{ serviceProject }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: serviceProject
value: string
- name: createTime
value: string
- name: uid
value: string
- name: state
value: string
DELETE
example
Deletes the specified service_project_attachments
resource.
/*+ delete */
DELETE FROM google.apphub.service_project_attachments
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND serviceProjectAttachmentsId = '{{ serviceProjectAttachmentsId }}';