Skip to content

Commit 48426c1

Browse files
fix(enterprise): use correct endpoint for services list command (#328)
The services list command was using /v1/services which doesn't exist for GET requests. Changed to use /v1/local/services which is the correct documented endpoint. Fixes #322
1 parent 62056c8 commit 48426c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crates/redisctl/src/commands/enterprise/services.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ async fn handle_services_list(
101101
) -> Result<(), RedisCtlError> {
102102
let client = conn_mgr.create_enterprise_client(profile_name).await?;
103103

104+
// Use /v1/local/services endpoint - /v1/services doesn't exist for GET
104105
let response = client
105-
.get::<Value>("/v1/services")
106+
.get::<Value>("/v1/local/services")
106107
.await
107108
.context("Failed to list services")?;
108109

0 commit comments

Comments
 (0)