tenancy_units_project
Creates, updates, deletes, gets or lists a tenancy_units_project
resource.
Overview
Name | tenancy_units_project |
Type | Resource |
Id | google.serviceconsumermanagement.tenancy_units_project |
Fields
SELECT
not supported for this resource, use SHOW METHODS
to view available operations for the resource.
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
add_project | INSERT | servicesId, servicesId1, servicesId2, tenancyUnitsId | Add a new tenant project to the tenancy unit. There can be a maximum of 1024 tenant projects in a tenancy unit. If there are previously failed AddTenantProject calls, you might need to call RemoveTenantProject first to resolve them before you can make another call to AddTenantProject with the same tag. Operation. |
delete_project | DELETE | servicesId, servicesId1, servicesId2, tenancyUnitsId | Deletes the specified project resource identified by a tenant resource tag. The mothod removes a project lien with a 'TenantManager' origin if that was added. It will then attempt to delete the project. If that operation fails, this method also fails. After the project has been deleted, the tenant resource state is set to DELETED. To permanently remove resource metadata, call the RemoveTenantProject method. New resources with the same tag can't be added if there are existing resources in a DELETED state. Operation. |
remove_project | DELETE | servicesId, servicesId1, servicesId2, tenancyUnitsId | Removes the specified project resource identified by a tenant resource tag. The method removes the project lien with 'TenantManager' origin if that was added. It then attempts to delete the project. If that operation fails, this method also fails. Calls to remove already removed or non-existent tenant project succeed. After the project has been deleted, or if was already in a DELETED state, resource metadata is permanently removed from the tenancy unit. Operation. |
INSERT
example
Use the following StackQL query and manifest file to create a new tenancy_units_project
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.serviceconsumermanagement.tenancy_units_project (
servicesId,
servicesId1,
servicesId2,
tenancyUnitsId,
projectConfig,
tag
)
SELECT
'{{ servicesId }}',
'{{ servicesId1 }}',
'{{ servicesId2 }}',
'{{ tenancyUnitsId }}',
'{{ projectConfig }}',
'{{ tag }}'
;
- name: your_resource_model_name
props:
- name: projectConfig
value:
- name: labels
value: object
- name: tenantProjectPolicy
value:
- name: policyBindings
value:
- - name: members
value:
- string
- name: role
value: string
- name: billingConfig
value:
- name: billingAccount
value: string
- name: folder
value: string
- name: serviceAccountConfig
value:
- name: accountId
value: string
- name: tenantProjectRoles
value:
- string
- name: services
value:
- string
- name: tag
value: string
DELETE
example
Deletes the specified tenancy_units_project
resource.
/*+ delete */
DELETE FROM google.serviceconsumermanagement.tenancy_units_project
WHERE servicesId = '{{ servicesId }}'
AND servicesId1 = '{{ servicesId1 }}'
AND servicesId2 = '{{ servicesId2 }}'
AND tenancyUnitsId = '{{ tenancyUnitsId }}';