Deployment
Create Deployment
POST
https://api.gmetri.com/sdk/deployment/create
Create deployment for the project.
Headers
Authorization*
String
Token <apiToken>
Request Body
orgSlug*
String
Unique slug of the organization
projUuid*
String
Unique identifier of the project(UUID format)
deploymentSlug
String
Unique slug of the deployment
{
"status": {
"success": true
},
"data": {
"id": 11,
"live": true,
"slug": "test7__1_",
"settings": {
"id": 1666290966851,
"type": "deployment",
"props": {
"deployment_version": 1
}
},
"created_at": "2022-10-20T18:23:20.73652",
"modified_at": "2022-10-20T18:23:20.73652",
"organization_id": 6,
"project_id": 33,
"viewer_group_id": 3
}
}
Get Deployment
POST
https://api.gmetri.com/sdk/deployment/get
Get deployment by id
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
Unique identifier of the project(UUID format)
deploymentId*
Number
Unique id of the deployment
{
"status": {
"success": true
},
"data": {
"id": 3,
"live": true,
"slug": "saml",
"settings": {
"enable_multiplayer_mode": true
},
"created_at": "2022-09-08T10:34:19.006662",
"modified_at": "2022-09-08T14:34:40.261",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 8,
"host_link": "http://yzvcei.localhost:3700/saml?host=true",
"host_passcode": 360689
}
}
Get All Deployment
POST
https://api.gmetri.com/sdk/deployment/getAll
Get all deployment by project uuid
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
{
"status": {
"success": true
},
"data": [
{
"id": 1,
"live": true,
"slug": "my_first_metaverse",
"settings": null,
"created_at": "2022-09-05T08:13:57.415128",
"modified_at": "2022-09-05T08:14:15.601",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 6,
"host_link": "http://yzvcei.localhost:3700/my_first_metaverse?host=true",
"host_passcode": 388820
},
{
"id": 3,
"live": true,
"slug": "saml",
"settings": {
"enable_multiplayer_mode": true
},
"created_at": "2022-09-08T10:34:19.006662",
"modified_at": "2022-09-08T14:34:40.261",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 8,
"host_link": "http://yzvcei.localhost:3700/saml?host=true",
"host_passcode": 360689
},
{
"id": 2,
"live": true,
"slug": "my_first_metaverse_57",
"settings": {
"room_instance_count": 10,
"enable_room_instance": true,
"enable_multiplayer_mode": false,
"room_instance_member_limit": 20
},
"created_at": "2022-09-05T08:26:04.685098",
"modified_at": "2022-09-15T14:41:02.649",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 1,
"host_link": "http://yzvcei.localhost:3700/my_first_metaverse_57?host=true",
"host_passcode": 374676
},
{
"id": 5,
"live": true,
"slug": "test_sessions",
"settings": null,
"created_at": "2022-09-15T10:15:35.197385",
"modified_at": "2022-09-20T14:37:39.449",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 3,
"host_link": "http://yzvcei.localhost:3700/test_sessions?host=true",
"host_passcode": 332557
},
{
"id": 6,
"live": true,
"slug": "my_first_metaverse_36",
"settings": null,
"created_at": "2022-09-27T07:00:21.664727",
"modified_at": "2022-09-27T09:31:22.655",
"organization_id": 6,
"project_id": 3,
"viewer_group_id": 1,
"host_link": "http://yzvcei.localhost:3700/my_first_metaverse_36?host=true",
"host_passcode": 320251
}
]
}
Update Deployment
POST
https://api.gmetri.com/sdk/deployment/update
Update deployment details by deployment.id
Headers
Authorization*
String
Request Body
orgSlug*
String
deploymentId*
Number
Unique id of the deployment
slug
String
New deployment slug
settings
Object
RecordNode<RT.deployment>
viewerGroupId
Number
Unique id of the Viewer group this deployment belongs to
live
Boolean
set true will make deployment live and false will make it idle/inactive
{
"status": {
"success": true,
"depSlug": "mitultest1-1666130455022" // deployment.slug
}
}
Delete Deployment
POST
https://api.gmetri.com/sdk/deployment/delete
Delete deployment by id
Headers
Authorization*
String
Token <apiToken>
Request Body
projUuid*
String
deploymentId*
Number
Unique id of the deployment
{
"status": {
"success": true,
"depSlug": "mitultest1-1666130455022-1666210803862"
}
}
Last updated
Was this helpful?