cloud_insts_assign_secgrp
Assign security groups to cloud instances, applying a security group to all ports or mapping security groups to specific ports.
Instructions
Assign the security group to the server.
To assign multiple security groups to
all ports, use the NULL value for the port_id field
Args: name: Security group name, applies to all ports
ports_security_group_names: Port security groups mapping
extra_headers: Send extra headers
extra_query: Add additional query parameters to the request
extra_body: Add additional JSON properties to the request
timeout: Override the client-level default timeout for this request, in seconds
Note: Pass the numeric project_id. When a project name is provided, resolve it via cloud.projects.list/cloud.projects.get. If nothing is specified, fetch the account's default project first and use that ID. Pass the numeric region_id. Resolve region names with cloud.regions.list or cloud.regions.get. If no region is mentioned, obtain the default region ID before calling this tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| instance_id | Yes | ||
| project_id | Yes | ||
| region_id | Yes | ||
| name | No | ||
| ports_security_group_names | No | ||
| extra_headers | No | ||
| extra_query | No | ||
| extra_body | No | ||
| timeout | No |