dimas-b commented on issue #2546:
URL: https://github.com/apache/polaris/issues/2546#issuecomment-3287211465

   Hi @dongsupkim-onepredict : I tested locally with 1.1.0 RC0 and it worked 
fine for me 🙂 
   ```
   $ curl -H "Authorization: Bearer $POLARIS_TOKEN" -H 'Content-Type: 
application/json' -X POST http://localhost:8181/api/management/v1/catalogs -d 
'{"type":"INTERNAL","name":"polaris","properties":{"default-base-location":"s3://test"},"storageConfigInfo":{"storageType":"S3",
 "endpoint":"http://localhost:9100";, "region":"us-west-2"}}' -v
   Note: Unnecessary use of -X or --request, POST is already inferred.
   * Host localhost:8181 was resolved.
   * IPv6: ::1
   * IPv4: 127.0.0.1
   *   Trying [::1]:8181...
   * Connected to localhost (::1) port 8181
   > POST /api/management/v1/catalogs HTTP/1.1
   > Host: localhost:8181
   > User-Agent: curl/8.5.0
   > Accept: */*
   > Authorization: Bearer ****
   > Content-Type: application/json
   > Content-Length: 186
   > 
   < HTTP/1.1 201 Created
   < content-encoding: identity
   < content-length: 0
   < 
   * Connection #0 to host localhost left intact
   ```
   then PUT:
   ```
   $ curl -H "Authorization: Bearer $POLARIS_TOKEN" -H 'Content-Type: 
application/json' -X PUT 
http://localhost:8181/api/management/v1/catalogs/polaris -d 
'{"currentEntityVersion":1,"storageConfigInfo":{"storageType":"S3", 
"endpoint":"http://localhost1:9100";, "region":"us-west-2"}}' -v
   * Host localhost:8181 was resolved.
   * IPv6: ::1
   * IPv4: 127.0.0.1
   *   Trying [::1]:8181...
   * Connected to localhost (::1) port 8181
   > PUT /api/management/v1/catalogs/polaris HTTP/1.1
   > Host: localhost:8181
   > User-Agent: curl/8.5.0
   > Accept: */*
   > Authorization: Bearer *****
   > Content-Type: application/json
   > Content-Length: 126
   > 
   < HTTP/1.1 200 OK
   < Content-Type: application/json;charset=UTF-8
   < content-length: 328
   < 
   * Connection #0 to host localhost left intact
   
{"type":"INTERNAL","name":"polaris","properties":{"default-base-location":"s3://test"},"createTimestamp":1757722082702,"lastUpdateTimestamp":1757722139129,"entityVersion":2,"storageConfigInfo":{"region":"us-west-2","endpoint":"http://localhost1:9100","pathStyleAccess":false,"storageType":"S3","allowedLocations":["s3://test"]}}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@polaris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to