create_namespace
Preview and create vSphere Namespaces on a Supervisor Cluster, showing blast radius before applying changes.
Instructions
[WRITE] Create a vSphere Namespace on a Supervisor Cluster.
Without confirm=True this only previews: it returns blast_radius (the spec that would be applied, and whether the name is already taken) and creates nothing. Show it to the user and get their decision. Do not set confirm=True on your own because the user asked earlier — they have not seen the preview yet. confirm=True returns {action: "created", namespace, status, cluster, blast_radius}; it is refused when the name is taken (use update_namespace) or the existing names could not be read. Confirm with get_namespace afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Namespace name (lowercase, no spaces). | |
| target | No | vCenter in config.yaml; omit for the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True applies it. | |
| dry_run | No | Deprecated alias for confirm; removed in the next minor release. dry_run=False acts, dry_run=True previews. | |
| cpu_limit | No | MHz. Omit for no limit. | |
| cluster_id | Yes | Supervisor MoRef (from check_vks_compatibility). | |
| description | No | Free-text label. Omit for none. | |
| storage_policy | Yes | Policy ID (from list_supervisor_storage_policies). | |
| memory_limit_mib | No | MiB. Omit for no limit. |