globus gcp create mapped creates a new collection for use with GCP but without needing GCP to be already running. There is seemingly no way to do this in globus_sdk==4.1.0 that I have found.
If I look at how the CLI does it, it apparently calls some deprecated API.
There is a similar method called TransferClient.create_shared_endpoint available, but this seems to require a "host_endpoint", which isn't what I want:
result = globus_sdk.TransferClient(
app=app
).create_shared_endpoint(data=dict(
display_name="XXX",
)
)
{
"code": "BadRequest",
"message": "invalid host_endpoint, cannot be empty string, null, or missing",
"request_id": "XXXXXXXX",
"resource": "/shared_endpoint"
}
If I try to bypass the abstractions and hit the API directly, it still doesn't work for me:
result = globus_sdk.TransferClient(
app=app
).post(
"/v0.10/endpoint",
data=dict(
display_name="XXX",
)
)
{
"code": "NotSupported",
"message": "GCSv4 is no longer supported. Contact your sysadmin.",
"request_id": "XXXXXXXX",
"resource": "/endpoint"
}
What should I do here?
globus gcp create mappedcreates a new collection for use with GCP but without needing GCP to be already running. There is seemingly no way to do this inglobus_sdk==4.1.0that I have found.If I look at how the CLI does it, it apparently calls some deprecated API.
There is a similar method called
TransferClient.create_shared_endpointavailable, but this seems to require a "host_endpoint", which isn't what I want:{ "code": "BadRequest", "message": "invalid host_endpoint, cannot be empty string, null, or missing", "request_id": "XXXXXXXX", "resource": "/shared_endpoint" }If I try to bypass the abstractions and hit the API directly, it still doesn't work for me:
{ "code": "NotSupported", "message": "GCSv4 is no longer supported. Contact your sysadmin.", "request_id": "XXXXXXXX", "resource": "/endpoint" }What should I do here?