peerings
Creates, updates, deletes, gets or lists a peerings
resource.
Overview
Name | peerings |
Type | Resource |
Id | google.managedidentities.peerings |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Output only. Unique name of the peering in this scope including projects and location using the form: projects/{project_id}/locations/global/peerings/{peering_id} . |
authorizedNetwork | string | Required. The full names of the Google Compute Engine networks to which the instance is connected. Caller needs to make sure that CIDR subnets do not overlap between networks, else peering creation will fail. |
createTime | string | Output only. The time the instance was created. |
domainResource | string | Required. Full domain resource path for the Managed AD Domain involved in peering. The resource path should be in the form: projects/{project_id}/locations/global/domains/{domain_name} |
labels | object | Optional. Resource labels to represent user-provided metadata. |
state | string | Output only. The current state of this Peering. |
statusMessage | string | Output only. Additional information about the current status of this peering, if available. |
updateTime | string | Output only. Last update time. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | peeringsId, projectsId | Gets details of a single Peering. |
list | SELECT | projectsId | Lists Peerings in a given project. |
create | INSERT | projectsId | Creates a Peering for Managed AD instance. |
delete | DELETE | peeringsId, projectsId | Deletes identified Peering. |
patch | UPDATE | peeringsId, projectsId | Updates the labels for specified Peering. |
SELECT
examples
Lists Peerings in a given project.
SELECT
name,
authorizedNetwork,
createTime,
domainResource,
labels,
state,
statusMessage,
updateTime
FROM google.managedidentities.peerings
WHERE projectsId = '{{ projectsId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new peerings
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO google.managedidentities.peerings (
projectsId,
labels,
authorizedNetwork,
domainResource
)
SELECT
'{{ projectsId }}',
'{{ labels }}',
'{{ authorizedNetwork }}',
'{{ domainResource }}'
;
- name: your_resource_model_name
props:
- name: name
value: string
- name: labels
value: object
- name: authorizedNetwork
value: string
- name: domainResource
value: string
- name: createTime
value: string
- name: updateTime
value: string
- name: state
value: string
- name: statusMessage
value: string
UPDATE
example
Updates a peerings
resource.
/*+ update */
UPDATE google.managedidentities.peerings
SET
labels = '{{ labels }}',
authorizedNetwork = '{{ authorizedNetwork }}',
domainResource = '{{ domainResource }}'
WHERE
peeringsId = '{{ peeringsId }}'
AND projectsId = '{{ projectsId }}';
DELETE
example
Deletes the specified peerings
resource.
/*+ delete */
DELETE FROM google.managedidentities.peerings
WHERE peeringsId = '{{ peeringsId }}'
AND projectsId = '{{ projectsId }}';