• SAP HANA

saphana
  1. Help Center
  2. SAP HANA
  3. User Guide (API)
  4. Typical Deployment Scenarios
  5. Single-Node Scenario Where HA is Not Required
  6. Creating an SAP HANA Studio ECS

Creating an SAP HANA Studio ECS

  1. Obtain the image ID according to the image name.

    For detailed operations, see step 1. Change the image name to the SAP HANA Studio image name. Both Windows and Linux OSs are supported.

  2. Create a system volume. The SAP HANA Studio ECS requires only the system volume. The system volume can be of SSD, SATA, or SAS type.

    For detailed operations, see step 2. Change the image ID to the one configured in step 1.

  3. Create a NIC.
    The SAP HANA Studio ECS requires only one NIC. Use the network ID of the SAP HANA Studio plane.
    POST /v2.0/ports
    {
        "port": {
        "admin_state_up": true,
        "fixed_ips": [
               {
                   "subnet_id": "b3ac1347-63f2-4e82-b853-3d86416a0db5"
               }
             ],
        "security_groups": [
        "7a35b108-f048-41b9-a1f8-ed09f090506c"//Security group ID configured for the SAP HANA Studio ECS
    ],
        "name": "Port103",
        "network_id": "afa29b9f-97b2-4221-a1be-d10293ac6b79",
        "tenant_id": "${tenant_id_1}"
    }
    }
  4. Create an ECS with flavorRef set to s1.xlarge.
    POST /v2/${tenant_id_1}/servers
    {
        "server": {
            "flavorRef": "s1.xlarge",
            "name": "hanastudioAPI",
            "block_device_mapping_v2": [{
                "source_type": "volume" ,
                "device_name": "/dev/sda",
                "destination_type": "volume",
                "uuid": "772004c7-9ca9-4a1d-8ff1-84256f3e0ff9",//System volume ID
                "delete_on_termination": "True",
                "boot_index": "0"
            }],
           "networks": [{
                "port": "db9d412b-84e8-4d96-9d1a-cf1aaed9b501"//port id
            }],
        "key_name": "fankeypair01",
        "user_data":"I2Nsb3VkLWNvbmZpZwpkaXNhYmxlX3Jvb3Q6IGZhbHNlCnJ1bmNtZDoKLSBzZWQgLWkgJ3MvXlBlcm1pdFJvb3RMb2dpbi4qJC9QZXJtaXRSb290TG9naW4gd2l0aG91dC1wYXNzd29yZC8nIC9ldGMvc3NoL3NzaGRfY29uZmlnCi0gc2VkIC1pICcvXktleEFsZ29yaXRobXMuKiQvZCcgL2V0Yy9zc2gvc3NoZF9jb25maWcKLSBzZXJ2aWNlIHNzaGQgcmVzdGFydA==",
        "availability_zone": "aaa"//aaa is used as an example of the AZ.
        }
    }
  5. Create an EIP.
    POST /v2.0/floatingips
    { 
        "floatingip": {
             "floating_network_id": "0a2228f2-7f8a-45f1-8e09-9039e1d09975" 
        }
     }
  6. Bind the EIP to the ECS.
PUT /v2.0/floatingips/b639c937-4737-4107-8978-fecc7327a5ae 
{
    "floatingip": 
    {
         "port_id": "21b5c483-84e9-40a1-86b3-3041606106f5"
     }
 }