Move Space To Other Project
This API can be used to move a space from one project to another.
Move Space To Other Project example
An example Move Space To Other Project:
apiVersion: management.loft.sh/v1
kind: ProjectMigrateSpaceInstance
metadata: {}
sourceSpaceInstance:
name: my-space
namespace: loft-p-my-other-project
Move Space To Other Project reference
sourceSpaceInstance required object
SourceSpaceInstance is the spaceinstance to migrate into this project
sourceSpaceInstance required object name string
Name of the spaceinstance to migrate
name string namespace string
Namespace of the spaceinstance to migrate
namespace string Move Space To Other Project (Create)
Move a space into another project using this API.
- curl
Create a file object.yaml with the following contents:
apiVersion: management.loft.sh/v1
kind: ProjectMigrateSpaceInstance
metadata: {}
sourceSpaceInstance:
name: my-space
namespace: loft-p-my-other-project
Then run the following curl command:
# Exchange my-object in the url below with the name of the Move Space To Other Project
curl -s -X POST --insecure \
"https://$LOFT_DOMAIN/kubernetes/management/apis/management.loft.sh/v1/projects/my-object/migratespaceinstance" \
--data-binary "$(cat object.yaml)" \
-H "Content-Type: application/yaml" \
-H "Authorization: Bearer $ACCESS_KEY"