Skip to main content
servercore_license_v2

servercore_license_v2

Manages a license for cloud servers using public API v2.

Example Usage

resource "servercore_license_v2" "license_windows_2016_standard" {
project_id = servercore_project_v2.project_1.id
region = "ru-2"
type = "license_windows_2012_standard"
}

Argument Reference

  • project_id — (Required) Unique identifier of the associated project. Changing this creates a new license. Retrieved from the servercore_vpc_project_v2 resource. Learn more about Projects.

  • region — (Required) Pool where you can use the license, for example, ru-3. The cloud server must be located in the pool. Changing this creates a new license. Learn more about available pools in the Availability matrix.

  • type — (Required) Type of the license. Changing this creates a new license. Available values are license_windows_2012_standard, license_windows_2016_standard, license_windows_2019_standard.

Attributes Reference

  • status — License status.

  • servers — Cloud servers that use the license.

    • id — Unique identifier of the cloud server.

    • name — Name of the cloud server.

    • status — Status of the cloud server.

  • network_id — Unique identifier of the associated OpenStack network. Learn more about the openstack_networking_network_v2 resource in the official OpenStack documentation.

  • subnet_id — Unique identifier of the associated OpenStack subnet. Learn more about the openstack_networking_subnet_v2 resource in the official OpenStack documentation.

  • port_id — Unique identifier of the associated OpenStack port. Learn more about the openstack_networking_port_v2 resource in the official OpenStack documentation.