diff --git a/shared/pages/api-internal.html b/shared/pages/api-internal.html new file mode 100644 index 0000000000..a1f7ed5290 --- /dev/null +++ b/shared/pages/api-internal.html @@ -0,0 +1,6864 @@ + + + +
+ +Download OpenAPI specification:
Upsun, formerly Platform.sh, is a container-based Platform-as-a-Service. Our main API
+is simply Git. With a single git push and a couple of YAML files in
+your repository you can deploy an arbitrarily complex cluster.
+Every Project can have multiple applications (PHP,
+Node.js, Python, Ruby, Go, etc.) and managed, automatically
+provisioned services (databases, message queues, etc.).
Each project also comes with multiple concurrent +live staging/development Environments. +These ephemeral development environments +are automatically created every time you push a new branch or create a +pull request, and each has a full copy of the data of its parent branch, +which is created on-the-fly in seconds.
+Our Git implementation supports integrations with third party Git +providers such as GitHub, Bitbucket, or GitLab, allowing you to simply +integrate Upsun into your existing workflow.
+In addition to the Git API, we also offer a REST API that allows you to manage +every aspect of the platform, from managing projects and environments, +to accessing accounts and subscriptions, to creating robust workflows +and integrations with your CI systems and internal services.
+These API docs are generated from a standard OpenAPI (Swagger) Specification document +which you can find here in YAML and in JSON formats.
+This RESTful API consumes and produces HAL-style JSON over HTTPS, +and any REST library can be used to access it. On GitHub, we also host +a few API libraries that you can use to make API access easier, such as our +PHP API client.
+In order to use the API you will first need to have an Upsun account +and create an API Token.
+API authentication is done with OAuth2 access tokens.
+You can use an API token as one way to get an OAuth2 access token. This +is particularly useful in scripts, e.g. for CI pipelines.
+To create an API token, go to the "API Tokens" section +of the "Account Settings" tab on the Console.
+To exchange this API token for an access token, a POST request
+must be made to https://auth.upsun.com/oauth2/token.
The request will look like this in cURL:
++curl -u platform-api-user: \ + -d 'grant_type=api_token&api_token=API_TOKEN' \ + https://auth.upsun.com/oauth2/token ++ +
This will return a "Bearer" access token that +can be used to authenticate further API requests, for example:
+
+{
+ "access_token": "abcdefghij1234567890",
+ "expires_in": 900,
+ "token_type": "bearer"
+}
+
+
+To authenticate further API requests, include this returned bearer token
+in the Authorization header. For example, to retrieve a list of
+Projects
+accessible by the current user, you can make the following request
+(substituting the dummy token for your own):
+curl -H "Authorization: Bearer abcdefghij1234567890" \ + https://api.upsun.com/projects +
Most endpoints in the API return fields which defines a HAL +(Hypertext Application Language) schema for the requested endpoint. +The particular objects returns and their contents can vary by endpoint. +The payload examples we give here for the requests do not show these +elements. These links can allow you to create a fully dynamic API client +that does not need to hardcode any method or schema.
+Unless they are used for pagination we do not show the HAL links in the +payload examples in this documentation for brevity and as their content +is contextual (based on the permissions of the user).
+Most endpoints that respond to GET requests will include a _links object
+in their response. The _links object contains a key-object pair labelled self, which defines
+two further key-value pairs:
href - A URL string referring to the fully qualified name of the returned object. For many endpoints, this will be the direct link to the API endpoint on the region gateway, rather than on the general API gateway. This means it may reference a host of, for example, eu-2.platform.sh rather than api.upsun.com.meta - An object defining the OpenAPI Specification (OAS) schema object of the component returned by the endpoint.There may be zero or more other fields in the _links object resembling fragment identifiers
+beginning with a hash mark, e.g. #edit or #delete. Each of these keys
+refers to a JSON object containing two key-value pairs:
href - A URL string referring to the path name of endpoint which can perform the action named in the key.meta - An object defining the OAS schema of the endpoint. This consists of a key-value pair, with the key defining an HTTP method and the value defining the operation object of the endpoint.To use one of these HAL links, you must send a new request to the URL defined
+in the href field which contains a body defined the schema object in the meta field.
For example, if you make a request such as GET /projects/abcdefghij1234567890, the _links
+object in the returned response will include the key #delete. That object
+will look something like this fragment:
"#delete": {
+ "href": "/api/projects/abcdefghij1234567890",
+ "meta": {
+ "delete": {
+ "responses": {
+ . . . // Response definition omitted for space
+ },
+ "parameters": []
+ }
+ }
+}
+
+To use this information to delete a project, you would then send a DELETE
+request to the endpoint https://api.upsun.com/api/projects/abcdefghij1234567890
+with no body or parameters to delete the project that was originally requested.
Requests to endpoints which create or modify objects, such as POST, PATCH, or DELETE
+requests, will include an _embedded key in their response. The object
+represented by this key will contain the created or modified object. This
+object is identical to what would be returned by a subsequent GET request
+for the object referred to by the endpoint.
Retrieve SSO configuration for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "provider_type": "google",
- "domain": "string",
- "organization_id": "string",
- "enforced": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Create SSO configuration for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| provider_type | string Value: "google" SSO provider type. + |
| domain | string Google hosted domain. + |
{- "provider_type": "google",
- "domain": "string"
}{- "provider_type": "google",
- "domain": "string",
- "organization_id": "string",
- "enforced": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Delete SSO configuration for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Enable SSO configuration enforcement for the specified organization's members.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "provider_type": "google",
- "domain": "string",
- "organization_id": "string",
- "enforced": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Disable SSO configuration enforcement for the specified organization's members.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "provider_type": "google",
- "domain": "string",
- "organization_id": "string",
- "enforced": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Revoke access tokens for all the members of the given organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves organizations that the specified user is a member of.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Non-admin users will only see organizations they are members of.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) [Internal] Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (ArrayFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "count": 0,
- "items": [
- {
- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new organization.
+| X-Platform-Vendor | string [Internal] The vendor. + |
| type | string Enum: "fixed" "flexible" The type of the organization. + |
| owner_id | string <uuid> ID of the owner. + |
| name | string A unique machine name representing the organization. + |
| label required | string The human-readable label of the organization. + |
| country | string <= 2 characters The organization country (2-letter country code). + |
| capabilities | Array of strings unique [Internal] The organization capabilities. + |
| netsuite_id | string [Internal] The Netsuite ID. + |
| billing_account_id | string [Internal] The Billing Account ID. + |
| billing_legacy | boolean [Internal] Whether the account is billed with the legacy system. + |
| security_contact | string <email> The security contact email address for the organization. + |
| notes | string [Internal] The internal notes for the organization. + |
| status | string Enum: "active" "restricted" "suspended" [Internal] The status of the organization. + |
{- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active"
}{- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}Retrieves the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}Updates the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| name | string A unique machine name representing the organization. + |
| label | string The human-readable label of the organization. + |
| country | string <= 2 characters The organization country (2-letter country code). + |
| capabilities | Array of strings unique [Internal] The organization capabilities. + |
| vendor | string [Internal] The vendor. + |
| netsuite_id | string [Internal] The Netsuite ID. + |
| billing_account_id | string [Internal] The Billing Account ID. + |
| billing_legacy | boolean [Internal] Whether the account is billed with the legacy system. + |
| security_contact | string <email> The security contact email address for the organization. + |
| notes | string [Internal] The internal notes for the organization. + |
| status | string Enum: "active" "restricted" "suspended" [Internal] The status of the organization. + |
{- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active"
}{- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}Deletes the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| force | boolean [Internal] Skip additional checks and force deletion. + |
| skip_billing | boolean [Internal] Skip deleting the billing data in Accounts. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Transfers the organization to different owner.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| owner_id required | string <uuid> ID of the owner. + |
{- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05"
}{- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}Outputs member access info from Auth and Organizations, and whether it matches.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "grants": {
- "auth": { },
- "orgs": { }
}, - "match": true
}Retrieves a list of members across all organizations.
+object (ArrayFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "count": 0,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organization_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
], - "level": "admin",
- "owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Accessible to organization owners and members with the "manage members" permission.
+| organization_id required | string The ID of the organization. |
object (ArrayFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "count": 0,
- "items": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organization_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
], - "level": "admin",
- "owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new organization member.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| user_id required | string <uuid> ID of the user. + |
| permissions | Array of strings (Permissions) Items Enum: "admin" "billing" "members" "plans" "projects:create" "projects:list" The organization member permissions. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organization_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
], - "level": "admin",
- "owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Retrieves the specified organization member.
+| organization_id required | string The ID of the organization. |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organization_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
], - "level": "admin",
- "owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Updates the specified organization member.
+| organization_id required | string <ulid> The ID of the organization. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| permissions | Array of strings (Permissions) Items Enum: "admin" "billing" "members" "plans" "projects:create" "projects:list" The organization member permissions. + |
{- "permissions": [
- "admin"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "organization_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "permissions": [
- "admin"
], - "level": "admin",
- "owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Deletes the specified organization member.
+| organization_id required | string <ulid> The ID of the organization. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Creates an invitation to an organization for a user with the specified email address.
+| organization_id required | string <ulid> The ID of the organization. + |
| email required | string <email> The email address of the invitee. + |
| permissions required | Array of strings (OrganizationPermissions) Items Enum: "admin" "billing" "plans" "members" "project:create" "projects:list" The permissions the invitee should be given on the organization. + |
| force | boolean Whether to cancel any pending invitation for the specified invitee, and create a new invitation. + |
{- "email": "user@example.com",
- "permissions": [
- "admin"
], - "force": true
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "state": "pending",
- "organization_id": "string",
- "email": "user@example.com",
- "owner": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "permissions": [
- "admin"
]
}Returns a list of invitations to an organization.
+| organization_id required | string <ulid> The ID of the organization. + |
object (StringFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "updated_at" "-updated_at" Allows sorting by a single field. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "state": "pending",
- "organization_id": "string",
- "email": "user@example.com",
- "owner": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "permissions": [
- "admin"
]
}
]Cancels the specified invitation.
+| organization_id required | string <ulid> The ID of the organization. + |
| invitation_id required | string The ID of the invitation. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a list of projects across organizations.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (BooleanFilter) Allows filtering by | |
object (BooleanFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Retrieves a list of projects for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new project in the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| organization_id | string (OrganizationID) The ID of the organization. + |
| region required | string (RegionID) The machine name of the region where the project is located. + |
| title | string (ProjectTitle) The title of the project. + |
| type | string (ProjectType) Enum: "grid" "dedicated" The type of projects. + |
| plan | string (ProjectPlan) The project plan. + |
| default_branch | string (ProjectDefaultBranch) Default branch. + |
| cse_notes | string (ProjectCSENotes) CSE notes. + |
| dedicated_tag | string (ProjectDedicatedTag) Dedicated tag. + |
| edgee_org_id | string (EdgeeOrgID) [Internal] The organization id of the edgee service. + |
| edgee_project_id | string (EdgeeProjectID) [Internal] The project id of the edgee service. + |
{- "organization_id": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "default_branch": "string",
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string"
}{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Retrieves the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Updates the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| title | string (ProjectTitle) The title of the project. + |
| plan | string (ProjectPlan) The project plan. + |
| timezone | string (ProjectTimeZone) Timezone of the project. + |
| cse_notes | string (ProjectCSENotes) CSE notes. + |
| dedicated_tag | string (ProjectDedicatedTag) Dedicated tag. + |
| edgee_org_id | string (EdgeeOrgID) [Internal] The organization id of the edgee service. + |
| edgee_project_id | string (EdgeeProjectID) [Internal] The project id of the edgee service. + |
| billing_account_id | string (BillingAccountID) [Internal] The billing account related to the project. + |
{- "title": "string",
- "plan": "string",
- "timezone": "string",
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string"
}{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Deletes the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Suspends the specified active project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Resumes the specified suspended project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Locks the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Unlocks the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Pushes information about the specified project to its git server.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
{- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "vendor": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "timezone": "string",
- "default_branch": "string",
- "status": "requested",
- "options_url": "string",
- "agency_site": true,
- "hipaa": "string",
- "support_tier": "string",
- "options_custom": { },
- "trial_plan": true,
- "project_ui": "string",
- "locked": true,
- "cse_notes": "string",
- "dedicated_tag": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string",
- "billing_account_id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "activities": {
- "href": "string"
}, - "addons": {
- "href": "string"
}
}
}Transfers the specified project to another organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| organization_id required | string <ulid> The ID of the organization. + |
| keep_users | boolean Whether the project's users should be retained (and added to the destination organization). + |
{- "organization_id": "string",
- "keep_users": true
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Requests the cloning of the specified project.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| title | string (ProjectTitle) The title of the project. + |
| region | string The machine name of the region where the project is to be cloned. + |
| exclude_envs | Array of strings The environment names which needs to be excluded. + |
| include_envs | Array of strings The environment names which needs to be included. + |
| skip_migrate_access | boolean Whether to skip the access migration. + |
{- "title": "string",
- "region": "string",
- "exclude_envs": [
- "string"
], - "include_envs": [
- "string"
], - "skip_migrate_access": true
}{- "id": "string",
- "project_id": "string",
- "status": "string",
- "options": { },
- "clone": { },
- "progress": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}
}, - "activities": {
- "href": "string"
}, - "debug": { }
}Queries the carbon emission data for the specified project using the supplied parameters.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
object (DateTimeFilter) The start of the time frame for the query. Inclusive. + | |
object (DateTimeFilter) The end of the time frame for the query. Exclusive. + | |
| interval | string Enum: "day" "month" "year" The interval by which the query groups the results. of the time frame for the query. Exclusive. + |
{- "project_id": "string",
- "project_title": "string",
- "meta": {
- "from": null,
- "to": null,
- "interval": null,
- "units": null
}, - "values": [
- {
- "value": null,
- "start_time": null
}
], - "total": 0
}Retrieves information about the add-ons for an organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "available": {
- "user_management": {
- "property1": 0,
- "property2": 0
}, - "support_level": {
- "property1": 0,
- "property2": 0
}
}, - "current": {
- "user_management": {
- "property1": 0,
- "property2": 0
}, - "support_level": {
- "property1": 0,
- "property2": 0
}
}, - "upgrades_available": {
- "user_management": [
- "string"
], - "support_level": [
- "string"
]
}
}Updates the add-ons for an organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
| support_level | string Enum: "" "standard" The support level for the organization. + |
| user_management | string Enum: "standard" "advanced" The user management level for the organization. + |
{- "support_level": "",
- "user_management": "standard"
}{- "available": {
- "user_management": {
- "property1": 0,
- "property2": 0
}, - "support_level": {
- "property1": 0,
- "property2": 0
}
}, - "current": {
- "user_management": {
- "property1": 0,
- "property2": 0
}, - "support_level": {
- "property1": 0,
- "property2": 0
}
}, - "upgrades_available": {
- "user_management": [
- "string"
], - "support_level": [
- "string"
]
}
}Retrieves the specified project's add-ons.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by |
{- "count": 2,
- "items": [
- {
- "id": "abc",
- "project_id": "p1",
- "type": "environments",
- "status": "active",
- "quantity": 3,
- "title": "Extra environment(s)",
- "unit": "count",
- "allowed_values": [
- 3,
- 6,
- 9
], - "_links": {
- "self": {
- "href": "/organizations/o1/projects/p1/addons/abc"
}
}
}, - {
- "id": "def",
- "project_id": "p1",
- "type": "backups",
- "status": "active",
- "sku": "PLATFORM_FEATURE_BACKUPS_ADVANCED",
- "title": "Backup Advanced",
- "allowed_values": [
- "PLATFORM_FEATURE_BACKUPS_ADVANCED",
- "PLATFORM_FEATURE_BACKUPS_PREMIUM"
], - "_links": {
- "self": {
- "href": "/organizations/o1/projects/p1/addons/def"
}
}
}
]
}Creates a new project add-on.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| type required | string (AddonType) The type of the add-on. + |
| sku required | string (ProjectAddonSKU) The SKU of the add-on. + |
{- "type": "storage",
- "quantity": 1024
}{- "id": "string",
- "project_id": "string",
- "type": "string",
- "status": "requested",
- "title": "string",
- "unit": "string",
- "allowed_values": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}, - "quantity": 0
}Retrieves the specified project's add-on.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| addon_id required | string The ID of the add-on. + |
{- "id": "abc",
- "project_id": "p1",
- "type": "storage",
- "status": "active",
- "quantity": 2048,
- "title": "Extra storage",
- "unit": "MB",
- "allowed_values": [
- 1024,
- 2048,
- 3072
], - "_links": {
- "self": {
- "href": "/organizations/o1/projects/p1/addons/abc"
}
}
}Updates the specified project's add-on.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| addon_id required | string The ID of the add-on. + |
| quantity required | integer (ProjectAddonQuantity) The quantity of the add-on. + |
{- "quantity": 2048
}{- "id": "string",
- "project_id": "string",
- "type": "string",
- "status": "requested",
- "title": "string",
- "unit": "string",
- "allowed_values": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}, - "quantity": 0
}Deletes the specified project's add-on.
+| organization_id required | string <ulid> The ID of the organization. + |
| project_id required | string The ID of the project. + |
| addon_id required | string The ID of the add-on. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}On Upsun, a Project is backed by a single Git repository +and encompasses your entire application stack, the services +used by your application, the application's data storage, +the production and staging environments, and the backups of those +environments.
+When you create a new project, you start with a single +Environment called Master, +corresponding to the master branch in the Git repository of +the project—this will be your production environment.
+If you connect your project to an external Git repo +using one of our Third-Party Integrations +a new development environment can be created for each branch +or pull request created in the repository. When a new development +environment is created, the production environment's data +will be cloned on-the-fly, giving you an isolated, production-ready +test environment.
+This set of API endpoints can be used to retrieve a list of projects +associated with an API key, as well as create and update the parameters +of existing projects.
+++Note:
+To list projects or to create a new project, use
+/subscriptions.
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "title": "string",
- "description": "string",
- "owner": "string",
- "namespace": "string",
- "organization": "string",
- "default_branch": "string",
- "status": {
- "code": "string",
- "message": "string"
}, - "timezone": "string",
- "region": "string",
- "repository": {
- "url": "string",
- "client_ssh_key": "string"
}, - "default_domain": "string",
- "subscription": {
- "license_uri": "string",
- "plan": "2xlarge",
- "environments": 0,
- "storage": 0,
- "included_users": 0,
- "subscription_management_uri": "string",
- "restricted": true,
- "suspended": true,
- "user_licenses": 0,
- "resources": {
- "container_profiles": true,
- "production": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}, - "development": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}
}, - "resource_validation_url": "string",
- "image_types": {
- "only": [
- "string"
], - "exclude": [
- "string"
]
}
}
}
]Create a new project
+object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| title required | string (Title) The title of the project + |
| description | string (Description) The description of the project + |
| default_branch | string or null (Default branch) The default branch of the project + |
| timezone required | string (Timezone) Timezone of the project + |
| region required | string (Region) The region of the project + |
| default_domain | string or null (Default domain) The default domain of the project + |
{- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "title": "string",
- "description": "string",
- "default_branch": "string",
- "timezone": "string",
- "region": "string",
- "default_domain": "string"
}{- "status": "string",
- "code": 0
}Retrieve the details of a single project.
+| projectId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "title": "string",
- "description": "string",
- "owner": "string",
- "namespace": "string",
- "organization": "string",
- "default_branch": "string",
- "status": {
- "code": "string",
- "message": "string"
}, - "timezone": "string",
- "region": "string",
- "repository": {
- "url": "string",
- "client_ssh_key": "string"
}, - "default_domain": "string",
- "subscription": {
- "license_uri": "string",
- "plan": "2xlarge",
- "environments": 0,
- "storage": 0,
- "included_users": 0,
- "subscription_management_uri": "string",
- "restricted": true,
- "suspended": true,
- "user_licenses": 0,
- "resources": {
- "container_profiles": true,
- "production": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}, - "development": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}
}, - "resource_validation_url": "string",
- "image_types": {
- "only": [
- "string"
], - "exclude": [
- "string"
]
}
}
}Update the details of an existing project.
+| projectId required | string |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| title | string (Title) The title of the project + |
| description | string (Description) The description of the project + |
| default_branch | string or null (Default branch) The default branch of the project + |
| timezone | string (Timezone) Timezone of the project + |
| region | string (Region) The region of the project + |
| default_domain | string or null (Default domain) The default domain of the project + |
{- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "title": "string",
- "description": "string",
- "default_branch": "string",
- "timezone": "string",
- "region": "string",
- "default_domain": "string"
}{- "status": "string",
- "code": 0
}Get a list of capabilities on a project, as defined by the billing system. +For instance, one special capability that could be defined on a project is +large development environments.
+| projectId required | string |
{- "custom_domains": {
- "enabled": true,
- "environments_with_domains_limit": 0
}, - "source_operations": {
- "enabled": true
}, - "runtime_operations": {
- "enabled": true
}, - "outbound_firewall": {
- "enabled": true
}, - "metrics": {
- "max_range": "string"
}, - "logs_forwarding": {
- "max_extra_payload_size": 0
}, - "guaranteed_resources": {
- "enabled": true,
- "instance_limit": 0
}, - "images": {
- "property1": {
- "property1": {
- "available": true
}, - "property2": {
- "available": true
}
}, - "property2": {
- "property1": {
- "available": true
}, - "property2": {
- "available": true
}
}
}, - "instance_limit": 0,
- "build_resources": {
- "enabled": true,
- "max_cpu": 0.1,
- "max_memory": 0
}, - "data_retention": {
- "enabled": true
}, - "autoscaling": {
- "enabled": true
}, - "integrations": {
- "enabled": true,
- "config": {
- "newrelic": {
- "enabled": true,
- "role": "string"
}, - "sumologic": {
- "enabled": true,
- "role": "string"
}, - "splunk": {
- "enabled": true,
- "role": "string"
}, - "httplog": {
- "enabled": true,
- "role": "string"
}, - "syslog": {
- "enabled": true,
- "role": "string"
}, - "webhook": {
- "enabled": true,
- "role": "string"
}, - "script": {
- "enabled": true,
- "role": "string"
}, - "github": {
- "enabled": true,
- "role": "string"
}, - "gitlab": {
- "enabled": true,
- "role": "string"
}, - "bitbucket": {
- "enabled": true,
- "role": "string"
}, - "bitbucket_server": {
- "enabled": true,
- "role": "string"
}, - "health.email": {
- "enabled": true,
- "role": "string"
}, - "health.webhook": {
- "enabled": true,
- "role": "string"
}, - "health.pagerduty": {
- "enabled": true,
- "role": "string"
}, - "health.slack": {
- "enabled": true,
- "role": "string"
}, - "cdn.fastly": {
- "enabled": true,
- "role": "string"
}, - "blackfire": {
- "enabled": true,
- "role": "string"
}, - "otlplog": {
- "enabled": true,
- "role": "string"
}
}, - "allowed_integrations": [
- "string"
]
}
}Update project capabilites, enabling and disabling them.
+| projectId required | string |
{ }{- "status": "string",
- "code": 0
}On rare occasions, a project's build cache can become corrupted. This +endpoint will entirely flush the project's build cache. More information +on clearing the build cache can be found in our user documentation.
+| projectId required | string |
{- "status": "string",
- "code": 0
}These endpoints can be used to add, modify, or remove domains from +a project. For more information on how domains function on +Upsun, see the Domains +section of our documentation.
+Retrieve a list of objects representing the user-specified domains +associated with a project. Note that this does not return the +domains automatically assigned to a project that appear under +"Access site" on the user interface.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "project": "string",
- "name": "string",
- "registered_name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}
]Add a single domain to a project.
+If the ssl field is left blank without an object containing
+a PEM-encoded SSL certificate, a certificate will
+be provisioned for you via Let's Encrypt.
| projectId required | string |
| name required | string (Domain name) |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| is_default | boolean (Is Default) Is this domain default + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}{- "status": "string",
- "code": 0
}Retrieve information about a single user-specified domain +associated with a project.
+| projectId required | string |
| domainId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "project": "string",
- "name": "string",
- "registered_name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}Update the information associated with a single user-specified +domain associated with a project.
+| projectId required | string |
| domainId required | string |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| is_default | boolean (Is Default) Is this domain default + |
{- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}{- "status": "string",
- "code": 0
}Retrieve a list of objects representing the user-specified domains
+associated with an environment. Note that this does not return the
+.platformsh.site subdomains, which are automatically assigned to
+the environment.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "project": "string",
- "name": "string",
- "registered_name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}
]Add a single domain to an environment.
+If the environment is not production, the replacement_for field
+is required, which binds a new domain to an existing one from a
+production environment.
+If the ssl field is left blank without an object containing
+a PEM-encoded SSL certificate, a certificate will
+be provisioned for you via Let's Encrypt.
| projectId required | string |
| environmentId required | string |
| name required | string (Domain name) |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| is_default | boolean (Is Default) Is this domain default + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}{- "status": "string",
- "code": 0
}Retrieve information about a single user-specified domain +associated with an environment.
+| projectId required | string |
| environmentId required | string |
| domainId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "project": "string",
- "name": "string",
- "registered_name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}Update the information associated with a single user-specified +domain associated with an environment.
+| projectId required | string |
| environmentId required | string |
| domainId required | string |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| is_default | boolean (Is Default) Is this domain default + |
{- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "is_default": true
}{- "status": "string",
- "code": 0
}Delete a single user-specified domain associated with an environment.
+| projectId required | string |
| environmentId required | string |
| domainId required | string |
{- "status": "string",
- "code": 0
}User-supplied SSL/TLS certificates can be managed using these
+endpoints. You can now list and modify certificate provisioners
+using the /projects/{projectId}/provisioners and
+/projects/{projectId}/provisioners/{certificateProvisionerDocumentId}
+endpoints. For more information, see our
+Third-party TLS certificate
+documentation. These endpoints are not for managing certificates
+that are automatically supplied by Upsun via Let's Encrypt.
Retrieve a list of objects representing the SSL certificates +associated with a project.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "certificate": "string",
- "chain": [
- "string"
], - "is_provisioned": true,
- "is_invalid": true,
- "is_root": true,
- "domains": [
- "string"
], - "auth_type": [
- "string"
], - "issuer": [
- {
- "oid": "string",
- "alias": "string",
- "value": "string"
}
], - "expires_at": "2019-08-24T14:15:22Z"
}
]Add a single SSL certificate to a project.
+| projectId required | string |
| certificate required | string (Certificate) The PEM-encoded certificate + |
| key required | string (Private Key) The PEM-encoded private key + |
| chain | Array of strings (Certificate chain) The certificate chain + |
| is_invalid | boolean (Is Invalid) Whether this certificate should be skipped during provisioning + |
{- "certificate": "string",
- "key": "string",
- "chain": [
- "string"
], - "is_invalid": true
}{- "status": "string",
- "code": 0
}Retrieve information about a single SSL certificate +associated with a project.
+| projectId required | string |
| certificateId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "certificate": "string",
- "chain": [
- "string"
], - "is_provisioned": true,
- "is_invalid": true,
- "is_root": true,
- "domains": [
- "string"
], - "auth_type": [
- "string"
], - "issuer": [
- {
- "oid": "string",
- "alias": "string",
- "value": "string"
}
], - "expires_at": "2019-08-24T14:15:22Z"
}Update a single SSL certificate associated with a project.
+| projectId required | string |
| certificateId required | string |
| chain | Array of strings (Certificate chain) The certificate chain + |
| is_invalid | boolean (Is Invalid) Whether this certificate should be skipped during provisioning + |
{- "chain": [
- "string"
], - "is_invalid": true
}{- "status": "string",
- "code": 0
}Retrieve a list of objects representing the (internal) SSL certificates +associated with a project. +Internal SSL certificates are signed by the project's own Certificate Authority.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "certificate": "string",
- "chain": [
- "string"
], - "is_provisioned": true,
- "is_invalid": true,
- "is_root": true,
- "domains": [
- "string"
], - "auth_type": [
- "string"
], - "issuer": [
- {
- "oid": "string",
- "alias": "string",
- "value": "string"
}
], - "expires_at": "2019-08-24T14:15:22Z"
}
]Retrieve information about a single (internal) SSL certificate +associated with a project.
+| projectId required | string |
| internalCertificateId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "certificate": "string",
- "chain": [
- "string"
], - "is_provisioned": true,
- "is_invalid": true,
- "is_root": true,
- "domains": [
- "string"
], - "auth_type": [
- "string"
], - "issuer": [
- {
- "oid": "string",
- "alias": "string",
- "value": "string"
}
], - "expires_at": "2019-08-24T14:15:22Z"
}Delete a single (internal) SSL certificate associated with a project.
+| projectId required | string |
| internalCertificateId required | string |
{- "status": "string",
- "code": 0
}| projectId required | string |
| certificateProvisionerDocumentId required | string |
{- "id": "string",
- "directory_url": "string",
- "email": "string",
- "eab_kid": "string",
- "eab_hmac_key": "string"
}| projectId required | string |
| certificateProvisionerDocumentId required | string |
| directory_url | string (ACME directory url) The URL to the ACME directory + |
string (Contacted email address) The email address for contact information + | |
| eab_kid | string or null (EAB Key identifier) The key identifier for Entity Attestation Binding + |
| eab_hmac_key | string or null (EAB HMAC Key) The Keyed-'Hashing Message Authentication Code' for Entity Attestation Binding + |
{- "directory_url": "string",
- "email": "string",
- "eab_kid": "string",
- "eab_hmac_key": "string"
}{- "status": "string",
- "code": 0
}These endpoints manipulate user-defined variables which are bound to an +entire project. These variables are accessible to all environments +within a single project, and they can be made available at both build +time and runtime. For more information on project variables, +see the Variables +section of the documentation.
+Retrieve a list of objects representing the user-defined variables +within a project.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
]
}
]Add a variable to a project. The value can be either a string or a JSON
+object (default: string), as specified by the is_json boolean flag.
+See the Variables
+section in our documentation for more information.
| projectId required | string |
| name required | string (Name) Name of the variable + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| value required | string (Value) Value of the variable + |
| is_json | boolean (Is JSON) The variable is a JSON string + |
| is_sensitive | boolean (Is Sensitive) The variable is sensitive + |
| visible_build | boolean (Visible during build) The variable is visible during build + |
| visible_runtime | boolean (Visible at runtime) The variable is visible at runtime + |
| application_scope | Array of strings (Application Scope) Applications that have access to this variable + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
]
}{- "status": "string",
- "code": 0
}Retrieve a single user-defined project variable.
+| projectId required | string |
| projectVariableId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
]
}Update a single user-defined project variable.
+The value can be either a string or a JSON
+object (default: string), as specified by the is_json boolean flag.
+See the Variables
+section in our documentation for more information.
| projectId required | string |
| projectVariableId required | string |
| name | string (Name) Name of the variable + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| value | string (Value) Value of the variable + |
| is_json | boolean (Is JSON) The variable is a JSON string + |
| is_sensitive | boolean (Is Sensitive) The variable is sensitive + |
| visible_build | boolean (Visible during build) The variable is visible during build + |
| visible_runtime | boolean (Visible at runtime) The variable is visible at runtime + |
| application_scope | Array of strings (Application Scope) Applications that have access to this variable + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
]
}{- "status": "string",
- "code": 0
}The Git repository backing projects hosted on Upsun can be
+accessed in a read-only manner through the /projects/{projectId}/git/*
+family of endpoints. With these endpoints, you can retrieve objects from
+the Git repository in the same way that you would in a local environment.
| projectId required | string |
| encoding | string (Encoding) Enum: "base64" "utf-8" The encoding of the contents + |
| content required | string (Content) The contents + |
{- "encoding": "base64",
- "content": "string"
}{- "status": "string",
- "code": 0
}Retrieve, by hash, an object representing a blob in the repository
+backing a project. This endpoint allows direct read-only access
+to the contents of files in a repo. It returns the file in the
+content field of the response object, encoded according to the
+format in the encoding field, e.g. base64.
| projectId required | string |
| repositoryBlobId required | string |
{- "id": "string",
- "sha": "string",
- "size": 0,
- "encoding": "base64",
- "content": "string"
}| projectId required | string |
[- {
- "id": "string",
- "sha": "string",
- "author": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "committer": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "message": "string",
- "tree": "string",
- "parents": [
- "string"
]
}
]| projectId required | string |
object (Author) The information about the author + | |
object (Committer) The information about the committer + | |
| message required | string (Message) The commit message + |
| tree required | string (Tree identifier) The identifier of the tree + |
| parents required | Array of strings (Parent identifiers) The identifiers of the parents of the commit + |
{- "author": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "committer": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "message": "string",
- "tree": "string",
- "parents": [
- "string"
]
}{- "status": "string",
- "code": 0
}Retrieve, by hash, an object representing a commit in the repository backing
+a project. This endpoint functions similarly to git cat-file -p <commit-id>.
+The returned object contains the hash of the Git tree that it
+belongs to, as well as the ID of parent commits.
The commit represented by a parent ID can be retrieved using this +endpoint, while the tree state represented by this commit can +be retrieved using the +Get a tree object +endpoint.
+| projectId required | string |
| repositoryCommitId required | string |
{- "id": "string",
- "sha": "string",
- "author": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "committer": {
- "date": "2019-08-24T14:15:22Z",
- "name": "string",
- "email": "string"
}, - "message": "string",
- "tree": "string",
- "parents": [
- "string"
]
}Retrieve a list of refs/* in the repository backing a project.
+This endpoint functions similarly to git show-ref, with each
+returned object containing a ref field with the ref's name,
+and an object containing the associated commit ID.
The returned commit ID can be used with the +Get a commit object +endpoint to retrieve information about that specific commit.
+| projectId required | string |
[- {
- "id": "string",
- "ref": "string",
- "object": {
- "type": "string",
- "sha": "string"
}, - "sha": "string"
}
]| projectId required | string |
| ref required | string (Name) The name of the reference + |
| sha required | string (SHA) The commit sha of the ref + |
{- "ref": "string",
- "sha": "string"
}{- "status": "string",
- "code": 0
}Retrieve the details of a single refs object in the repository
+backing a project. This endpoint functions similarly to
+git show-ref <pattern>, although the pattern must be a full ref id,
+rather than a matching pattern.
NOTE: The {repositoryRefId} must be properly escaped.
+That is, the ref refs/heads/master is accessible via
+/projects/{projectId}/git/refs/heads%2Fmaster.
| projectId required | string |
| repositoryRefId required | string |
{- "id": "string",
- "ref": "string",
- "object": {
- "type": "string",
- "sha": "string"
}, - "sha": "string"
}| projectId required | string |
| repositoryRefId required | string |
| sha | string (SHA) The commit sha of the ref + |
{- "sha": "string"
}{- "status": "string",
- "code": 0
}| projectId required | string |
required | Array of objects (Tree items) The tree items + |
| base_tree | string or null (Base tree) The base tree to use while creating this tree + |
{- "tree": [
- {
- "path": "string",
- "mode": "040000",
- "sha": "string",
- "content": "string",
- "encoding": "base64"
}
], - "base_tree": "string"
}{- "status": "string",
- "code": 0
}Retrieve, by hash, the tree state represented by a commit.
+The returned object's tree field contains a list of files and
+directories present in the tree.
Directories in the tree can be recursively retrieved by this endpoint +through their hashes. Files in the tree can be retrieved by the +Get a blob object +endpoint.
+| projectId required | string |
| repositoryTreeId required | string |
{- "id": "string",
- "sha": "string",
- "tree": [
- {
- "path": "string",
- "mode": "040000",
- "type": "string",
- "sha": "string"
}
]
}Upsun can easily integrate with many third-party services, including +Git hosting services (GitHub, GitLab, and Bitbucket), +health notification services (email, Slack, PagerDuty), +performance analytics platforms (New Relic, Blackfire, Tideways), +and webhooks.
+For clarification about what information each field requires, see the +External Integrations +documentation. NOTE: The names of the CLI arguments listed in the +documentation are not always named exactly the same as the +required body fields in the API request.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "fetch_branches": true,
- "prune_branches": true,
- "environment_init_resources": "default",
- "app_credentials": {
- "key": "string"
}, - "addon_credentials": {
- "addon_key": "string",
- "client_key": "string"
}, - "repository": "string",
- "build_pull_requests": true,
- "pull_requests_clone_parent_data": true,
- "resync_pull_requests": true
}
]| projectId required | string |
| type required | string (Integration type) |
| fetch_branches | boolean (Fetch Branches) Whether or not to fetch branches. + |
| prune_branches | boolean (Prune Branches) Whether or not to remove branches that disappeared remotely (requires |
| environment_init_resources | string (Environment Init Resources) Enum: "default" "manual" "minimum" "parent" The resources used when initializing a new service + |
object or null (OAuth2 consumer) The OAuth2 consumer information (optional). + | |
object or null (Addon credential) The addon credential information (optional). + | |
| repository required | string (Bitbucket repository) The Bitbucket repository (in the form |
| build_pull_requests | boolean (Build pull requests) Whether or not to build pull requests. + |
| pull_requests_clone_parent_data | boolean (Clone parent data) Whether or not to clone parent data when building merge requests. + |
| resync_pull_requests | boolean (Sync environment data) Whether or not pull request environment data should be re-synced on every build. + |
{- "type": "string",
- "fetch_branches": true,
- "prune_branches": true,
- "environment_init_resources": "default",
- "app_credentials": {
- "key": "string",
- "secret": "string"
}, - "addon_credentials": {
- "addon_key": "string",
- "client_key": "string",
- "shared_secret": "string"
}, - "repository": "string",
- "build_pull_requests": true,
- "pull_requests_clone_parent_data": true,
- "resync_pull_requests": true
}{- "status": "string",
- "code": 0
}| projectId required | string |
| integrationId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "fetch_branches": true,
- "prune_branches": true,
- "environment_init_resources": "default",
- "app_credentials": {
- "key": "string"
}, - "addon_credentials": {
- "addon_key": "string",
- "client_key": "string"
}, - "repository": "string",
- "build_pull_requests": true,
- "pull_requests_clone_parent_data": true,
- "resync_pull_requests": true
}| projectId required | string |
| integrationId required | string |
| type required | string (Integration type) |
| fetch_branches | boolean (Fetch Branches) Whether or not to fetch branches. + |
| prune_branches | boolean (Prune Branches) Whether or not to remove branches that disappeared remotely (requires |
| environment_init_resources | string (Environment Init Resources) Enum: "default" "manual" "minimum" "parent" The resources used when initializing a new service + |
object or null (OAuth2 consumer) The OAuth2 consumer information (optional). + | |
object or null (Addon credential) The addon credential information (optional). + | |
| repository required | string (Bitbucket repository) The Bitbucket repository (in the form |
| build_pull_requests | boolean (Build pull requests) Whether or not to build pull requests. + |
| pull_requests_clone_parent_data | boolean (Clone parent data) Whether or not to clone parent data when building merge requests. + |
| resync_pull_requests | boolean (Sync environment data) Whether or not pull request environment data should be re-synced on every build. + |
{- "type": "string",
- "fetch_branches": true,
- "prune_branches": true,
- "environment_init_resources": "default",
- "app_credentials": {
- "key": "string",
- "secret": "string"
}, - "addon_credentials": {
- "addon_key": "string",
- "client_key": "string",
- "shared_secret": "string"
}, - "repository": "string",
- "build_pull_requests": true,
- "pull_requests_clone_parent_data": true,
- "resync_pull_requests": true
}{- "status": "string",
- "code": 0
}These endpoints can be used to retrieve information about support ticket priority +and allow you to submit new ticket to the Upsun Support Team.
+| filter[ticket_id] | integer The ID of the ticket. + |
| filter[comment_id] | integer The ID of the comment. + |
| filter[author_id] | string The author id of the commenter. + |
| filter[created_at] | integer Time and date of comment creation. + |
| filter[public] | string If the comment is public it is set to 1. + |
| page | integer <int32> Page to be displayed. Defaults to 1. + |
| all | string [Internal] Add this parameter with whichever value to display all projects, otherwise, only projects owned by current user will be displayed (admins only). + |
{- "count": 0,
- "comments": [
- {
- "ticket_id": 0,
- "comment_id": 0,
- "body": "string",
- "author_id": "string",
- "created_at": 0,
- "public": "string",
- "attachments": [
- {
- "filename": "string",
- "uri": "string",
- "content_type": "string"
}
]
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}| ticket_id | integer The id of the ticket. + |
| body | string The body of the ticket comment. + |
| author_id | string The ID of the author of the comment + |
| public | string 1 if the comment is public and therefore should be displayed to nonadmin users. + |
Array of objects A list of attachments for the ticket. + |
{- "ticket_id": 0,
- "body": "string",
- "author_id": "string",
- "public": "string",
- "attachments": [
- {
- "filename": "string",
- "data": "string"
}
]
}{- "ticket_id": 0,
- "comment_id": 0,
- "body": "string",
- "author_id": "string",
- "created_at": 0,
- "public": "string",
- "attachments": [
- {
- "filename": "string",
- "uri": "string",
- "content_type": "string"
}
]
}| ticket_id required | string The ID of the ticket + |
{- "ticket_id": 0,
- "comment_id": 0,
- "body": "string",
- "author_id": "string",
- "created_at": 0,
- "public": "string",
- "attachments": [
- {
- "filename": "string",
- "uri": "string",
- "content_type": "string"
}
]
}| subject required | string A title of the ticket. + |
| description required | string The description body of the support ticket. + |
| requester_id | string <uuid> UUID of the ticket requester. Converted from the ZID value. + |
| priority | string Enum: "low" "normal" "high" "urgent" A priority of the ticket. + |
| subscription_id | string see create() + |
| organization_id | string see create() + |
| affected_url | string <url> see create(). + |
| followup_tid | string The unique ID of the ticket which this ticket is a follow-up to. + |
| category | string Enum: "access" "billing_question" "complaint" "compliance_question" "configuration_change" "general_question" "incident_outage" "bug_report" "report_a_gui_bug" "onboarding" "close_my_account" The category of the support ticket. + |
Array of objects A list of attachments for the ticket. + | |
| collaborator_ids | Array of strings A list of collaborators uuids for the ticket. + |
{- "subject": "string",
- "description": "string",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "priority": "low",
- "subscription_id": "string",
- "organization_id": "string",
- "affected_url": "string",
- "followup_tid": "string",
- "category": "access",
- "attachments": [
- {
- "filename": "string",
- "data": "string"
}
], - "collaborator_ids": [
- "string"
]
}{- "ticket_id": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "problem",
- "subject": "string",
- "description": "string",
- "priority": "low",
- "followup_tid": "string",
- "status": "closed",
- "recipient": "string",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "submitter_id": "7e359385-67b1-4c24-8530-73be9a04faec",
- "assignee_id": "e209ca2d-190b-4818-b659-67d4ef4f1ce8",
- "organization_id": "string",
- "collaborator_ids": [
- "string"
], - "has_incidents": true,
- "due": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
], - "subscription_id": "string",
- "ticket_group": "string",
- "support_plan": "string",
- "affected_url": "string",
- "queue": "string",
- "issue_type": "string",
- "resolution_time": "2019-08-24T14:15:22Z",
- "response_time": "2019-08-24T14:15:22Z",
- "project_url": "string",
- "region": "string",
- "category": "access",
- "environment": "env_development",
- "ticket_sharing_status": "ts_sent_to_platform",
- "application_ticket_url": "string",
- "infrastructure_ticket_url": "string",
- "jira": [
- {
- "id": 0,
- "ticket_id": 0,
- "issue_id": 0,
- "issue_key": "string",
- "created_at": 0.1,
- "updated_at": 0.1
}
], - "zd_ticket_url": "string"
}| ticket_id required | string The ID of the ticket + |
| status | string Enum: "open" "solved" The status of the support ticket. + |
| collaborator_ids | Array of strings A list of collaborators uuids for the ticket. + |
| collaborators_replace | boolean Default: null Whether or not should replace ticket collaborators with the provided values. If false, the collaborators will be appended. + |
{- "status": "open",
- "collaborator_ids": [
- "string"
], - "collaborators_replace": null
}{- "ticket_id": 0,
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z",
- "type": "problem",
- "subject": "string",
- "description": "string",
- "priority": "low",
- "followup_tid": "string",
- "status": "closed",
- "recipient": "string",
- "requester_id": "5fe88a55-c92f-4e12-bd25-87bf15036ce9",
- "submitter_id": "7e359385-67b1-4c24-8530-73be9a04faec",
- "assignee_id": "e209ca2d-190b-4818-b659-67d4ef4f1ce8",
- "organization_id": "string",
- "collaborator_ids": [
- "string"
], - "has_incidents": true,
- "due": "2019-08-24T14:15:22Z",
- "tags": [
- "string"
], - "subscription_id": "string",
- "ticket_group": "string",
- "support_plan": "string",
- "affected_url": "string",
- "queue": "string",
- "issue_type": "string",
- "resolution_time": "2019-08-24T14:15:22Z",
- "response_time": "2019-08-24T14:15:22Z",
- "project_url": "string",
- "region": "string",
- "category": "access",
- "environment": "env_development",
- "ticket_sharing_status": "ts_sent_to_platform",
- "application_ticket_url": "string",
- "infrastructure_ticket_url": "string",
- "jira": [
- {
- "id": 0,
- "ticket_id": 0,
- "issue_id": 0,
- "issue_key": "string",
- "created_at": 0.1,
- "updated_at": 0.1
}
], - "zd_ticket_url": "string"
}| subscription_id | string The ID of the subscription the ticket should be related to + |
| category | string The category of the support ticket. + |
[- {
- "id": "string",
- "label": "string",
- "short_description": "string",
- "description": "string"
}
]| subscription_id | string The ID of the subscription the ticket should be related to + |
| organization_id | string The ID of the organization the ticket should be related to + |
[- {
- "id": "string",
- "label": "string"
}
]On Upsun, an environment encompasses a single instance of your +entire application stack, the services used by the application, +the application's data storage, and the environment's backups.
+In general, an environment represents a single branch or merge request +in the Git repository backing a project. It is a virtual cluster +of read-only application and service containers with read-write +mounts for application and service data.
+On Upsun, the default branch is your production environment—thus, +merging changes to this branch will put those changes to production.
+Retrieve a list of a project's existing environments and the +information associated with each environment.
+| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "machine_name": "string",
- "title": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "development",
- "parent": "string",
- "default_domain": "string",
- "has_domains": true,
- "clone_parent_on_create": true,
- "deployment_target": "string",
- "is_pr": true,
- "has_remote": true,
- "status": "active",
- "http_access": {
- "is_enabled": true,
- "addresses": [
- {
- "permission": "allow",
- "address": "string"
}
], - "basic_auth": {
- "property1": "string",
- "property2": "string"
}
}, - "enable_smtp": true,
- "restrict_robots": true,
- "edge_hostname": "string",
- "deployment_state": {
- "last_deployment_successful": true,
- "last_deployment_at": "2019-08-24T14:15:22Z",
- "last_autoscale_up_at": "2019-08-24T14:15:22Z",
- "last_autoscale_down_at": "2019-08-24T14:15:22Z",
- "crons": {
- "enabled": true,
- "status": "paused"
}
}, - "sizing": {
- "services": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "webapps": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "workers": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}
}, - "resources_overrides": {
- "property1": {
- "services": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}
}, - "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "redeployed_start": true,
- "redeployed_end": true
}, - "property2": {
- "services": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}
}, - "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "redeployed_start": true,
- "redeployed_end": true
}
}, - "max_instance_count": 0,
- "last_active_at": "2019-08-24T14:15:22Z",
- "last_backup_at": "2019-08-24T14:15:22Z",
- "project": "string",
- "is_main": true,
- "is_dirty": true,
- "has_staged_activities": true,
- "can_rolling_deploy": true,
- "supports_rolling_deployments": true,
- "has_code": true,
- "head_commit": "string",
- "merge_info": {
- "commits_ahead": 0,
- "commits_behind": 0,
- "parent_ref": "string"
}, - "has_deployment": true,
- "supports_restrict_robots": true
}
]Retrieve the details of a single existing environment.
+| projectId required | string |
| environmentId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "machine_name": "string",
- "title": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "development",
- "parent": "string",
- "default_domain": "string",
- "has_domains": true,
- "clone_parent_on_create": true,
- "deployment_target": "string",
- "is_pr": true,
- "has_remote": true,
- "status": "active",
- "http_access": {
- "is_enabled": true,
- "addresses": [
- {
- "permission": "allow",
- "address": "string"
}
], - "basic_auth": {
- "property1": "string",
- "property2": "string"
}
}, - "enable_smtp": true,
- "restrict_robots": true,
- "edge_hostname": "string",
- "deployment_state": {
- "last_deployment_successful": true,
- "last_deployment_at": "2019-08-24T14:15:22Z",
- "last_autoscale_up_at": "2019-08-24T14:15:22Z",
- "last_autoscale_down_at": "2019-08-24T14:15:22Z",
- "crons": {
- "enabled": true,
- "status": "paused"
}
}, - "sizing": {
- "services": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "webapps": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "workers": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}
}, - "resources_overrides": {
- "property1": {
- "services": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}
}, - "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "redeployed_start": true,
- "redeployed_end": true
}, - "property2": {
- "services": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "disk": 0
}
}, - "starts_at": "2019-08-24T14:15:22Z",
- "ends_at": "2019-08-24T14:15:22Z",
- "redeployed_start": true,
- "redeployed_end": true
}
}, - "max_instance_count": 0,
- "last_active_at": "2019-08-24T14:15:22Z",
- "last_backup_at": "2019-08-24T14:15:22Z",
- "project": "string",
- "is_main": true,
- "is_dirty": true,
- "has_staged_activities": true,
- "can_rolling_deploy": true,
- "supports_rolling_deployments": true,
- "has_code": true,
- "head_commit": "string",
- "merge_info": {
- "commits_ahead": 0,
- "commits_behind": 0,
- "parent_ref": "string"
}, - "has_deployment": true,
- "supports_restrict_robots": true
}Update the details of a single existing environment.
+| projectId required | string |
| environmentId required | string |
| name | string (Name) The name of the environment + |
| title | string (Title) The title of the environment + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| type | string (Type) Enum: "development" "production" "staging" The type of environment ( |
| parent | string or null (Parent environment) The name of the parent environment + |
| clone_parent_on_create | boolean (Clone parent on create) Clone data when creating that environment + |
object (HTTP access permissions) The HTTP access permissions for this environment + | |
| enable_smtp | boolean (Enable SMTP) Whether to configure SMTP for this environment + |
| restrict_robots | boolean (Restrict robots) Whether to restrict robots for this environment + |
{- "name": "string",
- "title": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "development",
- "parent": "string",
- "clone_parent_on_create": true,
- "http_access": {
- "is_enabled": true,
- "addresses": [
- {
- "permission": "allow",
- "address": "string"
}
], - "basic_auth": {
- "property1": "string",
- "property2": "string"
}
}, - "enable_smtp": true,
- "restrict_robots": true
}{- "status": "string",
- "code": 0
}Set the specified environment's status to active
+| projectId required | string |
| environmentId required | string |
required | object or null (Resources) |
{- "resources": {
- "init": "default"
}
}{- "status": "string",
- "code": 0
}Create a new environment as a branch of the current environment.
+| projectId required | string |
| environmentId required | string |
| title required | string (Title) |
| name required | string (Name) |
| clone_parent required | boolean (Clone parent) Clone data from the parent environment + |
| type required | string (Type) Enum: "development" "staging" The type of environment ( |
required | object or null (Resources) |
{- "title": "string",
- "name": "string",
- "clone_parent": true,
- "type": "development",
- "resources": {
- "init": "default"
}
}{- "status": "string",
- "code": 0
}Destroy all services and data running on this environment so that +only the Git branch remains. The environment can be reactivated +later at any time; reactivating an environment will sync data +from the parent environment and redeploy.
+NOTE: ALL DATA IN THIS ENVIRONMENT WILL BE IRREVOCABLY LOST
+| projectId required | string |
| environmentId required | string |
{- "status": "string",
- "code": 0
}Trigger a controlled manual deployment +to release all the staged changes
+| projectId required | string |
| environmentId required | string |
| strategy required | string (Deployment strategy) Enum: "rolling" "stopstart" The deployment strategy ( |
{- "strategy": "rolling"
}{- "status": "string",
- "code": 0
}Initialize and configure a new environment with an existing repository. +The payload is the url of a git repository with a profile name:
+{
+ "repository": "git@github.com:platformsh/a-project-template.git@master",
+ "profile": "Example Project",
+ "files": [
+ {
+ "mode": 0600,
+ "path": "config.json",
+ "contents": "XXXXXXXX"
+ }
+ ]
+}
+
+It can optionally carry additional files that will be committed to the +repository, the POSIX file mode to set on each file, and the base64-encoded +contents of each file.
+This endpoint can also add a second repository
+URL in the config parameter that will be added to the contents of the first.
+This allows you to put your application in one repository and the Upsun
+YAML configuration files in another.
| projectId required | string |
| environmentId required | string |
| profile required | string (Profile) Name of the profile to show in the UI + |
| repository required | string (Repository) Repository to clone from + |
| config required | string or null (Configuration repository) Repository to clone the configuration files from + |
required | Array of objects (Files) A list of files to add to the repository during initialization + |
required | object or null (Resources) |
{- "profile": "string",
- "repository": "string",
- "config": "string",
- "files": [
- {
- "path": "string",
- "mode": 0,
- "contents": "string"
}
], - "resources": {
- "init": "default"
}
}{- "status": "string",
- "code": 0
}Merge an environment into its parent. This means that code changes +from the branch environment will be merged into the parent branch, and +the parent branch will be rebuilt and deployed with the new code changes, +retaining the existing data in the parent environment.
+| projectId required | string |
| environmentId required | string |
required | object or null (Resources) |
{- "resources": {
- "init": "child"
}
}{- "status": "string",
- "code": 0
}Pause an environment, stopping all services and applications (except the router).
+Development environments are often used for a limited time and then abandoned. +To prevent unnecessary consumption of resources, development environments that +haven't been redeployed in 14 days are automatically paused.
+You can pause an environment manually at any time using this endpoint. Further +information is available in our public documentation.
+| projectId required | string |
| environmentId required | string |
{- "status": "string",
- "code": 0
}Resume a paused environment, restarting all services and applications.
+Development environments that haven't been used for 14 days will be paused +automatically. They can be resumed via a redeployment or manually using this +endpoint or the CLI as described in the public documentation.
+| projectId required | string |
| environmentId required | string |
{- "status": "string",
- "code": 0
}This synchronizes the code and/or data of an environment with that of +its parent, then redeploys the environment. Synchronization is only +possible if a branch has no unmerged commits and it can be fast-forwarded.
+If data synchronization is specified, the data in the environment will +be overwritten with that of its parent.
+| projectId required | string |
| environmentId required | string |
| synchronize_code required | boolean (Is code synchronized) Synchronize code? + |
| rebase required | boolean (Is code rebased) Synchronize code by rebasing instead of merging + |
| synchronize_data required | boolean (Is data synchronized) Synchronize data? + |
| synchronize_resources required | boolean (Are resources synchronized) Synchronize resources? + |
{- "synchronize_code": true,
- "rebase": true,
- "synchronize_data": true,
- "synchronize_resources": true
}{- "status": "string",
- "code": 0
}List versions associated with the {environmentId} environment.
+At least one version always exists.
+When multiple versions exist, it means that multiple versions of an app are deployed.
+The deployment target type denotes whether staged deployment is supported.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "commit": "string",
- "locked": true,
- "routing": {
- "percentage": 0
}
}
]Create versions associated with the {environmentId} environment.
+At least one version always exists.
+When multiple versions exist, it means that multiple versions of an app are deployed.
+The deployment target type denotes whether staged deployment is supported.
| projectId required | string |
| environmentId required | string |
object (Routing) Configuration about the traffic routed to this version + |
{- "routing": {
- "percentage": 0
}
}{- "status": "string",
- "code": 0
}List the {versionId} version.
+A routing percentage for this version may be specified for staged rollouts
+(if the deployment target supports it).
| projectId required | string |
| environmentId required | string |
| versionId required | string |
{- "id": "string",
- "commit": "string",
- "locked": true,
- "routing": {
- "percentage": 0
}
}Update the {versionId} version.
+A routing percentage for this version may be specified for staged rollouts
+(if the deployment target supports it).
| projectId required | string |
| environmentId required | string |
| versionId required | string |
object (Routing) Configuration about the traffic routed to this version + |
{- "routing": {
- "percentage": 0
}
}{- "status": "string",
- "code": 0
}Delete the {versionId} version.
+A routing percentage for this version may be specified for staged rollouts
+(if the deployment target supports it).
| projectId required | string |
| environmentId required | string |
| versionId required | string |
{- "status": "string",
- "code": 0
}A snapshot is a complete backup of an environment, including all the +persistent data from all services running in an environment and all +files present in mounted volumes.
+These endpoints can be used to trigger the creation of new backups, +get information about existing backups, delete existing backups or +restore a backup. +More information about backups can be found in our +documentation.
+Trigger a new backup of an environment to be created. See the +Backups +section of the documentation for more information.
+| projectId required | string |
| environmentId required | string |
| safe required | boolean (Safe or live backup) Take a safe or a live backup + |
{- "safe": true
}{- "status": "string",
- "code": 0
}Retrieve a list of objects representing backups of this environment.
+| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "status": "CREATED",
- "expires_at": "2019-08-24T14:15:22Z",
- "index": 0,
- "commit_id": "string",
- "environment": "string",
- "safe": true,
- "size_of_volumes": 0,
- "size_used": 0,
- "deployment": "string",
- "restorable": true,
- "automated": true
}
]Trigger an environment backup
+| projectId required | string |
| environmentId required | string |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + |
{- "attributes": {
- "property1": "string",
- "property2": "string"
}
}{- "status": "string",
- "code": 0
}Get the details of a specific backup from an environment using the id
+of the entry retrieved by the
+Get backups list
+endpoint.
| projectId required | string |
| environmentId required | string |
| backupId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "status": "CREATED",
- "expires_at": "2019-08-24T14:15:22Z",
- "index": 0,
- "commit_id": "string",
- "environment": "string",
- "safe": true,
- "size_of_volumes": 0,
- "size_used": 0,
- "deployment": "string",
- "restorable": true,
- "automated": true
}Delete a specific backup from an environment using the id
+of the entry retrieved by the
+Get backups list
+endpoint.
| projectId required | string |
| environmentId required | string |
| backupId required | string |
{- "status": "string",
- "code": 0
}Restore a specific backup from an environment using the id
+of the entry retrieved by the
+Get backups list
+endpoint.
| projectId required | string |
| environmentId required | string |
| backupId required | string |
| environment_name required | string or null (Environment name) |
| branch_from required | string or null (Branch from) |
| restore_code required | boolean (Is code or data restored) Whether we should restore the code or only the data + |
| restore_resources required | boolean (Is resources restored) Whether we should restore resources configuration from the backup + |
required | object or null (Resources) |
{- "environment_name": "string",
- "branch_from": "string",
- "restore_code": true,
- "restore_resources": true,
- "resources": {
- "init": "backup"
}
}{- "status": "string",
- "code": 0
}Environment Types is the way Upsun manages access. We currently have 3 environment types:
+Each environment type will contain a group of users and their accesses. We manage access, +adding, updating and removing users and their roles, here.
+Each environment will have a type, pointing to one of these 3 environment types.
+See type in Environments.
In general:
+staging or development manually and when branching.Dedicated Generation 2 projects have different rules for environment types. If your project +contains at least one of those Dedicated Generation 2 environments, the rules are slightly different:
+development or staging, but never production.staging or production, but never development.Lists the endpoints used to retrieve info about the environment type.
+| projectId required | string |
| environmentTypeId required | string |
{- "id": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}
}These endpoints manipulate user-defined variables which are bound to a +specific environment, as well as (optionally) the children of an +environment. These variables can be made available at both build time +and runtime. For more information on environment variables, +see the Variables +section of the documentation.
+Retrieve a list of objects representing the user-defined variables +within an environment.
+| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
], - "project": "string",
- "environment": "string",
- "inherited": true,
- "is_enabled": true,
- "is_inheritable": true
}
]Add a variable to an environment. The value can be either a string or a JSON
+object (default: string), as specified by the is_json boolean flag.
+Additionally, the inheritability of an environment variable can be
+determined through the is_inheritable flag (default: true).
+See the Environment Variables
+section in our documentation for more information.
| projectId required | string |
| environmentId required | string |
| name required | string (Name) Name of the variable + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| value required | string (Value) Value of the variable + |
| is_json | boolean (Is JSON) The variable is a JSON string + |
| is_sensitive | boolean (Is Sensitive) The variable is sensitive + |
| visible_build | boolean (Is visible during build) The variable is visible during build + |
| visible_runtime | boolean (Visible at runtime) The variable is visible at runtime + |
| application_scope | Array of strings (Application Scope) Applications that have access to this variable + |
| is_enabled | boolean (Is enabled) The variable is enabled on this environment + |
| is_inheritable | boolean (Is inheritable) The variable is inheritable to child environments + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
], - "is_enabled": true,
- "is_inheritable": true
}{- "status": "string",
- "code": 0
}Retrieve a single user-defined environment variable.
+| projectId required | string |
| environmentId required | string |
| variableId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
], - "project": "string",
- "environment": "string",
- "inherited": true,
- "is_enabled": true,
- "is_inheritable": true
}Update a single user-defined environment variable.
+The value can be either a string or a JSON
+object (default: string), as specified by the is_json boolean flag.
+Additionally, the inheritability of an environment variable can be
+determined through the is_inheritable flag (default: true).
+See the Variables
+section in our documentation for more information.
| projectId required | string |
| environmentId required | string |
| variableId required | string |
| name | string (Name) Name of the variable + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| value | string (Value) Value of the variable + |
| is_json | boolean (Is JSON) The variable is a JSON string + |
| is_sensitive | boolean (Is Sensitive) The variable is sensitive + |
| visible_build | boolean (Is visible during build) The variable is visible during build + |
| visible_runtime | boolean (Visible at runtime) The variable is visible at runtime + |
| application_scope | Array of strings (Application Scope) Applications that have access to this variable + |
| is_enabled | boolean (Is enabled) The variable is enabled on this environment + |
| is_inheritable | boolean (Is inheritable) The variable is inheritable to child environments + |
{- "name": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "value": "string",
- "is_json": true,
- "is_sensitive": true,
- "visible_build": true,
- "visible_runtime": true,
- "application_scope": [
- "string"
], - "is_enabled": true,
- "is_inheritable": true
}{- "status": "string",
- "code": 0
}These endpoints modify an environment's .platform/routes.yaml file.
+For routes to propagate to child environments, the child environments
+must be synchronized with their parent.
++Warning: These endpoints create a new commit in the project repository. +This may lead to merge conflicts if you are using an external Git provider +through our integrations.
+We strongly recommend that you specify your routes in your
+.upsun/config.yaml+file if you use an external Git integration such as GitHub or GitLab.
More information about routing can be found in the Routes +section of the documentation.
+Retrieve a list of objects containing route definitions for
+a specific environment. The definitions returned by this endpoint
+are those present in an environment's .upsun/config.yaml file.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}
]Add a new route to the specified environment. More information about +how routes are defined can be found in the Routes +section of the documentation.
+This endpoint modifies an environment's routes: section of the .upsun/config.yaml file.
+For routes to propagate to child environments, the child environments
+must be synchronized with their parent.
| projectId required | string |
| environmentId required | string |
| primary | boolean or null (Is primary) This route is the primary route of the environment + |
| id | string or null (Route Identifier) Route Identifier + |
| production_url | string or null (Production URL) How this URL route would look on production environment + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| type required | string (Route type) Enum: "proxy" "redirect" "upstream" Route type. + |
object (TLS settings) TLS settings for the route. + | |
| to required | string (Proxy destination) |
{- "primary": true,
- "id": "string",
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}{- "status": "string",
- "code": 0
}Get details of a route from an environment using the id of the entry
+retrieved by the Get environment routes list
+endpoint.
| projectId required | string |
| environmentId required | string |
| routeId required | string |
{- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}Update a route in an environment using the id of the entry
+retrieved by the Get environment routes list
+endpoint.
This endpoint modifies an environment's .upsun/config.yaml file.
+For routes to propagate to child environments, the child environments
+must be synchronized with their parent.
| projectId required | string |
| environmentId required | string |
| routeId required | string |
| primary | boolean or null (Is primary) This route is the primary route of the environment + |
| id | string or null (Route Identifier) Route Identifier + |
| production_url | string or null (Production URL) How this URL route would look on production environment + |
object (Arbitrary attributes) Arbitrary attributes attached to this resource + | |
| type required | string (Route type) Enum: "proxy" "redirect" "upstream" Route type. + |
object (TLS settings) TLS settings for the route. + | |
| to required | string (Proxy destination) |
{- "primary": true,
- "id": "string",
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}{- "status": "string",
- "code": 0
}Remove a route from an environment using the id of the entry
+retrieved by the Get environment routes list
+endpoint.
This endpoint modifies an environment's routes: section of the .upsun/config.yaml file.
+For routes to propagate to child environments, the child environments
+must be synchronized with their parent.
| projectId required | string |
| environmentId required | string |
| routeId required | string |
{- "status": "string",
- "code": 0
}These endpoints interact with source code operations as defined in the source.operations
+key in a project's .upsun/config.yaml configuration. More information
+on source code operations is
+available in our user documentation.
This endpoint triggers a source code operation as defined in the source.operations
+key in a project's .upsun/config.yaml configuration. More information
+on source code operations is
+available in our user documentation.
| projectId required | string |
| environmentId required | string |
| operation required | string (Operation name) The name of the operation to execute + |
required | object (Variables) The variables of the application. + |
{- "operation": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}
}{- "status": "string",
- "code": 0
}Lists all the source operations, defined in .upsun/config.yaml, that are available in an environment.
+More information on source code operations is
+available in our user documentation.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "app": "string",
- "operation": "string",
- "command": "string"
}
]Execute a runtime operation on a currently deployed environment. This allows you to run one-off commands, such as rebuilding static assets on demand, by defining an operations key in a project's .upsun/config.yaml configuration. More information on runtime operations is available in our user documentation.
| projectId required | string |
| environmentId required | string |
| deploymentId required | string |
| service required | string (Application or worker name) The name of the application or worker to run the operation on + |
| operation required | string (Operation name) The name of the operation + |
| parameters required | Array of strings (Operation parameters) The parameters to run the operation with + |
{- "service": "string",
- "operation": "string",
- "parameters": [
- "string"
]
}{- "status": "string",
- "code": 0
}Retrieve the read-only configuration of an environment's deployment. +The returned information is everything required to +recreate a project's current deployment.
+More specifically, the objects
+returned by this endpoint contain the configuration derived from the
+repository's YAML configuration file: .upsun/config.yaml.
Additionally, any values deriving from environment variables, the +domains attached to a project, project access settings, etc. are +included here.
+This endpoint currently returns a list containing a single deployment
+configuration with an id of current. This may be subject to change
+in the future.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "cluster_name": "string",
- "project_info": {
- "title": "string",
- "name": "string",
- "namespace": "string",
- "organization": "string",
- "capabilities": { },
- "settings": { }
}, - "environment_info": {
- "name": "string",
- "status": "string",
- "is_main": true,
- "is_production": true,
- "constraints": { },
- "reference": "string",
- "machine_name": "string",
- "environment_type": "string",
- "links": { }
}, - "deployment_target": "string",
- "vpn": {
- "version": 1,
- "aggressive": "no",
- "modeconfig": "pull",
- "authentication": "string",
- "gateway_ip": "string",
- "identity": "string",
- "second_identity": "string",
- "remote_identity": "string",
- "remote_subnets": [
- "string"
], - "ike": "string",
- "esp": "string",
- "ikelifetime": "string",
- "lifetime": "string",
- "margintime": "string"
}, - "http_access": {
- "is_enabled": true,
- "addresses": [
- {
- "permission": "allow",
- "address": "string"
}
], - "basic_auth": {
- "property1": "string",
- "property2": "string"
}
}, - "enable_smtp": true,
- "restrict_robots": true,
- "variables": [
- {
- "name": "string",
- "value": "string",
- "is_sensitive": true,
- "is_json": true,
- "visible_build": true,
- "visible_runtime": true
}
], - "access": [
- {
- "entity_id": "string",
- "role": "admin"
}
], - "subscription": {
- "license_uri": "string",
- "plan": "2xlarge",
- "environments": 0,
- "storage": 0,
- "included_users": 0,
- "subscription_management_uri": "string",
- "restricted": true,
- "suspended": true,
- "user_licenses": 0,
- "resources": {
- "container_profiles": true,
- "production": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}, - "development": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}
}, - "resource_validation_url": "string",
- "image_types": {
- "only": [
- "string"
], - "exclude": [
- "string"
]
}
}, - "services": {
- "property1": {
- "type": "string",
- "size": "2XL",
- "disk": 0,
- "access": { },
- "configuration": { },
- "relationships": {
- "property1": "string",
- "property2": "string"
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "container_profile": "string",
- "endpoints": { },
- "instance_count": 0
}, - "property2": {
- "type": "string",
- "size": "2XL",
- "disk": 0,
- "access": { },
- "configuration": { },
- "relationships": {
- "property1": "string",
- "property2": "string"
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "container_profile": "string",
- "endpoints": { },
- "instance_count": 0
}
}, - "routes": {
- "property1": {
- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}, - "property2": {
- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}
}, - "webapps": {
- "property1": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "web": {
- "locations": {
- "property1": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}, - "property2": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}
}, - "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "upstream": {
- "socket_family": "tcp",
- "protocol": "fastcgi"
}, - "document_root": "string",
- "passthru": "string",
- "index_files": [
- "string"
], - "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "expires": "string",
- "move_to_root": true
}, - "hooks": {
- "build": "string",
- "deploy": "string",
- "post_deploy": "string"
}, - "crons": {
- "property1": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}, - "property2": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}
}, - "source": {
- "root": "string",
- "operations": {
- "property1": {
- "command": "string"
}, - "property2": {
- "command": "string"
}
}
}, - "build": {
- "flavor": "string",
- "caches": {
- "property1": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}, - "property2": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}
}
}, - "dependencies": {
- "property1": { },
- "property2": { }
}, - "stack": [
- { }
], - "is_across_submodule": true,
- "instance_count": 0,
- "config_id": "string",
- "slug_id": "string"
}, - "property2": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "web": {
- "locations": {
- "property1": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}, - "property2": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": null,
- "property2": null
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}
}, - "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "upstream": {
- "socket_family": "tcp",
- "protocol": "fastcgi"
}, - "document_root": "string",
- "passthru": "string",
- "index_files": [
- "string"
], - "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "expires": "string",
- "move_to_root": true
}, - "hooks": {
- "build": "string",
- "deploy": "string",
- "post_deploy": "string"
}, - "crons": {
- "property1": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}, - "property2": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}
}, - "source": {
- "root": "string",
- "operations": {
- "property1": {
- "command": "string"
}, - "property2": {
- "command": "string"
}
}
}, - "build": {
- "flavor": "string",
- "caches": {
- "property1": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}, - "property2": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}
}
}, - "dependencies": {
- "property1": { },
- "property2": { }
}, - "stack": [
- { }
], - "is_across_submodule": true,
- "instance_count": 0,
- "config_id": "string",
- "slug_id": "string"
}
}, - "workers": {
- "property1": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "worker": {
- "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "disk": 0
}, - "app": "string",
- "stack": [
- { }
], - "instance_count": 0,
- "slug_id": "string"
}, - "property2": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "worker": {
- "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "disk": 0
}, - "app": "string",
- "stack": [
- { }
], - "instance_count": 0,
- "slug_id": "string"
}
}, - "container_profiles": {
- "property1": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}, - "property2": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}
}
]Retrieve a single deployment configuration with an id of current. This may be subject to change in the future.
+Only current can be queried.
| projectId required | string |
| environmentId required | string |
| deploymentId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "fingerprint": "string",
- "cluster_name": "string",
- "project_info": {
- "title": "string",
- "name": "string",
- "namespace": "string",
- "organization": "string",
- "capabilities": { },
- "settings": { }
}, - "environment_info": {
- "name": "string",
- "status": "string",
- "is_main": true,
- "is_production": true,
- "constraints": { },
- "reference": "string",
- "machine_name": "string",
- "environment_type": "string",
- "links": { }
}, - "deployment_target": "string",
- "vpn": {
- "version": 1,
- "aggressive": "no",
- "modeconfig": "pull",
- "authentication": "string",
- "gateway_ip": "string",
- "identity": "string",
- "second_identity": "string",
- "remote_identity": "string",
- "remote_subnets": [
- "string"
], - "ike": "string",
- "esp": "string",
- "ikelifetime": "string",
- "lifetime": "string",
- "margintime": "string"
}, - "http_access": {
- "is_enabled": true,
- "addresses": [
- {
- "permission": "allow",
- "address": "string"
}
], - "basic_auth": {
- "property1": "string",
- "property2": "string"
}
}, - "enable_smtp": true,
- "restrict_robots": true,
- "variables": [
- {
- "name": "string",
- "value": "string",
- "is_sensitive": true,
- "is_json": true,
- "visible_build": true,
- "visible_runtime": true
}
], - "access": [
- {
- "entity_id": "string",
- "role": "admin"
}
], - "subscription": {
- "license_uri": "string",
- "plan": "2xlarge",
- "environments": 0,
- "storage": 0,
- "included_users": 0,
- "subscription_management_uri": "string",
- "restricted": true,
- "suspended": true,
- "user_licenses": 0,
- "resources": {
- "container_profiles": true,
- "production": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}, - "development": {
- "legacy_development": true,
- "max_cpu": 0.1,
- "max_memory": 0,
- "max_environments": 0
}
}, - "resource_validation_url": "string",
- "image_types": {
- "only": [
- "string"
], - "exclude": [
- "string"
]
}
}, - "services": {
- "property1": {
- "type": "string",
- "size": "2XL",
- "disk": 0,
- "access": { },
- "configuration": { },
- "relationships": {
- "property1": "string",
- "property2": "string"
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "container_profile": "string",
- "endpoints": { },
- "instance_count": 0
}, - "property2": {
- "type": "string",
- "size": "2XL",
- "disk": 0,
- "access": { },
- "configuration": { },
- "relationships": {
- "property1": "string",
- "property2": "string"
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "container_profile": "string",
- "endpoints": { },
- "instance_count": 0
}
}, - "routes": {
- "property1": {
- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}, - "property2": {
- "id": "string",
- "primary": true,
- "production_url": "string",
- "attributes": {
- "property1": "string",
- "property2": "string"
}, - "type": "proxy",
- "tls": {
- "strict_transport_security": {
- "enabled": true,
- "include_subdomains": true,
- "preload": true
}, - "min_version": "TLSv1.0",
- "client_authentication": "request",
- "client_certificate_authorities": [
- "string"
]
}, - "to": "string"
}
}, - "webapps": {
- "property1": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "web": {
- "locations": {
- "property1": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}, - "property2": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}
}, - "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "upstream": {
- "socket_family": "tcp",
- "protocol": "fastcgi"
}, - "document_root": "string",
- "passthru": "string",
- "index_files": [
- "string"
], - "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "expires": "string",
- "move_to_root": true
}, - "hooks": {
- "build": "string",
- "deploy": "string",
- "post_deploy": "string"
}, - "crons": {
- "property1": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}, - "property2": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}
}, - "source": {
- "root": "string",
- "operations": {
- "property1": {
- "command": "string"
}, - "property2": {
- "command": "string"
}
}
}, - "build": {
- "flavor": "string",
- "caches": {
- "property1": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}, - "property2": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}
}
}, - "dependencies": {
- "property1": { },
- "property2": { }
}, - "stack": [
- { }
], - "is_across_submodule": true,
- "instance_count": 0,
- "config_id": "string",
- "slug_id": "string"
}, - "property2": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "web": {
- "locations": {
- "property1": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}, - "property2": {
- "root": "string",
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "index": [
- "string"
], - "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "rules": {
- "property1": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}, - "property2": {
- "expires": "string",
- "passthru": "string",
- "scripts": true,
- "allow": true,
- "headers": {
- "property1": "string",
- "property2": "string"
}
}
}, - "request_buffering": {
- "enabled": true,
- "max_request_size": "string"
}
}
}, - "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "upstream": {
- "socket_family": "tcp",
- "protocol": "fastcgi"
}, - "document_root": "string",
- "passthru": "string",
- "index_files": [
- "string"
], - "whitelist": [
- "string"
], - "blacklist": [
- "string"
], - "expires": "string",
- "move_to_root": true
}, - "hooks": {
- "build": "string",
- "deploy": "string",
- "post_deploy": "string"
}, - "crons": {
- "property1": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}, - "property2": {
- "spec": "string",
- "commands": {
- "start": "string",
- "stop": "string"
}, - "shutdown_timeout": 0,
- "timeout": 0,
- "cmd": "string"
}
}, - "source": {
- "root": "string",
- "operations": {
- "property1": {
- "command": "string"
}, - "property2": {
- "command": "string"
}
}
}, - "build": {
- "flavor": "string",
- "caches": {
- "property1": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}, - "property2": {
- "directory": "string",
- "watch": [
- "string"
], - "allow_stale": true,
- "share_between_apps": true
}
}
}, - "dependencies": {
- "property1": { },
- "property2": { }
}, - "stack": [
- { }
], - "is_across_submodule": true,
- "instance_count": 0,
- "config_id": "string",
- "slug_id": "string"
}
}, - "workers": {
- "property1": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "worker": {
- "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "disk": 0
}, - "app": "string",
- "stack": [
- { }
], - "instance_count": 0,
- "slug_id": "string"
}, - "property2": {
- "resources": {
- "base_memory": 0,
- "memory_ratio": 0,
- "profile_size": "string",
- "minimum": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "default": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed",
- "disk": 0,
- "profile_size": "string"
}, - "disk": {
- "temporary": 0,
- "instance": 0,
- "storage": 0
}
}, - "size": "2XL",
- "disk": 0,
- "access": {
- "property1": "admin",
- "property2": "admin"
}, - "relationships": {
- "property1": {
- "service": "string",
- "endpoint": "string"
}, - "property2": {
- "service": "string",
- "endpoint": "string"
}
}, - "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "mounts": {
- "property1": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}, - "property2": {
- "source": "instance",
- "source_path": "string",
- "service": "string"
}
}, - "timezone": "string",
- "variables": {
- "property1": {
- "property1": null,
- "property2": null
}, - "property2": {
- "property1": null,
- "property2": null
}
}, - "firewall": {
- "outbound": [
- {
- "protocol": "tcp",
- "ips": [
- "string"
], - "domains": [
- "string"
], - "ports": [
- 0
]
}
]
}, - "container_profile": "string",
- "operations": {
- "property1": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}, - "property2": {
- "commands": {
- "start": "string",
- "stop": "string"
}, - "timeout": 0,
- "role": "admin"
}
}, - "name": "string",
- "type": "string",
- "preflight": {
- "enabled": true,
- "ignored_rules": [
- "string"
]
}, - "tree_id": "string",
- "app_dir": "string",
- "endpoints": { },
- "runtime": { },
- "worker": {
- "commands": {
- "pre_start": "string",
- "start": "string",
- "post_start": "string"
}, - "disk": 0
}, - "app": "string",
- "stack": [
- { }
], - "instance_count": 0,
- "slug_id": "string"
}
}, - "container_profiles": {
- "property1": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}, - "property2": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}
}Sizing scenarios for flexible resources projects. It is used to set sizes, disk and instance_count for the webapps, workers or services.
+Change is triggerred by invoking PATCH request on the deployment object with id=next with changed values.
+It is possible to set size of the service by changing its coresponding resource's property profile_size as a selector to services's containers profile. Disk can be also changed by updating service's disk property.
+For webapps and workers it is possible to enable horizontal scaling by setting it's resource's instance_count property to start or stop additional instances of the service. Overtaken deployment object generates
+new activity that does redeploy with new resources value for the services.
| projectId required | string |
| environmentId required | string |
| deploymentId required | string |
object (Services) | |
object (Web applications) | |
object (Workers) |
{- "services": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "webapps": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}, - "workers": {
- "property1": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}, - "property2": {
- "resources": {
- "profile_size": "string"
}, - "instance_count": 0,
- "disk": 0
}
}
}{- "status": "string",
- "code": 0
}Upsun provides native support for autoscaling, allowing your applications to automatically adjust based on resource usage.
+This ensures that your apps remain responsive under load while helping you optimize costs.
+You can configure thresholds for metrics such as CPU, RAM, and request latency.
Resources will automatically scale to meet demand.
+Each container profile assigned to an application or service provides a specific combination of CPU and RAM, which you can select via the Upsun UI or CLI.
These endpoints manage autoscaling configurations that are tied to a +specific environment, and optionally to its child environments. +You can define scaling rules based on metrics like CPU, memory, or +request latency, and these rules will be applied at both build time +and runtime. For more information on configuring autoscaling for your +environments, see the Autoscaling section +of the documentation.
+Retrieves Autoscaler settings
+| projectId required | string A string that uniquely identifies the project + |
| environmentId required | string A string that uniquely identifies the project environment + |
{- "services": {
- "property1": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}, - "property2": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}
}
}Updates Autoscaler settings
+| projectId required | string A string that uniquely identifies the project + |
| environmentId required | string A string that uniquely identifies the project environment + |
Settings to update
+object or null (Services) Each service for which autoscaling is configured is listed in the key + |
{- "services": {
- "property1": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}, - "property2": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}
}
}{- "services": {
- "property1": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}, - "property2": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}
}
}Modifies Autoscaler settings
+| projectId required | string A string that uniquely identifies the project + |
| environmentId required | string A string that uniquely identifies the project environment + |
Settings to modify
+object or null (Services) Each service for which autoscaling is configured is listed in the key + |
{- "services": {
- "property1": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}, - "property2": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}
}
}{- "services": {
- "property1": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}, - "property2": {
- "property1": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}, - "property2": {
- "triggers": {
- "cpu": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "cpu_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}, - "memory_pressure": {
- "property1": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}, - "property2": {
- "enabled": true,
- "down": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}, - "up": {
- "threshold": 100,
- "duration": 60,
- "enabled": true
}
}
}
}, - "instances": {
- "min": 0,
- "max": 0
}, - "resources": {
- "cpu": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}, - "memory": {
- "property1": {
- "min": 0,
- "max": 0
}, - "property2": {
- "min": 0,
- "max": 0
}
}
}, - "scale_factor": {
- "up": 0,
- "down": 0
}, - "scale_cooldown": {
- "up": 0,
- "down": 0
}
}
}
}
}Sends an Autoscaler alert for processing
+| projectId required | string A string that uniquely identifies the project + |
| environmentId required | string A string that uniquely identifies the project environment + |
Alert to process
+| name required | string (Name) User friendly name for the alert + |
| environment | string or null (Environment) Environment for which the alert was received + |
| service required | string (Service) Service for which the alert was received + |
| resource | string or null (Resource) Name of resource that triggered the alert + |
| condition required | string (Condition) Comparison condition to use when evaluating the alert + |
| threshold required | number (Threshold) Value that has to be crossed for the alert to be considered triggered + |
object or null Number of seconds during which the condition was satisfied + | |
| value required | number (Value) Current value for the received alert + |
{- "name": "string",
- "environment": "string",
- "service": "string",
- "resource": "string",
- "condition": "string",
- "threshold": 0,
- "duration": {
- "property1": 60,
- "property2": 60
}, - "value": 0
}Retrieve a project's activity log including logging actions in all +environments within a project. This returns a list of objects +with records of actions such as:
+The object includes a timestamp of when the action occurred
+(created_at), when the action concluded (updated_at),
+the current state of the action, the action's completion
+percentage (completion_percent), the environments it
+applies to and when the activity expires (expires_at).
There are other related information in the payload.
+The contents of the payload varies based on the type of the
+activity. For example:
An environment.branch action's payload can contain objects
+representing the environment's parent environment and the
+branching action's outcome.
An environment.push action's payload can contain objects
+representing the environment, the specific commits included in
+the push, and the user who pushed.
Expired activities are removed from the project activity log, except
+the last 100 expired objects provided they are not of type environment.cron
+or environment.backup.
| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}
]Retrieve a single activity log entry as specified by an
+id returned by the
+Get project activity log
+endpoint. See the documentation on that endpoint for details about
+the information this endpoint can return.
| projectId required | string |
| activityId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}Cancel a single activity as specified by an id returned by the
+Get project activity log
+endpoint.
Please note that not all activities are cancelable.
+| projectId required | string |
| activityId required | string |
{- "status": "string",
- "code": 0
}Retrieve an environment's activity log. This returns a list of object +with records of actions such as:
+The object includes a timestamp of when the action occurred
+(created_at), when the action concluded (updated_at),
+the current state of the action, the action's completion
+percentage (completion_percent), and other related information in
+the payload.
The contents of the payload varies based on the type of the
+activity. For example:
An environment.branch action's payload can contain objects
+representing the parent environment and the branching action's
+outcome.
An environment.push action's payload can contain objects
+representing the environment, the specific commits included in
+the push, and the user who pushed.
| projectId required | string |
| environmentId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}
]Retrieve a single environment activity entry as specified by an
+id returned by the
+Get environment activities list
+endpoint. See the documentation on that endpoint for details about
+the information this endpoint can return.
| projectId required | string |
| environmentId required | string |
| activityId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}Cancel a single activity as specified by an id returned by the
+Get environment activities list
+endpoint.
Please note that not all activities are cancelable.
+| projectId required | string |
| environmentId required | string |
| activityId required | string |
{- "status": "string",
- "code": 0
}Get the activity logs for the integration.
+| projectId required | string |
| integrationId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}
]Retrieve a single integration activity entry as specified by an
+id returned by the Get integration activities list endpoint
| projectId required | string |
| integrationId required | string |
| activityId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "type": "string",
- "parameters": { },
- "project": "string",
- "integration": "string",
- "environments": [
- "string"
], - "state": "cancelled",
- "result": "failure",
- "started_at": "2019-08-24T14:15:22Z",
- "completed_at": "2019-08-24T14:15:22Z",
- "completion_percent": 0,
- "cancelled_at": "2019-08-24T14:15:22Z",
- "timings": {
- "property1": 0.1,
- "property2": 0.1
}, - "log": "string",
- "payload": { },
- "description": "string",
- "text": "string",
- "expires_at": "2019-08-24T14:15:22Z",
- "commands": [
- {
- "app": "string",
- "type": "string",
- "exit_code": 0
}
]
}Cancel a single activity as specified by an id returned by the
+Get integration activity log.
Please note that not all activities are cancelable.
+| projectId required | string |
| integrationId required | string |
| activityId required | string |
{- "status": "string",
- "code": 0
}Creates an invitation to a project for a user with the specified email address.
+| project_id required | string The ID of the project. + |
| role | string Default: null Enum: "admin" "viewer" The role the invitee should be given on the project. + |
| email required | string <email> The email address of the invitee. + |
Array of objects Specifying the role on each environment type. + | |
Array of objects Deprecated (Deprecated, use permissions instead) Specifying the role on each environment. + | |
| force | boolean Whether to cancel any pending invitation for the specified invitee, and create a new invitation. + |
{- "role": "admin",
- "email": "user@example.com",
- "permissions": [
- {
- "type": "production",
- "role": "admin"
}
], - "environments": [
- {
- "id": "string",
- "role": "admin"
}
], - "force": true
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "state": "pending",
- "project_id": "string",
- "role": "admin",
- "email": "user@example.com",
- "owner": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "environments": [
- {
- "id": "string",
- "type": "string",
- "role": "admin",
- "title": "string"
}
]
}Returns a list of invitations to a project.
+| project_id required | string The ID of the project. + |
object (StringFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "updated_at" "-updated_at" Allows sorting by a single field. |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "state": "pending",
- "project_id": "string",
- "role": "admin",
- "email": "user@example.com",
- "owner": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "display_name": "string"
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "environments": [
- {
- "id": "string",
- "type": "string",
- "role": "admin",
- "title": "string"
}
]
}
]Cancels the specified invitation.
+| project_id required | string The ID of the project. + |
| invitation_id required | string The ID of the invitation. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a list of teams.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "label" "-label" "created_at" "-created_at" "updated_at" "-updated_at" Allows sorting by a single field. |
{- "items": [
- {
- "id": "string",
- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "admin"
], - "counts": {
- "member_count": 0,
- "project_count": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "count": 0,
- "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new team.
+| organization_id required | string <ulid> The ID of the parent organization. + |
| label required | string The human-readable label of the team. + |
| project_permissions | Array of strings Project permissions that are granted to the team. + |
{- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "string"
]
}{- "id": "string",
- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "admin"
], - "counts": {
- "member_count": 0,
- "project_count": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Retrieves the specified team.
+| team_id required | string The ID of the team. + |
{- "id": "string",
- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "admin"
], - "counts": {
- "member_count": 0,
- "project_count": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Updates the specified team.
+| team_id required | string The ID of the team. + |
| label | string The human-readable label of the team. + |
| project_permissions | Array of strings Project permissions that are granted to the team. + |
{- "label": "string",
- "project_permissions": [
- "string"
]
}{- "id": "string",
- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "admin"
], - "counts": {
- "member_count": 0,
- "project_count": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Retrieves a list of users associated with a single team.
+| team_id required | string The ID of the team. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Allows sorting by a single field. |
{- "items": [
- {
- "team_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new team member.
+| team_id required | string The ID of the team. + |
| user_id required | string <uuid> ID of the user. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5"
}{- "team_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Retrieves the specified team member.
+| team_id required | string The ID of the team. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "team_id": "string",
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Deletes the specified team member.
+| team_id required | string The ID of the team. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves teams that the specified user is a member of.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Allows sorting by a single field. |
{- "items": [
- {
- "id": "string",
- "organization_id": "string",
- "label": "string",
- "project_permissions": [
- "admin"
], - "counts": {
- "member_count": 0,
- "project_count": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "count": 0,
- "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Returns a list of items representing the project access.
+| project_id required | string The ID of the project. + |
| page[size] | integer [ 1 .. 200 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "team_id": "string",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Grants one or more team access to a specific project.
+| project_id required | string The ID of the project. + |
| team_id required | string ID of the team. + |
[- {
- "team_id": "string"
}
]{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves the team's permissions for the current project.
+| project_id required | string The ID of the project. + |
| team_id required | string The ID of the team. + |
{- "team_id": "string",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Removes the team from the current project.
+| project_id required | string The ID of the project. + |
| team_id required | string The ID of the team. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Returns a list of items representing the team's project access.
+| team_id required | string The ID of the team. + |
| page[size] | integer [ 1 .. 200 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "team_id": "string",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Adds the team to one or more specified projects.
+| team_id required | string The ID of the team. + |
| project_id required | string ID of the project. + |
[- {
- "project_id": "string"
}
]{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves the team's permissions for the current project.
+| team_id required | string The ID of the team. + |
| project_id required | string The ID of the project. + |
{- "team_id": "string",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Removes the team from the current project.
+| team_id required | string The ID of the team. + |
| project_id required | string The ID of the project. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Returns a list of items representing the project access.
+| project_id required | string The ID of the project. + |
| page[size] | integer [ 1 .. 200 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "permissions": [
- "admin"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Grants one or more users access to a specific project.
+| project_id required | string The ID of the project. + |
| user_id required | string ID of the user. + |
| permissions required | Array of strings (ProjectPermissions) Items Enum: "admin" "viewer" "development:admin" "development:contributor" "development:viewer" "staging:admin" "staging:contributor" "staging:viewer" "production:admin" "production:contributor" "production:viewer" An array of project permissions. + |
| auto_add_member | boolean If the specified user is not a member of the project's organization, add it automatically. + |
[- {
- "user_id": "string",
- "permissions": [
- "admin"
], - "auto_add_member": true
}
]{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves the user's permissions for the current project.
+| project_id required | string The ID of the project. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "permissions": [
- "admin"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Updates the user's permissions for the current project.
+| project_id required | string The ID of the project. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| permissions required | Array of strings (ProjectPermissions) Items Enum: "admin" "viewer" "development:admin" "development:contributor" "development:viewer" "staging:admin" "staging:contributor" "staging:viewer" "production:admin" "production:contributor" "production:viewer" An array of project permissions. + |
{- "permissions": [
- "admin"
]
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Removes the user from the current project.
+| project_id required | string The ID of the project. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Returns a list of items representing the user's project access.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| filter[organization_id] | string Allows filtering by |
| page[size] | integer [ 1 .. 200 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "permissions": [
- "admin"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Adds the user to one or more specified projects.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| project_id required | string ID of the project. + |
| permissions required | Array of strings (ProjectPermissions) Items Enum: "admin" "viewer" "development:admin" "development:contributor" "development:viewer" "staging:admin" "staging:contributor" "staging:viewer" "production:admin" "production:contributor" "production:viewer" An array of project permissions. + |
[- {
- "project_id": "string",
- "permissions": [
- "admin"
]
}
]{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves the user's permissions for the current project.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| project_id required | string The ID of the project. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "organization_id": "string",
- "project_id": "string",
- "project_title": "string",
- "permissions": [
- "admin"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Updates the user's permissions for the current project.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| project_id required | string The ID of the project. + |
| permissions required | Array of strings (ProjectPermissions) Items Enum: "admin" "viewer" "development:admin" "development:contributor" "development:viewer" "staging:admin" "staging:contributor" "staging:viewer" "production:admin" "production:contributor" "production:viewer" An array of project permissions. + |
{- "permissions": [
- "admin"
]
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Removes the user from the current project.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| project_id required | string The ID of the project. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Creates a new catalog.
+| name | string name of the catalog. + |
| type_name | string The type of the catalog. + |
| type_value | string The type value of the catalog. + |
object (CatalogTemplate) |
{- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}
}{- "id": "string",
- "vendor": "string",
- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}[- {
- "id": "string",
- "vendor": "string",
- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
]Retrieves the specified catalog.
+| id required | string The id of the catalog. + |
{- "id": "string",
- "vendor": "string",
- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Updates the specified catalog.
+| id required | string The id of the catalog. + |
| name | string name of the catalog. + |
| type_name | string The type of the catalog. + |
| type_value | string The type value of the catalog. + |
object (CatalogTemplate) |
{- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}
}{- "id": "string",
- "vendor": "string",
- "name": "string",
- "type_name": "string",
- "type_value": "string",
- "template": {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Retrieves the catalog for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
[- {
- "info": { },
- "initialize": { },
- "template": "string",
- "vendor": "string",
- "version": 0
}
]Creates a new wizard.
+| name | string Name of the template. + |
Array of objects or null (WizardSteps) |
{- "name": "string",
- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
]
}{- "vendor": "string",
- "name": "string",
- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}[- {
- "vendor": "string",
- "name": "string",
- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}
]Retrieves a wizard for the specified template.
+| name required | string The name of the template. + |
{- "vendor": "string",
- "name": "string",
- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Updates the wizard for the specified template.
+| name required | string The name of the template. + |
| id required | string ID of the wizard step. + |
| label required | string Label of the wizard step. + |
| title required | string Title of the wizard step. + |
| required required | boolean Mentions if the step is required. + |
| bodyText required | string Body text of the wizard step. + |
Array of objects or null (StepCopyCode) |
[- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
]{- "vendor": "string",
- "name": "string",
- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}
}
}Deletes the wizard for the specified template.
+| name required | string The name of the template. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a wizard for the specified organization and template.
+| organization_id required | string <ulid> The ID of the organization. + |
| name required | string The name of the template. + |
{- "steps": [
- {
- "id": "string",
- "label": "string",
- "title": "string",
- "required": true,
- "bodyText": "string",
- "copyCode": [
- {
- "label": "string",
- "code": [
- "string"
]
}
]
}
]
}Creates a new project option.
+| billing | object |
| defaults | object |
| enforced | object |
| initialize | object |
| plans | object (OptionsPlans) |
| regions | object (OptionsRegions) |
| sellables | object (Sellables) |
| settings | object (Settings) |
| version | number Version of the project options. + |
| type | string (OptionsType) Enum: "oem" "orgtype" "plan" "tier" "organization" "trial" The type of the project options. + |
| name | string (OptionsName) The name of the project options. + |
{- "billing": { },
- "defaults": { },
- "enforced": { },
- "initialize": { },
- "plans": { },
- "regions": { },
- "sellables": { },
- "settings": { },
- "version": 0,
- "type": "oem",
- "name": "string"
}{- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}Retrieves a list of all defined project options.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "items": [
- {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Retrieves the specified project option.
+| options_id required | string The ID of the project options. + |
{- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}Updates the specified project option.
+| options_id required | string The ID of the project options. + |
| billing | object |
| defaults | object |
| enforced | object |
| initialize | object |
| plans | object (OptionsPlans) |
| regions | object (OptionsRegions) |
| sellables | object (Sellables) |
| settings | object (Settings) |
| version | number Version of the project options. + |
{- "billing": { },
- "defaults": { },
- "enforced": { },
- "initialize": { },
- "plans": { },
- "regions": { },
- "sellables": { },
- "settings": { },
- "version": 0
}{- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}Deletes the specified project option.
+| options_id required | string The ID of the project options. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a list of project options for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| plan | string Specifies the plan. + |
| template | string Specifies the template URL. + |
| organization | string Specifies the organization option name. + |
{- "billing": { },
- "defaults": { },
- "enforced": { },
- "initialize": { },
- "plans": [
- "string"
], - "regions": [
- "string"
], - "plan_titles": { },
- "sellables": { },
- "features": { }
}Update project options for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| options required | Array of strings |
{- "options": [
- "string"
]
}{- "id": "string",
- "type": "fixed",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "namespace": "string",
- "name": "string",
- "label": "string",
- "country": "st",
- "capabilities": [
- "string"
], - "vendor": "string",
- "netsuite_id": "string",
- "billing_account_id": "string",
- "billing_legacy": true,
- "security_contact": "user@example.com",
- "notes": "string",
- "status": "active",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "href": "string"
}, - "update": {
- "href": "string",
- "method": "string"
}, - "delete": {
- "href": "string",
- "method": "string"
}, - "members": {
- "href": "string"
}, - "create-member": {
- "href": "string",
- "method": "string"
}, - "address": {
- "href": "string"
}, - "profile": {
- "href": "string"
}, - "payment-source": {
- "href": "string"
}, - "orders": {
- "href": "string"
}, - "vouchers": {
- "href": "string"
}, - "apply-voucher": {
- "href": "string",
- "method": "string"
}, - "subscriptions": {
- "href": "string"
}, - "create-subscription": {
- "href": "string",
- "method": "string"
}, - "estimate-subscription": {
- "href": "string"
}, - "mfa-enforcement": {
- "href": "string"
}
}
}Retrieves a list of API tokens associated with a single user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "mfa_on_creation": true,
- "token": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_used_at": "2019-08-24T14:15:22Z"
}
]Creates an API token
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| name required | string The token name. + |
{- "name": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "mfa_on_creation": true,
- "token": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_used_at": "2019-08-24T14:15:22Z"
}Retrieves the specified API token.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| token_id required | string <uuid> The ID of the token. + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "mfa_on_creation": true,
- "token": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "last_used_at": "2019-08-24T14:15:22Z"
}Deletes an API token
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| token_id required | string <uuid> The ID of the token. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a list of connections associated with a single user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
[- {
- "provider": "string",
- "provider_type": "string",
- "is_mandatory": true,
- "subject": "string",
- "email_address": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Retrieves the specified connection.
+| provider required | string The name of the federation provider. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "provider": "string",
- "provider_type": "string",
- "is_mandatory": true,
- "subject": "string",
- "email_address": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Deletes the specified connection.
+| provider required | string The name of the federation provider. + |
| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}List permissions granted to users or teams.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 1000 ] Default: null Determines the number of items to show. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Enum: "created_at" "-created_at" "updated_at" "-updated_at" Allows sorting by a single field. |
{- "items": [
- {
- "principal_id": "string",
- "principal_type": "user",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Allows creating, updating or deleting multiple grants in a single request.
+Array of objects The grant objects to create. + | |
Array of objects The grant objects whose permissions will be updated. + | |
Array of objects The grant objects to be merged. +If matching grants exist, their permissions will be merged. +If not, new grants will be created. + | |
Array of objects Fields used to match and delete grants or their permissions. +The caller can specify just the principal_id/principal_type, resource_id/resource_type, and/or an organization_id. +Additionally, permissions can be specified in case they are being deleted rather than entire grants. + |
{- "create": [
- {
- "principal_id": "string",
- "principal_type": "user",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
]
}
], - "update": [
- {
- "principal_id": "string",
- "principal_type": "user",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
]
}
], - "merge": [
- {
- "principal_id": "string",
- "principal_type": "user",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
]
}
], - "clear": [
- {
- "principal_id": "string",
- "principal_type": "user",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
]
}
]
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}List extended access to the given project, having access of individual users and users from team.
+| project_id required | string The ID of the project. + |
object (StringFilter) Allows filtering by | |
object Allows filtering by |
{- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "display_name": "string",
- "email": "string",
- "project_id": "string",
- "organization_id": "string",
- "permissions": [
- "string"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}List extended access of the given user, which includes both individual and team access to project and organization.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by |
{- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "resource_id": "string",
- "resource_type": "project",
- "organization_id": "string",
- "permissions": [
- "string"
], - "granted_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Get the user's access document. Intended only for fallback checks, e.g. for SSH access.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "access": { },
- "access_id": "string",
- "deactivated": true
}List number of users per access level (admin or viewer) within the organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "items": {
- "admins": 0,
- "viewers": 0,
- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "level": "admin"
}
]
}
}Multi-factor authentication (MFA) requires the user to present two (or more) types of evidence (or factors) to prove their identity.
+For example, the evidence might be a password and a device-generated code, which show the user has the knowledge factor ("something you know") +as well as the possession factor ("something you have"). In this way MFA offers good protection against the compromise of any single factor, +such as a stolen password.
+Using the MFA API you can set up time-based one-time passcodes (TOTP), which can be generated on a single registered device ("something you have") such as a mobile phone.
+Retrieves TOTP enrollment information.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "account_name": "string",
- "secret": "string",
- "qr_code": "string"
}Confirms the given TOTP enrollment.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| secret required | string The secret seed for the enrollment + |
| passcode required | string TOTP passcode for the enrollment + |
{- "secret": "string",
- "passcode": "string"
}{- "recovery_codes": [
- "string"
]
}Withdraws from the TOTP enrollment.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves MFA settings for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "enforce_mfa": true
}Enables MFA enforcement for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Disables MFA enforcement for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Sends a reminder about setting up MFA to the specified organization members.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| user_ids | Array of strings <uuid> [ items <uuid > ] The organization members. + |
{- "user_ids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "property1": {
- "code": 0,
- "message": "string"
}, - "property2": {
- "code": 0,
- "message": "string"
}
}Retrieve information about the currently logged-in user (the user associated with the access token).
+{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "username": "string",
- "display_name": "string",
- "status": 0,
- "mail": "user@example.com",
- "ssh_keys": [
- {
- "key_id": 0,
- "uid": 0,
- "fingerprint": "string",
- "title": "string",
- "value": "string",
- "changed": "string"
}
], - "has_key": true,
- "projects": [
- {
- "id": "string",
- "name": "string",
- "title": "string",
- "cluster": "string",
- "cluster_label": "string",
- "region": "string",
- "region_label": "string",
- "uri": "string",
- "endpoint": "string",
- "license_id": 0,
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "plan": "string",
- "subscription_id": 0,
- "status": "string",
- "vendor": "string",
- "vendor_label": "string",
- "vendor_website": "string",
- "vendor_resources": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "sequence": 0,
- "roles": [
- "string"
], - "picture": "string",
- "tickets": { },
- "trial": true,
- "current_trial": [
- {
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "spend_remaining": "string",
- "expiration": "2019-08-24T14:15:22Z"
}
]
}Retrieves a list of users updated since the specified date.
+| updated_since | string <date-time> Example: updated_since=2014-04-01T00:00:00Z |
| after | string The pagination cursor. + |
| count | integer [ 1 .. 1000 ] Default: null The number of users to retrieve. + |
[- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}
]Back-channel registration for user import.
+| username required | string |
| email_address required | string <email> |
| first_name | string |
| last_name | string |
object Login credentials for the user being created + |
{- "username": "string",
- "email_address": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "credentials": {
- "provider": {
- "name": "string",
- "subject": "string"
}
}
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}Retrieves the current user, determined from the used access token.
+{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}Retrieves a user matching the specified email address.
+| email required | string <email> Example: hello@example.com The user's email address. + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}Retrieves the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}Updates the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| username | string The user's username. + |
| first_name | string The user's first name. + |
| last_name | string The user's last name. + |
| picture | string <uri> The user's picture. + |
| company | string The user's company. + |
| website | string <uri> The user's website. + |
| country | string = 2 characters The user's country (2-letter country code). + |
{- "username": "string",
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "deactivated": true,
- "namespace": "string",
- "username": "string",
- "email": "user@example.com",
- "email_verified": true,
- "first_name": "string",
- "last_name": "string",
- "company": "string",
- "country": "st",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "consented_at": "2019-08-24T14:15:22Z",
- "consent_method": "opt-in"
}Deletes the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Reactivates the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Deactivates the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Requests a reset of the user's email address. A confirmation email will be sent to the new address when the request is accepted.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| email_address required | string <email> |
{- "email_address": "user@example.com"
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Requests a reset of the user's password. A password reset email will be sent to the user when the request is accepted.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves the identity analysis of the specified user.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "normalized_email_domain": "string",
- "normalized_email_count": 0,
- "normalized_email_deactivated_count": 0,
- "phone_number_country": "string",
- "phone_number_hash": "string",
- "phone_number_count": 0
}Returns configuration rules for a specific email address or domain.
+| pattern required | string <email> Example: hello@example.com The email address or domain to check against internal rules. + |
{- "blocked": true,
- "mandatory_sso_provider": "string"
}{- "count": 0,
- "profiles": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "active",
- "display_name": "string",
- "email": "user@example.com",
- "username": "string",
- "type": "user",
- "picture": "string",
- "company_type": "string",
- "company_name": "string",
- "currency": "string",
- "vat_number": "string",
- "company_role": "string",
- "website_url": "string",
- "new_ui": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "agency_partner_tier": "registered",
- "account_restricted": true,
- "marketing": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "billing_contact": "user@example.com",
- "current_trial": {
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "current": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend_remaining": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string",
- "unlimited": true
}, - "projects": {
- "id": "string",
- "name": "string",
- "total": {
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string",
- "formatted": "string"
}
}, - "pending_verification": "credit-card",
- "model": "string",
- "days_remaining": 0
}, - "payment_methods": [
- "prepaid"
], - "invoiced": true,
- "tax_exempt": true,
- "extra_regions": [
- "string"
]
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}| userId required | string The UUID of the user + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "active",
- "display_name": "string",
- "email": "user@example.com",
- "username": "string",
- "type": "user",
- "picture": "string",
- "company_type": "string",
- "company_name": "string",
- "currency": "string",
- "vat_number": "string",
- "company_role": "string",
- "website_url": "string",
- "new_ui": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "agency_partner_tier": "registered",
- "account_restricted": true,
- "marketing": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "billing_contact": "user@example.com",
- "current_trial": {
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "current": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend_remaining": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string",
- "unlimited": true
}, - "projects": {
- "id": "string",
- "name": "string",
- "total": {
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string",
- "formatted": "string"
}
}, - "pending_verification": "credit-card",
- "model": "string",
- "days_remaining": 0
}, - "payment_methods": [
- "prepaid"
], - "invoiced": true,
- "tax_exempt": true,
- "extra_regions": [
- "string"
]
}Update a user profile, supplying one or more key/value pairs to to change.
+| userId required | string The UUID of the user + |
| display_name | string The user's display name. + |
| username | string The user's username. + |
| current_password | string The user's current password. + |
| password | string The user's new password. + |
| company_type | string The company type. + |
| company_name | string The name of the company. + |
| vat_number | string The vat number of the user. + |
| company_role | string The role of the user in the company. + |
| marketing | boolean Flag if the user agreed to receive marketing communication. + |
| ui_colorscheme | string The user's chosen color scheme for user interfaces. Available values are 'light' and 'dark'. + |
| default_catalog | string The URL of a catalog file which overrides the default. + |
| project_options_url | string The URL of an account-wide project options file. + |
| picture | string Url of the user's picture. + |
{- "display_name": "string",
- "username": "string",
- "current_password": "string",
- "password": "string",
- "company_type": "string",
- "company_name": "string",
- "vat_number": "string",
- "company_role": "string",
- "marketing": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "picture": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "active",
- "display_name": "string",
- "email": "user@example.com",
- "username": "string",
- "type": "user",
- "picture": "string",
- "company_type": "string",
- "company_name": "string",
- "currency": "string",
- "vat_number": "string",
- "company_role": "string",
- "website_url": "string",
- "new_ui": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "agency_partner_tier": "registered",
- "account_restricted": true,
- "marketing": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "billing_contact": "user@example.com",
- "current_trial": {
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "current": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend_remaining": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string",
- "unlimited": true
}, - "projects": {
- "id": "string",
- "name": "string",
- "total": {
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string",
- "formatted": "string"
}
}, - "pending_verification": "credit-card",
- "model": "string",
- "days_remaining": 0
}, - "payment_methods": [
- "prepaid"
], - "invoiced": true,
- "tax_exempt": true,
- "extra_regions": [
- "string"
]
}| userId required | string The UUID of the user + |
{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string",
- "metadata": {
- "required_fields": [
- "string"
], - "field_labels": { },
- "show_vat": true
}
}Update a user address, supplying one or more key/value pairs to to change.
+| userId required | string The UUID of the user + |
| country | string <ISO ALPHA-2> Two-letter country codes are used to represent countries and states + |
| name_line | string The full name of the user + |
| premise | string Premise (i.e. Apt, Suite, Bldg.) + |
| sub_premise | string Sub Premise (i.e. Suite, Apartment, Floor, Unknown. + |
| thoroughfare | string The address of the user + |
| administrative_area | string <ISO ALPHA-2> The administrative area of the user address + |
| sub_administrative_area | string The sub-administrative area of the user address + |
| locality | string The locality of the user address + |
| dependent_locality | string The dependant_locality area of the user address + |
| postal_code | string The postal code area of the user address + |
{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string",
- "metadata": {
- "required_fields": [
- "string"
], - "field_labels": { },
- "show_vat": true
}
}Retrieve all SSH keys associated with a single user, as specified by the user's UUID.
+| uuid required | string <uuid> The UUID of the owner. + |
[- {
- "fingerprint": "string",
- "value": "string"
}
]| value required | string The value of the ssh key. + |
| title | string The title of the ssh key. + |
| uuid | string The uuid of the user. + |
{- "value": "string",
- "title": "string",
- "uuid": "string"
}{- "key_id": 0,
- "uid": 0,
- "fingerprint": "string",
- "title": "string",
- "value": "string",
- "changed": "string"
}{- "count": 0,
- "prepayment": [
- {
- "organization_id": "string",
- "balance": { },
- "last_updated_at": "2019-08-24T14:15:22Z",
- "sufficient": true,
- "fallback": "string"
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}Estimates the total spend for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "total": "string",
- "sub_total": "string",
- "vouchers": "string",
- "user_licenses": {
- "base": {
- "count": 0,
- "total": "string",
- "list": {
- "admin_user": {
- "count": 0,
- "total": "string"
}, - "viewer_user": {
- "count": 0,
- "total": "string"
}
}
}, - "user_management": {
- "count": 0,
- "total": "string",
- "list": {
- "standard_management_user": {
- "count": 0,
- "total": "string"
}, - "advanced_management_user": {
- "count": 0,
- "total": "string"
}
}
}
}, - "user_management": "string",
- "support_level": "string",
- "subscriptions": {
- "total": "string",
- "list": [
- {
- "license_id": "string",
- "project_title": "string",
- "total": "string",
- "usage": {
- "cpu": 0,
- "memory": 0,
- "storage": 0,
- "environments": 0
}
}
]
}
}Retrieves a list of all scheduled dunning actions for an organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "date": "string",
- "days_until": "string",
- "type": "none",
- "order_id": "string",
- "uid": "string"
}
]
}Retrieves billing alert configuration for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "mode": "string"
}
}Updates billing alert configuration for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
| active | boolean Whether the billing alert should be active or not. + |
object The configuration for billing alerts. + |
{- "active": true,
- "config": {
- "threshold": 0,
- "mode": "string"
}
}{- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "mode": "string"
}
}Retrieves prepayment information for the specified organization, if applicable.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "prepayment": {
- "prepayment": {
- "organization_id": "string",
- "balance": {
- "formatted": "string",
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "last_updated_at": "string",
- "sufficient": true,
- "fallback": "string"
}
}, - "_links": {
- "self": {
- "href": "string"
}, - "transactions": {
- "href": "string"
}
}
}Retrieves a list of prepayment transactions for the specified organization, if applicable.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "count": 0,
- "transactions": [
- {
- "order_id": "string",
- "message": "string",
- "status": "string",
- "amount": {
- "formatted": "string",
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "created": "string",
- "updated": "string",
- "expire_date": "string"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}, - "prepayment": {
- "href": "string"
}
}
}Each project is represented by a subscription that holds the plan information. +These endpoints can be used to go to a larger plan, add more storage, or subscribe to +optional features.
+Retrieve all caps for a project.
+| subscriptionId required | string The ID of the subscription + |
{- "project_caps": [
- {
- "envName": "string",
- "capsType": "string",
- "resource_preset": "string",
- "storage": 0,
- "environments": 0,
- "resources": {
- "cpu": 0,
- "memory": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}List all caps of a particular type for a particular project.
+| subscriptionId required | string The ID of the subscription + |
| capsType required | string Value: "env-type" The type of the caps + |
{- "project_caps": [
- {
- "envName": "string",
- "capsType": "string",
- "resource_preset": "string",
- "storage": 0,
- "environments": 0,
- "resources": {
- "cpu": 0,
- "memory": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}Set new caps of a type for a project.
+| subscriptionId required | string The ID of the subscription + |
| capsType required | string Value: "env-type" The type of the caps + |
| resource_preset | string The resource preset for the project caps. + |
| name | any Enum: "development" "staging" "production" The environment type name. + |
| cpu | number The cpu value. + |
| memory | integer The memory value. + |
| storage | integer The storage value. + |
| environments | integer The environments value. + |
{- "resource_preset": "string",
- "name": "development",
- "cpu": 0,
- "memory": 0,
- "storage": 0,
- "environments": 0
}{- "envName": "string",
- "capsType": "string",
- "resource_preset": "string",
- "storage": 0,
- "environments": 0,
- "resources": {
- "cpu": 0,
- "memory": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}For a particular project, retrieve a list of caps of a type for a single environment.
+| subscriptionId required | string The ID of the subscription + |
| capsType required | string Value: "env-type" The type of the caps + |
| envName required | string Enum: "development" "staging" "production" The name of the environment type + |
{- "envName": "string",
- "capsType": "string",
- "resource_preset": "string",
- "storage": 0,
- "environments": 0,
- "resources": {
- "cpu": 0,
- "memory": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}Delete all caps of a type for a project.
+| subscriptionId required | string The ID of the subscription + |
| capsType required | string Value: "env-type" The type of the caps + |
| envName required | string Enum: "development" "staging" "production" The name of the environment type + |
Update a project environment caps of a particular type.
+| subscriptionId required | string The ID of the subscription + |
| capsType required | string Value: "env-type" The type of the caps + |
| envName required | string Enum: "development" "staging" "production" The name of the environment type + |
| resource_preset | string The resource preset. + |
| cpu | number The cpu value. + |
| memory | integer The memory value. + |
| storage | integer The storage value. + |
| environments | integer The maximum number of environments. + |
{- "resource_preset": "string",
- "cpu": 0,
- "memory": 0,
- "storage": 0,
- "environments": 0
}{- "envName": "string",
- "capsType": "string",
- "resource_preset": "string",
- "storage": 0,
- "environments": 0,
- "resources": {
- "cpu": 0,
- "memory": 0
}, - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}List the caps associated with the various plan sizes
+{- "caps_size": [
- {
- "id": 0,
- "name": "string",
- "type": "string",
- "cpu": 0,
- "memory": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}| region | string The machine name of the region where the project is located. Cannot be changed after project creation. + |
| project_id | string The project id. + |
| organization_id | string The organization id. + |
| plan | string Default: null Enum: "development" "standard" "medium" "large" "xlarge" "2xlarge" The plan type of the subscription. + |
{- "region": "string",
- "project_id": "string",
- "organization_id": "string",
- "plan": "development"
}{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}| subscriptionId required | string The ID of the subscription + |
{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}| subscriptionId required | string The ID of the subscription + |
{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}| subscriptionId required | string The ID of the subscription + |
{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}| subscriptionId required | string The ID of the subscription + |
| format | string Default: null Enum: "formatted" "complex" The format mode of the estimation. + |
| include_org_costs | string Default: null Enum: "0" "1" Whether to include an estimate of organization costs for a conversion. + |
{- "plan": "string",
- "resources_total": "string",
- "total": "string"
}| subscriptionId required | string The ID of the subscription + |
| plan | string Enum: "development" "standard" "medium" "large" "xlarge" "2xlarge" The plan type of the subscription. + |
| environments | integer Default: null The number of environments which can be provisioned on the project. + |
| storage | integer Default: null The total storage available to each environment, in MiB. Only multiples of 1024 are accepted as legal values. + |
| user_licenses | integer The number of user licenses. + |
| ignore_admin | boolean [Internal] Ignore admin privileges to simulate the response a customer may get + |
{- "can_update": true,
- "message": "string",
- "required_action": { }
}| subscriptionId required | string The ID of the subscription + |
| target_organization required | string [Internal] The target organization ID desired to own the project after transfer. + |
{- "can_transfer": true,
- "message": "string",
- "required_action": { }
}| organization_id required | string <ulid> The ID of the organization. + |
| plan required | string The plan type of the subscription. + |
| environments required | integer The maximum number of environments which can be provisioned on the project. + |
| storage required | integer The total storage available to each environment, in MiB. + |
| user_licenses required | integer The number of user licenses. + |
| format | string Enum: "formatted" "complex" The format of the estimation output. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "plan": "string",
- "user_licenses": "string",
- "environments": "string",
- "storage": "string",
- "total": "string",
- "options": { }
}| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "can_create": true,
- "message": "string",
- "required_action": {
- "action": "string",
- "type": "string"
}
}| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| plan required | string The plan type of the subscription. + |
| environments | integer The maximum number of environments which can be provisioned on the project. + |
| storage | integer The total storage available to each environment, in MiB. + |
| user_licenses | integer The number of user licenses. + |
| format | string Enum: "formatted" "complex" The format of the estimation output. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "plan": "string",
- "user_licenses": "string",
- "environments": "string",
- "storage": "string",
- "total": "string",
- "options": { }
}Retrieves the environment caps of a project.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
{- "type": "string",
- "name": "string",
- "cpu": 0,
- "memory": "string",
- "storage": 0,
- "environments": 0
}Creates a new environment cap for the given project.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| type required | string Value: "env-type" The type of caps (only env-type is supported at the moment). + |
| name required | string The name of the caps. + |
| storage | integer The total storage available to each environment, in MiB. + |
| environments | integer The maximum number of environments allowed for this type. + |
| memory | number The total memory available to each environment, in GiB. + |
| cpu | number The total cpu available to each environment. + |
| resource_preset | string (ResourcePreset) Enum: "Small" "Standard" "Medium" "Large" "XL" "2XL" "4XL" The resource preset. + |
{- "type": "env-type",
- "name": "string",
- "storage": 0,
- "environments": 0,
- "memory": 0,
- "cpu": 0,
- "resource_preset": "Small"
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| caps_type required | string [Internal] The type of the environment cap. + |
| env_type required | string [Internal] The environment type name. + |
{- "type": "string",
- "name": "string",
- "cpu": 0,
- "memory": "string",
- "storage": 0,
- "environments": 0
}Updates an environment cap for the given project.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| caps_type required | string [Internal] The type of the environment cap. + |
| env_type required | string [Internal] The environment type name. + |
| type required | string Value: "env-type" The type of caps (only env-type is supported at the moment). + |
| name required | string The name of the caps. + |
| storage | integer The total storage available to each environment, in MiB. + |
| environments | integer The maximum number of environments allowed for this type. + |
| memory | number The total memory available to each environment, in GiB. + |
| cpu | number The total cpu available to each environment. + |
| resource_preset | string (ResourcePreset) Enum: "Small" "Standard" "Medium" "Large" "XL" "2XL" "4XL" The resource preset. + |
{- "type": "env-type",
- "name": "string",
- "storage": 0,
- "environments": 0,
- "memory": 0,
- "cpu": 0,
- "resource_preset": "Small"
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Deletes the specified environment cap.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| caps_type required | string [Internal] The type of the environment cap. + |
| env_type required | string [Internal] The environment type name. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| caps_type required | string [Internal] The type of the environment cap. + |
{- "type": "string",
- "name": "string",
- "cpu": 0,
- "memory": "string",
- "storage": 0,
- "environments": 0
}| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| usage_groups | string A list of usage groups to retrieve current usage for. + |
| include_not_charged | boolean Whether to include not charged usage groups. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "cpu_app": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "storage_app_services": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "memory_app": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "cpu_services": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "memory_services": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "backup_storage": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "build_cpu": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "build_memory": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "egress_bandwidth": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "ingress_requests": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "logs_fwd_content_size": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "fastly_bandwidth": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}, - "fastly_requests": {
- "title": "string",
- "type": true,
- "current_usage": 0,
- "current_usage_formatted": "string",
- "not_charged": true,
- "free_quantity": 0,
- "free_quantity_formatted": "string",
- "daily_average": 0,
- "daily_average_formatted": "string"
}
}| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "available": {
- "continuous_profiling": {
- "property1": 0,
- "property2": 0
}, - "project_support_level": {
- "property1": 0,
- "property2": 0
}
}, - "current": {
- "continuous_profiling": {
- "property1": 0,
- "property2": 0
}, - "project_support_level": {
- "property1": 0,
- "property2": 0
}
}, - "upgrades_available": {
- "continuous_profiling": [
- "string"
], - "project_support_level": [
- "string"
]
}
}Retrieves current and available usage alerts.
+| organization_id required | string The ID of the organization. |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "current": [
- {
- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "unit": "string"
}
}
}
], - "available": [
- {
- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "unit": "string"
}
}
}
]
}Updates usage alerts for a subscription.
+| organization_id required | string The ID of the organization. |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
Array of objects The list of alerts to update. + |
{- "alerts": [
- {
- "id": "string",
- "active": true,
- "config": {
- "threshold": 0
}
}
]
}{- "current": [
- {
- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "unit": "string"
}
}
}
], - "available": [
- {
- "id": "string",
- "active": true,
- "alerts_sent": 0,
- "last_alert_at": "string",
- "updated_at": "string",
- "config": {
- "threshold": {
- "formatted": "string",
- "amount": 0,
- "unit": "string"
}
}
}
]
}Retrieves subscriptions for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| filter[status] | string Enum: "active" "provisioning" "provisioning failure" "suspended" "deleted" The status of the subscription. + |
| filter[id] | string Machine name of the region. + |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (DateTimeFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a subscription for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| plan | string (ProjectPlan) The project plan. + |
| project_region required | string The machine name of the region where the project is located. Cannot be changed after project creation. + |
| project_title | string The name given to the project. Appears as the title in the UI. + |
| options_url | string The URL of the project options file. + |
| options_custom | object (ProjectOptionsCustom) [Internal] Customizations at creation time integrated into project options. + |
| default_branch | string The default Git branch name for the project. + |
| environments | integer The maximum number of active environments on the project. + |
| storage | integer The total storage available to each environment, in MiB. Only multiples of 1024 are accepted as legal values. + |
| project_notes | string [Internal] The CSE notes for this project. + |
| support_tier | string (SupportTier) [Internal] The support tier for this subscription. + |
| enterprise_tag | string [Internal] The enterprise application identifier associated with this project. + |
| agency_site | boolean (AgencySite) [Internal] Whether the project is marked as as agency site. + |
| hipaa | string (HIPAA) [Internal] The HIPAA option. + |
| edgee_org_id | string (EdgeeOrgID) [Internal] The organization id of the edgee service. + |
| edgee_project_id | string (EdgeeProjectID) [Internal] The project id of the edgee service. + |
{- "plan": "string",
- "project_region": "string",
- "project_title": "string",
- "options_url": "string",
- "options_custom": { },
- "default_branch": "string",
- "environments": 0,
- "storage": 0,
- "project_notes": "string",
- "support_tier": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "hipaa": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string"
}{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}Retrieves a subscription for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}Updates a subscription for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| project_title | string (ProjectTitle) The title of the project. + |
| plan | string (ProjectPlan) The project plan. + |
| timezone | string (ProjectTimeZone) Timezone of the project. + |
| environments | integer The maximum number of environments which can be provisioned on the project. + |
| storage | integer The total storage available to each environment, in MiB. + |
| big_dev | string The development environment plan. + |
| big_dev_service | string The development service plan. + |
| backups | string The backups plan. + |
| observability_suite | string The observability suite option. + |
| blackfire | string The Blackfire integration option. + |
| continuous_profiling | string The Blackfire continuous profiling option. + |
| project_support_level | string The project uptime option. + |
| project_notes | string [Internal] The CSE notes for this project. + |
| support_tier | string (SupportTier) [Internal] The support tier for this subscription. + |
| enterprise_tag | string [Internal] The enterprise application identifier associated with this project. + |
| agency_site | boolean [Internal] Whether the project is marked as as agency site. + |
| hipaa | string [Internal] The HIPAA option. + |
| edgee_org_id | string (EdgeeOrgID) [Internal] The organization id of the edgee service. + |
| edgee_project_id | string (EdgeeProjectID) [Internal] The project id of the edgee service. + |
{- "project_title": "string",
- "plan": "string",
- "timezone": "string",
- "environments": 0,
- "storage": 0,
- "big_dev": "string",
- "big_dev_service": "string",
- "backups": "string",
- "observability_suite": "string",
- "blackfire": "string",
- "continuous_profiling": "string",
- "project_support_level": "string",
- "project_notes": "string",
- "support_tier": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "hipaa": "string",
- "edgee_org_id": "string",
- "edgee_project_id": "string"
}{- "id": "string",
- "status": "requested",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "owner_info": {
- "type": "string",
- "username": "string",
- "display_name": "string"
}, - "vendor": "string",
- "plan": "string",
- "environments": 0,
- "storage": 0,
- "user_licenses": 0,
- "project_id": "string",
- "project_endpoint": "string",
- "project_title": "string",
- "project_region": "string",
- "project_region_label": "string",
- "project_notes": "string",
- "project_ui": "string",
- "project_options": {
- "defaults": {
- "settings": { },
- "variables": { },
- "access": { },
- "capabilities": { }
}, - "enforced": {
- "settings": { },
- "capabilities": { }
}, - "regions": [
- "string"
], - "plans": [
- "string"
], - "billing": { }
}, - "options_url": "string",
- "enterprise_tag": "string",
- "agency_site": true,
- "invoiced": true,
- "support_tier": "string",
- "hipaa": true,
- "is_trial_plan": true,
- "services": [
- { }
], - "locked": true,
- "green": true
}Deletes a subscription for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| subscription_id required | string The ID of the subscription. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}These endpoints can be used to retrieve order information from our billing +system. Here you can view information about your bill for our services, +include the billed amount and a link to a PDF of the bill.
+| page | integer <int32> Page to be displayed. Defaults to 1. + |
| all | string [Internal] Add this parameter with whichever value to display all projects, otherwise, only projects owned by current user will be displayed (admins only). + |
{- "transaction": [
- {
- "id": "string",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "order_id": 0,
- "payment_method": "string",
- "message": "string",
- "status": "success",
- "remote_id": "string",
- "remote_status": "paid",
- "amount": 0,
- "currency": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}
], - "count": 0,
- "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}| id required | string The ID of the transaction + |
{- "id": "string",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "order_id": 0,
- "payment_method": "string",
- "message": "string",
- "status": "success",
- "remote_id": "string",
- "remote_status": "paid",
- "amount": 0,
- "currency": "string",
- "created": "2019-08-24T14:15:22Z",
- "updated": "2019-08-24T14:15:22Z"
}Retrieves orders for the specified organization.
+| organization_id required | string The ID of the organization. |
| filter[status] | string Enum: "completed" "past_due" "pending" "canceled" "payment_failed_soft_decline" "payment_failed_hard_decline" The status of the order. + |
| filter[total] | integer The total of the order. + |
| page | integer <int32> Page to be displayed. Defaults to 1. + |
| mode | string Value: "details" The output mode. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "status": "completed",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "address": {
- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}, - "company": "string",
- "vat_number": "string",
- "billing_period_start": "2019-08-24T14:15:22Z",
- "billing_period_end": "2019-08-24T14:15:22Z",
- "billing_period_label": {
- "formatted": "string",
- "month": "string",
- "year": "string",
- "next_month": "string"
}, - "billing_period_duration": 0,
- "paid_on": "2019-08-24T14:15:22Z",
- "total": 0,
- "total_formatted": 0,
- "components": {
- "voucher/vat/baseprice": { }
}, - "currency": "string",
- "invoice_url": "string",
- "last_refreshed": "2019-08-24T14:15:22Z",
- "invoiced": true,
- "line_items": [
- {
- "type": "project_plan",
- "license_id": 0,
- "project_id": "string",
- "product": "string",
- "sku": "string",
- "total": 0,
- "total_formatted": "string",
- "components": {
- "property1": {
- "amount": 0,
- "amount_formatted": "string",
- "display_title": "string",
- "currency": "string"
}, - "property2": {
- "amount": 0,
- "amount_formatted": "string",
- "display_title": "string",
- "currency": "string"
}
}, - "exclude_from_invoice": true
}
], - "_links": {
- "invoices": {
- "href": "string"
}
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Retrieves an order for the specified organization.
+| organization_id required | string The ID of the organization. |
| order_id required | string The ID of the order. + |
| mode | string Value: "details" The output mode. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "string",
- "status": "completed",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "address": {
- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}, - "company": "string",
- "vat_number": "string",
- "billing_period_start": "2019-08-24T14:15:22Z",
- "billing_period_end": "2019-08-24T14:15:22Z",
- "billing_period_label": {
- "formatted": "string",
- "month": "string",
- "year": "string",
- "next_month": "string"
}, - "billing_period_duration": 0,
- "paid_on": "2019-08-24T14:15:22Z",
- "total": 0,
- "total_formatted": 0,
- "components": {
- "voucher/vat/baseprice": { }
}, - "currency": "string",
- "invoice_url": "string",
- "last_refreshed": "2019-08-24T14:15:22Z",
- "invoiced": true,
- "line_items": [
- {
- "type": "project_plan",
- "license_id": 0,
- "project_id": "string",
- "product": "string",
- "sku": "string",
- "total": 0,
- "total_formatted": "string",
- "components": {
- "property1": {
- "amount": 0,
- "amount_formatted": "string",
- "display_title": "string",
- "currency": "string"
}, - "property2": {
- "amount": 0,
- "amount_formatted": "string",
- "display_title": "string",
- "currency": "string"
}
}, - "exclude_from_invoice": true
}
], - "_links": {
- "invoices": {
- "href": "string"
}
}
}These endpoints can be used to retrieve invoices from our billing system. +An invoice of type "invoice" is generated automatically every month, if the customer has active projects. +Invoices of type "credit_memo" are a result of manual action when there was a refund or an invoice correction.
+Retrieves a list of invoices for the specified organization.
+| organization_id required | string The ID of the organization. |
| filter[status] | string Enum: "paid" "charged_off" "pending" "refunded" "canceled" "refund_pending" The status of the invoice. + |
| filter[type] | string Enum: "credit_memo" "invoice" The invoice type. Use invoice for standard invoices, credit_memo for refund/credit invoices. + |
| filter[order_id] | string The order id of Invoice. + |
| page | integer <int32> Page to be displayed. Defaults to 1. + |
| all | string [Internal] Add this parameter with whichever value to display all projects, otherwise, only projects owned by current user will be displayed (admins only). + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "invoice_number": "string",
- "type": "invoice",
- "order_id": "string",
- "related_invoice_id": "string",
- "status": "paid",
- "owner": "string",
- "invoice_date": "2019-08-24T14:15:22Z",
- "invoice_due": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "changed": "2019-08-24T14:15:22Z",
- "company": "string",
- "total": 0.1,
- "address": {
- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}, - "notes": "string",
- "invoice_pdf": {
- "url": "string",
- "status": "ready"
}
}
]
}Retrieves an invoice for the specified organization.
+| invoice_id required | string The ID of the invoice. + |
| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "string",
- "invoice_number": "string",
- "type": "invoice",
- "order_id": "string",
- "related_invoice_id": "string",
- "status": "paid",
- "owner": "string",
- "invoice_date": "2019-08-24T14:15:22Z",
- "invoice_due": "2019-08-24T14:15:22Z",
- "created": "2019-08-24T14:15:22Z",
- "changed": "2019-08-24T14:15:22Z",
- "company": "string",
- "total": 0.1,
- "address": {
- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}, - "notes": "string",
- "invoice_pdf": {
- "url": "string",
- "status": "ready"
}
}| id required | string The ID of the organization discount + |
{- "id": 0,
- "organization_id": "string",
- "type": "allowance",
- "type_label": "string",
- "status": "inactive",
- "commitment": {
- "months": 0,
- "amount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "net": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}
}, - "total_months": 0,
- "discount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "config": { },
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}| id required | string The ID of the organization discount + |
| status | string Value: "deactivated" Update discount status. + |
object The configuration of the discount (if applicable) + |
{- "status": "deactivated",
- "config": {
- "discount_amount": 0,
- "discount_currency": "string",
- "commitment_amount": 0,
- "commitment_months": 0,
- "start_year": 0,
- "start_month": 0,
- "end_year": 0,
- "end_month": 0
}
}{- "id": 0,
- "organization_id": "string",
- "type": "allowance",
- "type_label": "string",
- "status": "inactive",
- "commitment": {
- "months": 0,
- "amount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "net": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}
}, - "total_months": 0,
- "discount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "config": { },
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}{- "currencies": {
- "EUR": {
- "formatted": "string",
- "amount": 0.1,
- "currency": "string",
- "currency_symbol": "string"
}, - "USD": {
- "formatted": "string",
- "amount": 0.1,
- "currency": "string",
- "currency_symbol": "string"
}, - "GBP": {
- "formatted": "string",
- "amount": 0.1,
- "currency": "string",
- "currency_symbol": "string"
}, - "AUD": {
- "formatted": "string",
- "amount": 0.1,
- "currency": "string",
- "currency_symbol": "string"
}, - "CAD": {
- "formatted": "string",
- "amount": 0.1,
- "currency": "string",
- "currency_symbol": "string"
}
}
}Retrieves all applicable discounts granted to the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": 0,
- "organization_id": "string",
- "type": "allowance",
- "type_label": "string",
- "status": "inactive",
- "commitment": {
- "months": 0,
- "amount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "net": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}
}, - "total_months": 0,
- "discount": {
- "monthly": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "commitment_period": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}, - "contract_total": {
- "formatted": "string",
- "amount": 0.1,
- "currency_code": "string",
- "currency_symbol": "string"
}
}, - "config": { },
- "start_at": "2019-08-24T14:15:22Z",
- "end_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}These endpoints can be used to retrieve vouchers associated with a particular +user as well as apply a voucher to a particular user.
+Supplmenental voucher API for handling administrative list requests.
+{- "vouchers": [
- {
- "id": 0,
- "code": "string",
- "created": "2019-08-24T14:15:22Z",
- "creator": "1dccd4a6-75d2-43aa-a088-76d941f1b60a",
- "last_updated": "2019-08-24T14:15:22Z",
- "is_applied": 0,
- "organization": "string",
- "status": 0,
- "dates": {
- "start": "string",
- "end": "string"
}, - "amount": {
- "currency": "string",
- "value": 0.1,
- "applied": 0.1,
- "remaining": 0.1,
- "pending": 0.1,
- "orders_applied_to": {
- "order_id": 0,
- "end": 0
}
}
}
]
}Retrieves vouchers for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "vouchers_total": "string",
- "vouchers_applied": "string",
- "vouchers_remaining_balance": "string",
- "currency": "string",
- "vouchers": [
- {
- "code": "string",
- "amount": "string",
- "currency": "string",
- "orders": [
- {
- "order_id": "string",
- "status": "string",
- "billing_period_start": "string",
- "billing_period_end": "string",
- "order_total": "string",
- "order_discount": "string",
- "currency": "string"
}
]
}
], - "_links": {
- "self": {
- "href": "string"
}
}
}Applies a voucher for the specified organization, and refreshes the currently open order.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| code required | string The voucher code. + |
{- "code": "string"
}{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}Retrieves a list of pricebooks for all organizations. Unless the organization is using the default pricebook, each pricebook will only list overridden prices (custom to the organization, inherited from the tier, or a combination).
+| filter[pricebook_source] | string Enum: "organization" "tier" "default" The source of the pricebook (organization, tier, default). + |
{- "count": 0,
- "pricebook": [
- {
- "id": "string",
- "pricebook_source": "string",
- "currency": "string",
- "products": { }
}
], - "_links": {
- "self": {
- "title": "string",
- "href": "string"
}, - "previous": {
- "title": "string",
- "href": "string"
}, - "next": {
- "title": "string",
- "href": "string"
}
}
}Retrieves an organization's pricebook. Unless the organization is using the default pricebook, the pricebook will only list overridden prices (custom to the organization, inherited from the tier, or a combination).
+| organization_id required | string The ULID of the organization + |
{- "id": "string",
- "pricebook_source": "string",
- "currency": "string",
- "products": { }
}Replaces an entire pricebook for an organization, or adds one if missing.
+| organization_id required | string The ULID of the organization + |
| products required | object The new pricebook (a map of {sku: price}). Prices should be specified as decimals. + |
{- "products": { }
}{- "id": "string",
- "pricebook_source": "string",
- "currency": "string",
- "products": { }
}Updates prices for one or more products of an organization.
+| organization_id required | string The ULID of the organization + |
Items (a map of {sku: price}) to update in the pricebook. Prices should be specified as decimals.
+{ }{- "id": "string",
- "pricebook_source": "string",
- "currency": "string",
- "products": { }
}| tier_id required | string Enum: "elite" "enterprise" "new" "premier" "pro" "trial" The machine name for a tier + |
| currency required | string Enum: "AUD" "CAD" "EUR" "GBP" "USD" Currency abbreviation. + |
{- "id": "string",
- "pricebook_source": "string",
- "currency": "string",
- "products": { }
}These endpoints retrieve information about which plans were assigned to a particular +project at which time.
+Retrieves plan records for the specified organization.
+| organization_id required | string The ID of the organization. |
| filter[subscription_id] | string The ID of the subscription + |
| filter[plan] | string Enum: "development" "standard" "medium" "large" "xlarge" "2xlarge" The plan type of the subscription. + |
| filter[status] | string Enum: "active" "suspended" The status of the plan record. + |
| filter[start] | string <date-time> The start of the observation period for the record. E.g. filter[start]=2018-01-01 will display all records that were active (i.e. did not end) on 2018-01-01 + |
| filter[end] | string <date-time> The end of the observation period for the record. E.g. filter[end]=2018-01-01 will display all records that were active on (i.e. they started before) 2018-01-01 + |
| filter[started_at] | string <date-time> The record's start timestamp. You can use this filter to list records started after, or before a certain time. E.g. filter[started_at][value]=2020-01-01&filter[started_at][operator]=> + |
| filter[ended_at] | string <date-time> The record's end timestamp. You can use this filter to list records ended after, or before a certain time. E.g. filter[ended_at][value]=2020-01-01&filter[ended_at][operator]=> + |
| page | integer <int32> Page to be displayed. Defaults to 1. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "owner": "534359f7-5407-4b19-ba92-c71c370022a5",
- "subscription_id": "string",
- "sku": "string",
- "plan": "string",
- "options": [
- "string"
], - "start": "2019-08-24T14:15:22Z",
- "end": "2019-08-24T14:15:22Z",
- "status": "string"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Retrieves usage records for the specified organization.
+| organization_id required | string The ID of the organization. |
| filter[subscription_id] | string The ID of the subscription + |
| filter[usage_group] | string Enum: "storage" "environments" "user_licenses" Filter records by the type of usage. + |
| filter[start] | string <date-time> The start of the observation period for the record. E.g. filter[start]=2018-01-01 will display all records that were active (i.e. did not end) on 2018-01-01 + |
| filter[started_at] | string <date-time> The record's start timestamp. You can use this filter to list records started after, or before a certain time. E.g. filter[started_at][value]=2020-01-01&filter[started_at][operator]=> + |
| page | integer <int32> Page to be displayed. Defaults to 1. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "items": [
- {
- "id": "string",
- "subscription_id": "string",
- "usage_group": "string",
- "quantity": 0,
- "start": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}| userId required | string The UUID of the user + |
[- {
- "is_owner": true,
- "created_at": "2019-08-24T14:15:22Z",
- "orders": [
- {
- "status": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "total": 0,
- "currency_code": "string"
}
]
}
]Retrieves the address for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}Updates the address for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| country | string <ISO ALPHA-2> Two-letter country codes are used to represent countries and states + |
| name_line | string The full name of the user + |
| premise | string Premise (i.e. Apt, Suite, Bldg.) + |
| sub_premise | string Sub Premise (i.e. Suite, Apartment, Floor, Unknown. + |
| thoroughfare | string The address of the user + |
| administrative_area | string <ISO ALPHA-2> The administrative area of the user address + |
| sub_administrative_area | string The sub-administrative area of the user address + |
| locality | string The locality of the user address + |
| dependent_locality | string The dependant_locality area of the user address + |
| postal_code | string The postal code area of the user address + |
{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}{- "country": "string",
- "name_line": "string",
- "premise": "string",
- "sub_premise": "string",
- "thoroughfare": "string",
- "administrative_area": "string",
- "sub_administrative_area": "string",
- "locality": "string",
- "dependent_locality": "string",
- "postal_code": "string"
}Retrieves the profile for the specified organization.
+| organization_id required | string The ID of the organization. |
| X-Platform-Vendor | string [Internal] The vendor. + |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "active",
- "display_name": "string",
- "email": "user@example.com",
- "username": "string",
- "type": "user",
- "picture": "string",
- "company_type": "string",
- "company_name": "string",
- "currency": "string",
- "vat_number": "string",
- "company_role": "string",
- "website_url": "string",
- "new_ui": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "agency_partner_tier": "registered",
- "account_restricted": true,
- "marketing": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "billing_contact": "user@example.com",
- "current_trial": {
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "current": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend_remaining": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string",
- "unlimited": true
}, - "projects": {
- "id": "string",
- "name": "string",
- "total": {
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string",
- "formatted": "string"
}
}, - "pending_verification": "credit-card",
- "model": "string",
- "days_remaining": 0
}, - "payment_methods": [
- "prepaid"
], - "invoiced": true,
- "tax_exempt": true,
- "extra_regions": [
- "string"
]
}Updates the profile for the specified organization.
+| organization_id required | string <ulid> The ID of the organization. + |
| X-Platform-Vendor | string [Internal] The vendor. + |
| default_catalog | string The URL of a catalog file which overrides the default. + |
| project_options_url | string <uri> The URL of an organization-wide project options file. + |
| security_contact | string <email> The e-mail address of a contact to whom security notices will be sent. + |
| company_name | string The company name. + |
| vat_number | string The VAT number of the company. + |
| billing_contact | string <email> The e-mail address of a contact to whom billing notices will be sent. + |
| account_tier | string [Internal] The account tier. + |
| agency_partner_tier | string [Internal] The agency partner tier. + |
| salesperson | string <uuid> [Internal] The user ID of a Platform.sh sales representative. + |
| internal_contact | Array of strings <uuid> [ items <uuid > ] [Internal] The user IDs of internal contacts. + |
{- "default_catalog": "string",
- "security_contact": "user@example.com",
- "company_name": "string",
- "vat_number": "string",
- "billing_contact": "user@example.com",
- "account_tier": "string",
- "agency_partner_tier": "string",
- "salesperson": "c83195e8-c859-4584-b73b-0617409753e8",
- "internal_contact": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "active",
- "display_name": "string",
- "email": "user@example.com",
- "username": "string",
- "type": "user",
- "picture": "string",
- "company_type": "string",
- "company_name": "string",
- "currency": "string",
- "vat_number": "string",
- "company_role": "string",
- "website_url": "string",
- "new_ui": true,
- "ui_colorscheme": "string",
- "default_catalog": "string",
- "project_options_url": "string",
- "agency_partner_tier": "registered",
- "account_restricted": true,
- "marketing": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "billing_contact": "user@example.com",
- "current_trial": {
- "active": true,
- "created": "2019-08-24T14:15:22Z",
- "description": "string",
- "expiration": "2019-08-24T14:15:22Z",
- "current": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string"
}, - "spend_remaining": {
- "formatted": "string",
- "amount": "string",
- "currency": "string",
- "currency_symbol": "string",
- "unlimited": true
}, - "projects": {
- "id": "string",
- "name": "string",
- "total": {
- "amount": 0,
- "currency_code": "string",
- "currency_symbol": "string",
- "formatted": "string"
}
}, - "pending_verification": "credit-card",
- "model": "string",
- "days_remaining": 0
}, - "payment_methods": [
- "prepaid"
], - "invoiced": true,
- "tax_exempt": true,
- "extra_regions": [
- "string"
]
}Retrieves the region and organization for the specified project.
+| project_id required | string The ID of the project. + |
{- "id": "string",
- "region": "string",
- "endpoint": "string",
- "subscription_id": "string",
- "organization_id": "string"
}Retrieves a list of users referenced by a trusted service. Clients cannot construct the URL themselves. The correct URL will be provided in the HAL links of another API response, in the _links object with a key like ref:users:0.
| in required | string The list of comma-separated user IDs generated by a trusted service. + |
| sig required | string The signature of this request generated by a trusted service. + |
{- "497f6eca-6276-4993-bfeb-53cbbbba6f08": {
- "email": "user@example.com",
- "first_name": "string",
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "last_name": "string",
- "username": "string",
- "mfa_enabled": false,
- "sso_enabled": false
}
}Retrieves a list of teams referenced by a trusted service. Clients cannot construct the URL themselves. The correct URL will be provided in the HAL links of another API response, in the _links object with a key like ref:teams:0.
| in required | string The list of comma-separated team IDs generated by a trusted service. + |
| sig required | string The signature of this request generated by a trusted service. + |
{- "01FVMKN9KHVWWVY488AVKDWHR3": {
- "id": "01FVMKN9KHVWWVY488AVKDWHR3",
- "label": "Contractors"
}
}Retrieves a list of organizations referenced by a trusted service. Clients cannot construct the URL themselves. The correct URL will be provided in the HAL links of another API response, in the _links object with a key like ref:organizations:0.
| in required | string The list of comma-separated organization IDs generated by a trusted service. + |
| sig required | string The signature of this request generated by a trusted service. + |
{- "property1": {
- "id": "string",
- "type": "string",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "name": "string",
- "label": "string",
- "vendor": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "property2": {
- "id": "string",
- "type": "string",
- "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",
- "name": "string",
- "label": "string",
- "vendor": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Retrieves a list of projects referenced by a trusted service. Clients cannot construct the URL themselves. The correct URL will be provided in the HAL links of another API response, in the _links object with a key like ref:projects:0.
| in required | string The list of comma-separated project IDs generated by a trusted service. + |
| sig required | string The signature of this request generated by a trusted service. + |
{- "property1": {
- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "status": "requested",
- "agency_site": true,
- "support_tier": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "property2": {
- "id": "string",
- "organization_id": "string",
- "subscription_id": "string",
- "region": "string",
- "title": "string",
- "type": "grid",
- "plan": "string",
- "status": "requested",
- "agency_site": true,
- "support_tier": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Retrieves a list of regions referenced by a trusted service. Clients cannot construct the URL themselves. The correct URL will be provided in the HAL links of another API response, in the _links object with a key like ref:regions:0.
| in required | string The list of comma-separated region IDs generated by a trusted service. + |
| sig required | string The signature of this request generated by a trusted service. + |
{- "property1": {
- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "code": "string",
- "provider": { },
- "datacenter": { },
- "envimpact": { },
- "compliance": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}, - "property2": {
- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "code": "string",
- "provider": { },
- "datacenter": { },
- "envimpact": { },
- "compliance": { },
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
}Retrieves a list of available regions.
+object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
object (StringFilter) Allows filtering by | |
| page[size] | integer [ 1 .. 100 ] Default: null Determines the number of items to show. + |
| page[before] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| page[after] | string Pagination cursor. This is automatically generated as necessary and provided in HAL links (_links); it should not be constructed externally. + |
| sort | string Example: sort=-updated_at Allows sorting by a single field. |
{- "regions": [
- {
- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "provider": {
- "name": "string",
- "logo": "string"
}, - "datacenter": {
- "name": "string",
- "label": "string",
- "location": "string"
}, - "environmental_impact": {
- "zone": "string",
- "carbon_intensity": "string",
- "green": true
}
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Creates a new region.
+| id required | string (RegionID) The machine name of the region where the project is located. + |
| label required | string (RegionLabel) The human-readable name of the region. + |
| zone | string (RegionZone) The geographical zone of the region. + |
| selection_label required | string (RegionSelectionLabel) The label to display when choosing between regions for new projects. + |
| project_label required | string (RegionProjectLabel) The label to display on existing projects. + |
| timezone required | string (RegionTimezone) Default timezone of the region. + |
| available required | boolean (RegionAvailable) Indicator whether or not this region is selectable during the checkout. Not available regions will never show up during checkout. + |
| private required | boolean (RegionPrivate) Indicator whether or not this platform is for private use only. + |
| endpoint required | string (RegionEndpoint) Link to the region API endpoint. + |
| code required | string (RegionCode) The code of the region + |
| provider | object (RegionProvider) Information about the region provider. + |
| datacenter required | object (RegionDataCenter) Information about the region provider data center. + |
| envimpact | object (RegionEnvImpact) Information about the region provider's environmental impact. + |
| compliance | object (RegionCompliance) Information about the region's compliance. + |
{- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "code": "string",
- "provider": { },
- "datacenter": { },
- "envimpact": { },
- "compliance": { }
}{- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "provider": {
- "name": "string",
- "logo": "string"
}, - "datacenter": {
- "name": "string",
- "label": "string",
- "location": "string"
}, - "environmental_impact": {
- "zone": "string",
- "carbon_intensity": "string",
- "green": true
}
}Retrieves the specified region.
+| region_id required | string The ID of the region. + |
{- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "provider": {
- "name": "string",
- "logo": "string"
}, - "datacenter": {
- "name": "string",
- "label": "string",
- "location": "string"
}, - "environmental_impact": {
- "zone": "string",
- "carbon_intensity": "string",
- "green": true
}
}Updates the specified region.
+| region_id required | string The ID of the region. + |
| available | boolean (RegionAvailable) Indicator whether or not this region is selectable during the checkout. Not available regions will never show up during checkout. + |
| private | boolean (RegionPrivate) Indicator whether or not this platform is for private use only. + |
| label | string (RegionLabel) The human-readable name of the region. + |
| hipaa | boolean (RegionHipaa) Indicator whether or not this region is HIPAA compliant. + |
{- "available": true,
- "private": true,
- "label": "string",
- "hipaa": true
}{- "id": "string",
- "label": "string",
- "zone": "string",
- "selection_label": "string",
- "project_label": "string",
- "timezone": "string",
- "available": true,
- "private": true,
- "endpoint": "string",
- "provider": {
- "name": "string",
- "logo": "string"
}, - "datacenter": {
- "name": "string",
- "label": "string",
- "location": "string"
}, - "environmental_impact": {
- "zone": "string",
- "carbon_intensity": "string",
- "green": true
}
}Retrieves a list of available data centers.
+[- {
- "name": "string",
- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]Creates a new data center.
+| name required | string (DataCenterName) The name of the data center. + |
| label required | string (DataCenterLabel) The label of the data center. + |
| logo required | string (DataCenterLogo) The logo of the data center. + |
| location required | string (DataCenterLocation) The location of the data center. + |
| provider required | string (DataCenterProvider) The provider of the data center. + |
| zone required | string (DataCenterZone) The environment impact zone of the data center. + |
| carbon_intensity required | integer (DataCenterCarbonIntensity) The environment impact carbon intensity of the data center. + |
| green required | boolean (DataCenterGreen) The environment impact green of the data center. + |
{- "name": "string",
- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true
}{- "name": "string",
- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Retrieves the specified data center.
+| data_center_name required | string The name of the data center. + |
{- "name": "string",
- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Updates the specified data center.
+| data_center_name required | string The name of the data center. + |
| label | string (DataCenterLabel) The label of the data center. + |
| logo | string (DataCenterLogo) The logo of the data center. + |
| location | string (DataCenterLocation) The location of the data center. + |
| provider | string (DataCenterProvider) The provider of the data center. + |
| zone | string (DataCenterZone) The environment impact zone of the data center. + |
| carbon_intensity | integer (DataCenterCarbonIntensity) The environment impact carbon intensity of the data center. + |
| green | boolean (DataCenterGreen) The environment impact green of the data center. + |
{- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true
}{- "name": "string",
- "label": "string",
- "logo": "string",
- "location": "string",
- "provider": "string",
- "zone": "string",
- "carbon_intensity": 0,
- "green": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}Deletes the specified data center.
+| data_center_name required | string The name of the data center. + |
{- "status": "string",
- "message": "string",
- "code": 0,
- "detail": { },
- "title": "string"
}| projectId required | string[a-z0-9]+ |
| environmentId required | string.+ |
| from required | integer <timestamp> |
| to required | integer <timestamp> |
{- "_grain": 10,
- "_from": 0,
- "_to": 0,
- "_project_id": "string",
- "_environment_id": "string",
- "_environment_type": "string",
- "_branch_machine_name": "string",
- "_top_urls_count": 10,
- "data": {
- "urls": {
- "property1": {
- "url": "string",
- "method": "GET",
- "impact": 0.1,
- "average": 0.1,
- "p_50": 0.1,
- "p_96": 0.1,
- "count": 0
}, - "property2": {
- "url": "string",
- "method": "GET",
- "impact": 0.1,
- "average": 0.1,
- "p_50": 0.1,
- "p_96": 0.1,
- "count": 0
}
}, - "timelines": [
- {
- "timestamp": 0,
- "request_size": 0,
- "response_size": 0,
- "urls": {
- "property1": {
- "count": 0,
- "impact": 0.1
}, - "property2": {
- "count": 0,
- "impact": 0.1
}
}, - "codes": {
- "UNKNOWN": 0,
- "1XX": 0,
- "2XX": 0,
- "3XX": 0,
- "4XX": 0,
- "5XX": 0
}
}
]
}
}| projectId required | string[a-z0-9]+ |
| environmentId required | string.+ |
{- "message": "string",
- "project_id": "string",
- "branch_machine_name": "string",
- "environment_id": "string",
- "environment_type": "string",
- "vendor": "upsun",
- "psh_user_identifier": "string",
- "_links": {
- "resources_by_service": {
},
}, - "retention": {
- "resources": 43200,
- "logs": 43200,
- "http_traffic": 43200,
- "continuous_profiling": 80640
}, - "data_retention": {
- "_unit": "minbute",
- "_unit_in_seconds": 60,
- "resources": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "logs": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "http_traffic": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "continuous_profiling": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}
}
}| projectId required | string[a-z0-9]+ |
| environmentId required | string.+ |
| from required | integer <timestamp> |
| to required | integer <timestamp> |
{- "_grain": 10,
- "_from": 0,
- "_to": 0,
- "_project_id": "string",
- "_environment_id": "string",
- "_branch_machine_name": "string",
- "data": [
- {
- "timestamp": 0,
- "values": [
- {
- "severity": "EMERGENCY",
- "count": 0
}
]
}
], - "filters": {
- "fields": {
- "severity": {
- "distinct_values": 3,
- "type": "string",
- "values": [
- {
- "value": "INFO",
- "count": 297
}, - {
- "value": "ERROR",
- "count": 2
}
]
}
}, - "max_applicable_filters": 45
}
}| projectId required | string[a-z0-9]+ |
| environmentId required | string.+ |
| from required | integer <timestamp> |
| to required | integer <timestamp> |
| cursor | string <ulid> |
{- "_from": 0,
- "_to": 0,
- "_order": "DESC",
- "_project_id": "string",
- "_environment_id": "string",
- "_branch_machine_name": "string",
- "_cursor": "string",
- "data": [
- {
- "ulid": "01HXYZ123456789ABCDEFGHIJK",
- "datetime": "2019-08-24T14:15:22Z",
- "severity": "EMERGENCY",
- "service": "string",
- "instance": "string",
- "host": "string",
- "command": "string",
- "unit": "string",
- "container_name": "string",
- "content": "string",
- "metadata": { }
}
], - "filters": {
- "fields": {
- "severity": {
- "distinct_values": 3,
- "type": "string",
- "values": [
- {
- "value": "INFO",
- "count": 297
}, - {
- "value": "ERROR",
- "count": 2
}
]
}
}, - "max_applicable_filters": 45
}
}| projectId required | string[a-z0-9]+ |
| environmentId required | string.+ |
{- "message": "string",
- "project_id": "string",
- "branch_machine_name": "string",
- "environment_id": "string",
- "environment_type": "string",
- "vendor": "upsun",
- "psh_user_identifier": "string",
- "_links": {
- "resources_by_service": {
},
}, - "retention": {
- "resources": 43200,
- "logs": 43200,
- "http_traffic": 43200,
- "continuous_profiling": 80640
}, - "data_retention": {
- "_unit": "minbute",
- "_unit_in_seconds": 60,
- "resources": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "logs": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "http_traffic": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}, - "continuous_profiling": {
- "retention_period": 43200,
- "max_range": 43200,
- "default_range": 43200
}
}
}These endpoints can be used to retrieve and manipulate project-level
+settings. Only the initialize property can be set by end users. It is used
+to initialize a project from an existing Git repository.
The other properties can only be set by a privileged user.
+Retrieve the global settings for a project.
+| projectId required | string |
{- "initialize": { },
- "product_name": "string",
- "product_code": "string",
- "ui_uri_template": "string",
- "variables_prefix": "string",
- "bot_email": "string",
- "application_config_file": "string",
- "project_config_dir": "string",
- "use_drupal_defaults": true,
- "use_legacy_subdomains": true,
- "development_service_size": "2XL",
- "development_application_size": "2XL",
- "enable_certificate_provisioning": true,
- "certificate_style": "ecdsa",
- "certificate_renewal_activity": true,
- "development_domain_template": "string",
- "enable_state_api_deployments": true,
- "temporary_disk_size": 0,
- "local_disk_size": 0,
- "cron_minimum_interval": 0,
- "cron_maximum_jitter": 0,
- "cron_production_expiry_interval": 0,
- "cron_non_production_expiry_interval": 0,
- "concurrency_limits": {
- "property1": 0,
- "property2": 0
}, - "flexible_build_cache": true,
- "strict_configuration": true,
- "has_sleepy_crons": true,
- "crons_in_git": true,
- "custom_error_template": "string",
- "app_error_page_template": "string",
- "environment_name_strategy": "hash",
- "data_retention": {
- "property1": {
- "max_backups": 0,
- "default_config": {
- "manual_count": 0,
- "schedule": [
- {
- "interval": "string",
- "count": 0
}
]
}
}, - "property2": {
- "max_backups": 0,
- "default_config": {
- "manual_count": 0,
- "schedule": [
- {
- "interval": "string",
- "count": 0
}
]
}
}
}, - "enable_codesource_integration_push": true,
- "enforce_mfa": true,
- "systemd": true,
- "router_gen2": true,
- "build_resources": {
- "cpu": 0.1,
- "memory": 0
}, - "outbound_restrictions_default_policy": "allow",
- "self_upgrade": true,
- "self_upgrade_latest_major": true,
- "additional_hosts": {
- "property1": "string",
- "property2": "string"
}, - "max_allowed_routes": 0,
- "max_allowed_redirects_paths": 0,
- "enable_incremental_backups": true,
- "sizing_api_enabled": true,
- "enable_cache_grace_period": true,
- "enable_zero_downtime_deployments": true,
- "enable_admin_agent": true,
- "certifier_url": "string",
- "centralized_permissions": true,
- "glue_server_max_request_size": 0,
- "persistent_endpoints_ssh": true,
- "persistent_endpoints_ssl_certificates": true,
- "enable_disk_health_monitoring": true,
- "enable_paused_environments": true,
- "enable_unified_configuration": true,
- "enable_routes_tracing": true,
- "image_deployment_validation": true,
- "support_generic_images": true,
- "enable_github_app_token_exchange": true,
- "continuous_profiling": {
- "supported_runtimes": [
- "string"
]
}, - "disable_agent_error_reporter": true,
- "requires_domain_ownership": true,
- "enable_guaranteed_resources": true,
- "git_server": {
- "push_size_hard_limit": 0
}, - "activity_logs_max_size": 0,
- "allow_manual_deployments": true,
- "allow_rolling_deployments": true,
- "allow_burst": true,
- "router_resources": {
- "baseline_cpu": 0.1,
- "baseline_memory": 0,
- "max_cpu": 0.1,
- "max_memory": 0
}
}Update one or more project-level settings.
+| projectId required | string |
| initialize | object (Initialization key) |
object or null (Data retention configuration) Data retention configuration + | |
object (Build Resources) |
{- "initialize": { },
- "data_retention": {
- "property1": {
- "max_backups": 0,
- "default_config": {
- "manual_count": 0,
- "schedule": [
- {
- "interval": "string",
- "count": 0
}
]
}
}, - "property2": {
- "max_backups": 0,
- "default_config": {
- "manual_count": 0,
- "schedule": [
- {
- "interval": "string",
- "count": 0
}
]
}
}
}, - "build_resources": {
- "cpu": 0.1,
- "memory": 0
}
}{- "status": "string",
- "code": 0
}| projectId required | string |
{ }{- "status": "string",
- "code": 0
}[Internal] These endpoints can be used to retrieve and manipulate environment-level +settings.
+This is an internal API that can only be used by privileged users.
+List environment settings (for the time being, just Chorus settings).
+| projectId required | string |
| environmentId required | string |
{- "chorus": {
- "exposed": true
}, - "enable_manual_deployments": true
}| projectId required | string |
| environmentId required | string |
| enable_manual_deployments | boolean (Is manual deployments enabled) Whether the environment uses manual deployments + |
{- "enable_manual_deployments": true
}{- "status": "string",
- "code": 0
}Upsun is capable of deploying the production environments of +projects in multiple topologies: both in clusters of containers, and +as dedicated virtual machines. This is an internal API that can +only be used by privileged users.
+The deployment target information for the project.
+| projectId required | string |
[- {
- "id": "string",
- "type": "dedicated",
- "name": "string",
- "deploy_host": "string",
- "deploy_port": 0,
- "ssh_host": "string",
- "hosts": [
- {
- "id": "string",
- "type": "core",
- "services": [
- "string"
]
}
], - "auto_mounts": true,
- "excluded_mounts": [
- "string"
], - "enforced_mounts": { },
- "auto_crons": true,
- "auto_nginx": true,
- "maintenance_mode": true,
- "guardrails_phase": 0
}
]Set the deployment target information for a project.
+| projectId required | string |
| type required | string (Deployment target type) Enum: "dedicated" "enterprise" "local" The type of the deployment target. + |
| name required | string (Deployment target name) The name of the deployment target. + |
| enforced_mounts | object (Enforced Mounts) Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount). + |
{- "type": "dedicated",
- "name": "string",
- "enforced_mounts": { }
}{- "status": "string",
- "code": 0
}Get a single deployment target configuration of a project.
+| projectId required | string |
| deploymentTargetConfigurationId required | string |
{- "id": "string",
- "type": "dedicated",
- "name": "string",
- "deploy_host": "string",
- "deploy_port": 0,
- "ssh_host": "string",
- "hosts": [
- {
- "id": "string",
- "type": "core",
- "services": [
- "string"
]
}
], - "auto_mounts": true,
- "excluded_mounts": [
- "string"
], - "enforced_mounts": { },
- "auto_crons": true,
- "auto_nginx": true,
- "maintenance_mode": true,
- "guardrails_phase": 0
}| projectId required | string |
| deploymentTargetConfigurationId required | string |
| type required | string (Deployment target type) Enum: "dedicated" "enterprise" "local" The type of the deployment target. + |
| name required | string (Deployment target name) The name of the deployment target. + |
| enforced_mounts | object (Enforced Mounts) Mounts which are always injected into pushed (e.g. enforce /var/log to be a local mount). + |
{- "type": "dedicated",
- "name": "string",
- "enforced_mounts": { }
}{- "status": "string",
- "code": 0
}Delete a single deployment target configuration associated with a specific project.
+| projectId required | string |
| deploymentTargetConfigurationId required | string |
{- "status": "string",
- "code": 0
}These endpoints can be used to retrieve low-level information and interact with the +core component of Upsun infrastructure.
+This is an internal API that can only be used by privileged users.
+Triggers a git garbage collection operation which runs a number of +housekeeping tasks within the repository, such as compressing file +revisions (to reduce disk space and increase performance), removing +unreachable objects, packing refs, pruning reflog, rerere metadata, +or stale working trees.
+| projectId required | string |
{- "status": "string",
- "code": 0
}[Internal] These endpoints can be used to manage container settings like CPU and memory.
+This is an internal API that can only be used by privileged users.
+All container profiles available for the project.
+Each profile is an object with a list of named pairs of CPU and memory that can be used by a service to define its resources.
+They are used if sizing-api-enabled is set.
| projectId required | string |
[- {
- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "sizes": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}
]Add a new profile to the collection and make it available for sizing if flex-plans is enabled.
| projectId required | string |
| name required | string (Name) Container profile name + |
required | object (Sizes) Container profile sizes + |
{- "name": "string",
- "sizes": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}{- "status": "string",
- "code": 0
}Retrieve a selected container profile based on containerProfileId.
+The profile is an object with list of named pairs of CPU and memory used for sizing purposes.
| projectId required | string |
| containerProfileId required | string |
{- "id": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "name": "string",
- "sizes": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}| projectId required | string |
| containerProfileId required | string |
| name | string (Name) Container profile name + |
object (Sizes) Container profile sizes + |
{- "name": "string",
- "sizes": {
- "property1": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}, - "property2": {
- "cpu": 0.1,
- "memory": 0,
- "cpu_type": "guaranteed"
}
}
}{- "status": "string",
- "code": 0
}Retrieves risk factors for the user and calculates a score (e.g. for phone verification trigger).
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| token_iat | string <date-time> Timestamp extracted from user token. Used to refresh phone_number_verified status when needed. + |
| force_refresh | boolean Whether the phone_number_verified flag should be refreshed. Should be set when KYC is called right after phone verification. + |
{- "risk": "low",
- "phone_number_verified": true,
- "request_verification_staff": true
}Get verbose explanation of risk score for investigation purposes.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "risk": {
- "score": {
- "risk": "low",
- "phone_number_verified": true,
- "request_verification_staff": false,
- "synced_at": "2019-08-24T14:15:22Z"
}, - "explanation": [
- "User has verified phone number: No further checks"
]
}, - "trial-eligibility": {
- "trial_eligible": false,
- "explanation": [
- "Duplicate accounts found - normalized email (38), phone number (29): Not eligible for free trial"
]
}, - "normalized_email_count": 38,
- "phone_number_count": 29
}Checks whether a user has already had a free trial using duplicate accounts.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "trial_eligible": true
}Checks whether a user has been verified by staff, why, when and by whom.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "verified": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "notes": "User unable to receive SMS, but was manually checked and is legit."
}Updates user's staff verification status.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| verified | boolean Whether the user should be marked as staff verified. + |
| notes | string Reasons user is being verified. + |
{- "verified": true,
- "notes": "User unable to receive SMS, but was manually checked and is legit."
}{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "verified": true,
- "updated_at": "2019-08-24T14:15:22Z",
- "updated_by": "deea00dc-b6b6-4412-a483-26ac61e1f6fe",
- "notes": "User unable to receive SMS, but was manually checked and is legit."
}Updates user's suspicious status.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| suspicious | boolean Whether the user should be marked as suspicious. + |
| notes | string Reasons user is being marked as suspicious. + |
| level | integer 1 - Requires phone verification, 2 - Requires staff verification + |
{- "suspicious": true,
- "notes": "Typical email pattern.",
- "level": 1
}{- "success": true
}Get card testing stats for a specific user for a specified period
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "attempts": {
- "failure": 0,
- "pending": 0,
- "success": 0
}, - "cards": {
- "failure": 0,
- "pending": 0,
- "success": 0
}, - "countries": 0,
- "period": "daily"
}Get the IPQS based email address evaluation and suggested action for a specific user
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| force_refresh | boolean Whether to request a fresh email score in case none is available. + |
{- "score": {
- "action": "verify",
- "reason": "Leaked email"
}, - "info": {
- "fraud_score": 55,
- "valid": true,
- "leaked": true,
- "disposable": false,
- "catchall": false,
- "recent_abuse": false,
- "first_seen": "2019-08-24T14:15:22Z",
- "domain_age": "2019-08-24T14:15:22Z",
- "common": true,
- "known_days": 2
}
}Get the IPQS based IP address evaluation and suggested action for a specific user
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
| force_refresh | boolean Whether to request a fresh IP score in case none has been requested yet. + |
{- "min_risk": 5,
- "max_risk": 50,
- "avg_risk": 25,
- "recent_abuse": false,
- "crawler": false,
- "proxy": false,
- "vpn": false,
- "tor": false,
- "active_vpn": false,
- "active_tor": false,
- "bot_status": false,
- "num_ips": 22,
- "high_risk_country": false,
- "abuse_velocity": "none",
- "clean": false,
- "score": {
- "action": "verify",
- "reason": "Leaked email"
}
}Get whether user is allowed to create an organization based on vendor.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "allow": true
}Get evaluation of whether the customer is new to us or has a previous history.
+| user_id required | string <uuid> Example: d81c8ee2-44b3-429f-b944-a33ad7437690 The ID of the user. + |
{- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "score": "new",
- "reason": "string"
}Create country specific fraud settings
+| country_code | string 2 digit country code. + |
| high_risk | boolean Whether the country is flagged as high risk. + |
{- "country_code": "string",
- "high_risk": true
}[- [
- {
- "country_code": "string",
- "high_risk": true
}
]
]Update country specific fraud settings
+| country required | string The 2 digit country code. + |
| high_risk | boolean Whether the country is flagged as high risk. + |
{- "high_risk": true
}[- [
- {
- "country_code": "string",
- "high_risk": true
}
]
]Get IPQS based email risk scores
+| synced_at | string <date-time> Retrieve score synced after a specific date and time + |
| after | string The pagination cursor. + |
| count | integer [ 1 .. 1000 ] Default: null The number of scores to retrieve. + |
{- "items": [
- {
- "email": "user@example.com",
- "synced_at": "2019-08-24T14:15:22Z",
- "valid": true,
- "disposable": true,
- "deliverability": "low",
- "catch_all": true,
- "leaked": true,
- "suspect": true,
- "smtp_score": -1,
- "overall_score": 4,
- "first_name": "string",
- "common": true,
- "generic": true,
- "dns_valid": true,
- "honeypot": true,
- "spam_trap_score": "none",
- "recent_abuse": true,
- "fraud_score": 100,
- "frequent_complainer": true,
- "suggested_domain": "string",
- "first_seen": "2019-08-24T14:15:22Z",
- "domain_age": "2019-08-24T14:15:22Z",
- "sanitized_email": "user@example.com"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Get history of user scores returned by KYC
+| filter[score] | string Enum: "risk" "email" "ip" "trial-eligibility" "card-testing-hourly" "card-testing-daily" "card-testing-weekly" "card-testing-all_time" Filter by score type + |
| filter[user_id] | string <uuid> Filter by user ID. + |
| filter[revision_id][gt] | integer Filter by revision ID (greater than). + |
| filter[revision_id][gte] | integer Filter by revision ID (greater than or equal). + |
| filter[revision_id][lt] | integer Filter by revision ID (lower than). + |
| filter[revision_id][lte] | integer Filter by revision ID (lower than or equal). + |
| after | string The pagination cursor. + |
| before | string The pagination cursor. + |
| count | integer [ 1 .. 1000 ] Default: null The number of scores to retrieve. + |
{- "items": [
- {
- "user_id": "a169451c-8525-4352-b8ca-070dd449a1a5",
- "score": "risk",
- "revision_id": 0,
- "data": { },
- "created_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Get history of organization scores returned by KYC
+| filter[score] | string Enum: "payment-profile" "trial-eligibility" "payment-score" Filter by score type. + |
| filter[organization_id] | string <ulid> Filter by organization ID. + |
| filter[revision_id][gt] | integer Filter by revision ID (greater than). + |
| filter[revision_id][gte] | integer Filter by revision ID (greater than or equal). + |
| filter[revision_id][lt] | integer Filter by revision ID (lower than). + |
| filter[revision_id][lte] | integer Filter by revision ID (lower than or equal). + |
| after | string The pagination cursor. + |
| before | string The pagination cursor. + |
| count | integer [ 1 .. 1000 ] Default: null The number of scores to retrieve. + |
{- "items": [
- {
- "organization_id": "string",
- "score": "payment-profile",
- "revision_id": 0,
- "data": { },
- "created_at": "2019-08-24T14:15:22Z"
}
], - "_links": {
- "self": {
- "href": "string"
}, - "previous": {
- "href": "string"
}, - "next": {
- "href": "string"
}
}
}Returns risk assessment score for organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "risk": "low",
- "phone_number_verified": true,
- "credit_card_verified": true,
- "request_verification_staff": true
}Get the payment profile of a specific organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "organization_id": "string",
- "profile": "default"
}Get the payment score of a specific organization.
+| organization_id required | string <ulid> The ID of the organization. + |
{- "min_risk": 1,
- "max_risk": 50,
- "avg_risk": 33,
- "num_disputed": 0,
- "num_success": 0,
- "num_failed": 0
}