Skip to main content

ip_groups

Creates, updates, deletes, gets or lists an ip_groups resource.

Overview​

Nameip_groups
TypeResource
Idconfluent.iam.ip_groups

Fields​

The following fields are returned by SELECT queries:

IP Group.

NameDatatypeDescription
idstringID is the "natural identifier" for an object within its scope/namespace; it is normally unique across time but not space. That is, you can assume that the ID will not be reclaimed and reused after an object is deleted ("time"); however, it may collide with IDs for other object kinds or objects of the same kind within a different scope/namespace ("space"). (example: dlz-f3a90de)
group_namestringA human readable name for an IP Group. Can contain any unicode letter or number, the ASCII space character, or any of the following special characters: [, ], |, &, +, -, _, /, ., ,. (example: CorpNet)
api_versionstringAPIVersion defines the schema version of this representation of a resource. (iam/v2)
cidr_blocksarrayA list of CIDRs.
kindstringKind defines the object this REST resource represents. (IpGroup)
metadataobjectObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_iam_v2_ip_groupselectidMake a request to read an IP group.
list_iam_v2_ip_groupsselectpage_size, page_tokenRetrieve a sorted, filtered, paginated list of all IP groups.
create_iam_v2_ip_groupinsertgroup_name, cidr_blocksMake a request to create an IP group.
update_iam_v2_ip_groupupdateidMake a request to update an IP group.

delete_iam_v2_ip_groupdeleteidMake a request to delete an IP group.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe unique identifier for the IP group.
page_sizeintegerA pagination size for collection requests.
page_tokenstringAn opaque pagination token for collection requests.

SELECT examples​

Make a request to read an IP group.

SELECT
id,
group_name,
api_version,
cidr_blocks,
kind,
metadata
FROM confluent.iam.ip_groups
WHERE id = '{{ id }}' -- required
;

INSERT examples​

Make a request to create an IP group.

INSERT INTO confluent.iam.ip_groups (
group_name,
cidr_blocks
)
SELECT
'{{ group_name }}' /* required */,
'{{ cidr_blocks }}' /* required */
RETURNING
id,
group_name,
api_version,
cidr_blocks,
kind,
metadata
;

UPDATE examples​

Make a request to update an IP group.

UPDATE confluent.iam.ip_groups
SET
group_name = '{{ group_name }}',
cidr_blocks = '{{ cidr_blocks }}'
WHERE
id = '{{ id }}' --required
RETURNING
id,
group_name,
api_version,
cidr_blocks,
kind,
metadata;

DELETE examples​

Make a request to delete an IP group.

DELETE FROM confluent.iam.ip_groups
WHERE id = '{{ id }}' --required
;