Node 18 Deprecation
projects_target_create
POST
https://cloud.mobify.com/api/projects/{project_slug}/target/
Create a new target.
Request
curl "https://cloud.mobify.com/api/projects/{project_slug}/target/" \
-X POST \
-H "content-type: application/json" \
-d '{
"name": "Testing EU",
"slug": "testing-eu",
"ssr_external_hostname": "www-testing.example.com",
"ssr_external_domain": "example.com",
"ssr_region": "eu-central-1",
"ssr_whitelisted_ips": "103.12.25.0/24",
"ssr_proxy_configs": [
{
"host": "www.proxyhost1.com",
"protocol": "https"
},
{
"host": "www.proxyhost2.com"
}
],
"allow_cookies": false,
"enable_source_maps": false
}'
Security
URI parameters
project_slug
string
Required
The project identifier.
Body
Media type:
{
"name": "Testing EU",
"slug": "testing-eu",
"ssr_external_hostname": "www-testing.example.com",
"ssr_external_domain": "example.com",
"ssr_region": "eu-central-1",
"ssr_whitelisted_ips": "103.12.25.0/24",
"ssr_proxy_configs": [
{
"host": "www.proxyhost1.com",
"protocol": "https"
},
{
"host": "www.proxyhost2.com"
}
],
"allow_cookies": false,
"enable_source_maps": false
}
slug
string
Pattern:
^[a-z0-9]+(?:-+[a-z0-9]+)*$
Maximum characters:
64
name
string
Required
User-friendly name for this target
Maximum characters:
64
hostname
union
ssr_external_hostname
union
ssr_external_domain
union
ssr_region
any
The AWS region to which a Universal PWA SSR should be deployed (e.g. us-east-1)
us-east-1
- US East (N. Virginia)us-east-2
- US East (Ohio)us-west-1
- US West (N. California)us-west-2
- US West (Oregon)ap-south-1
- Asia Pacific (Mumbai)ap-northeast-2
- Asia Pacific (Seoul)ap-southeast-1
- Asia Pacific (Singapore)ap-southeast-2
- Asia Pacific (Sydney)ap-northeast-1
- Asia Pacific (Tokyo)ap-northeast-3
- Asia Pacific (Osaka)ca-central-1
- Canada (Central)eu-central-1
- EU (Frankfurt)eu-west-1
- EU (Ireland)eu-west-2
- EU (London)eu-west-3
- EU (Paris)eu-north-1
- EU (Stockholm)
ssr_whitelisted_ips
union
ssr_proxy_configs
union
is_production
boolean
Treat this target as a production environment.
allow_cookies
union
enable_source_maps
union
Responses
{
"name": "Testing EU",
"slug": "testing-eu",
"ssr_external_hostname": "www-testing.example.com",
"ssr_external_domain": "example.com",
"ssr_region": "eu-central-1",
"ssr_whitelisted_ips": "103.12.25.0/24",
"ssr_proxy_configs": [
{
"host": "www.proxyhost1.com",
"protocol": "https"
},
{
"host": "www.proxyhost2.com"
}
],
"allow_cookies": true,
"enable_source_maps": false
}
Body
Media type:
application/json
slug
string
Pattern:
^[a-z0-9]+(?:-+[a-z0-9]+)*$
Maximum characters:
64
name
string
Required
User-friendly name for this target
Maximum characters:
64
state
string
Read-only
Target State
CREATE_IN_PROGRESS
- Create in ProgressPUBLISH_IN_PROGRESS
- Publish in ProgressACTIVE
- ActiveCREATE_FAILED
- Create FailedPUBLISH_FAILED
- Publish Failed
deletion_status
string
Read-only
hostname
union
current_deploy
object
Read-only
ssr_external_hostname
union
ssr_external_domain
union
ssr_region
any
The AWS region to which a Universal PWA SSR should be deployed (e.g. us-east-1)
us-east-1
- US East (N. Virginia)us-east-2
- US East (Ohio)us-west-1
- US West (N. California)us-west-2
- US West (Oregon)ap-south-1
- Asia Pacific (Mumbai)ap-northeast-2
- Asia Pacific (Seoul)ap-southeast-1
- Asia Pacific (Singapore)ap-southeast-2
- Asia Pacific (Sydney)ap-northeast-1
- Asia Pacific (Tokyo)ap-northeast-3
- Asia Pacific (Osaka)ca-central-1
- Canada (Central)eu-central-1
- EU (Frankfurt)eu-west-1
- EU (Ireland)eu-west-2
- EU (London)eu-west-3
- EU (Paris)eu-north-1
- EU (Stockholm)
ssr_whitelisted_ips
union
ssr_proxy_configs
union
is_production
boolean
Treat this target as a production environment.
allow_cookies
union
enable_source_maps
union