Skip to content

feat: REST API should expose targetedInstanceCreation tenant capability toggle #2104

Description

@pmilano-nvidia

Is this a new feature, an enhancement, or a change to existing functionality?

New Feature

How would you describe the priority of this feature request

Medium

Please provide a clear description of problem this feature solves

TenantCapabilities.targetedInstanceCreation is currently readOnly: true in the API spec. It can only be set via direct DB update on the tenant.config JSONB column.

Infrastructure providers need to enable targeted instance creation for tenants so they can specify machineId when creating instances (e.g., for datahall site controller provisioning where specific machines must map to specific hostnames/roles).

Request:

  1. Allow setting targetedInstanceCreation during tenant creation (auto-created via GET /tenant/current. Currently no way to pass capabilities)
  2. Add a PATCH endpoint or extend the existing tenant/tenant-account API to allow updating targetedInstanceCreation after creation

Feature Description

As an NCP, I want to be able to toggle/set targetedInstanceCreation so that I can specify machineId when creating Instances for VPCs.

Describe your ideal solution

Direct DB update:
UPDATE tenant SET config = jsonb_set(config, '{targetedInstanceCreation}', 'true') WHERE id = '<tenant_id>';

Describe any alternatives you have considered

No response

Additional context

No response

Code of Conduct

  • I agree to follow NCX Infra Controller's Code of Conduct
  • I have searched the open feature requests and have found no duplicates for this feature request

Metadata

Metadata

Assignees

Labels

featureFeature (deprecated - use issue type, but it's needed for reporting now)interest/dsxroadmapRoadmap item with program-level tracking

Fields

No fields configured for Enhancement.

Projects

Status
In Progress

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions