You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi ,
using the restapi, I need to create and destroy user in etcd server with rest api v2 .
The create works well, but the destroy keeps returning "unexpected response code '400': {"message":"Invalid path"}"
Hi ,
using the restapi, I need to create and destroy user in etcd server with rest api v2 .
The create works well, but the destroy keeps returning "unexpected response code '400': {"message":"Invalid path"}"
resource "restapi_object" "create_user" {
create_method = "PUT"
provider = restapi.restapi_headers
path = "/v2/auth/users/${local.etcd_user_name}"
data = jsonencode({
id = "1"
user = "${local.etcd_user_name}"
password = "${local.etcd_user_password}"
})
destroy_method = "DELETE"
destroy_path = "/v2/auth/users/${local.etcd_user_name}"
}
When using a simple curl command the user is deleted .
curl -X DELETE http://$ETCD_URL:2379/v2/auth/users/$ETCD_USER_NAME/
The text was updated successfully, but these errors were encountered: