ncloud_create_role
Create an IAM role for Naver Cloud to hold policies, choosing Server, Account, or Service type. Use dryRun to preview the role before creating it.
Instructions
Create a new IAM role. A role is only a container for policies: creating it grants nothing until policies are attached (POST /api/v1/roles/{roleNo}/policies) and a role target is set (POST /api/v1/roles/{roleNo}/entities/account for Account roles, /entities for Server and Service roles) — those endpoints have no MCP tool yet. Use dryRun=true to preview without creating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Tags as a key-value map, max 20 per resource. Example: {"env":"dev","team":"a"} | |
| dryRun | No | If true, returns a preview without actually creating the role | |
| descCont | No | Description of the role (0-300 bytes) | |
| roleName | Yes | Role name (3-100 chars: Korean/Japanese/English letters, digits, '.', '_', '-'; must start with a letter) | |
| roleType | Yes | Role type: Server (VPC server resource, no access key needed), Account (grants the main account's console/portal access to a sub account via role switching), Service (inter-service access) | |
| isMyAccount | No | ⚠️ Ignored — createRole has no isMyAccount field, so this value is NOT sent. It belongs to the separate 'add Account role target' API (POST /api/v1/roles/{roleNo}/entities/account). Kept only for backward compatibility | |
| sessionExpirationSec | No | Session expiration time in seconds: 600, 1800, 3600, or 10800. REQUIRED when roleType is Account |