def add_endpoint(region, service_id, publicurl, adminurl, internalurl)
                  data = {
                          'endpoint' => {
                                  'region' => region,
                                  'service_id' => service_id,
                                  'publicurl' => publicurl,
                                  'adminurl' => adminurl,
                                  'internalurl' => internalurl
                          }
                  }
                  return post_request(address("/endpoints"), data, token())
          end
def add_endpoint(region, service_id, publicurl, adminurl, internalurl)
                  data = {
                          'endpoint' => {
                                  'region' => region,
                                  'service_id' => service_id,
                                  'publicurl' => publicurl,
                                  'adminurl' => adminurl,
                                  'internalurl' => internalurl
                          }
                  }
                  return post_request(address("/endpoints"), data, token())
          end
Add an endpoint list