@netlify/open-api 2.46.0 → 2.47.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +402 -0
- package/dist/swagger.json +736 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -916,10 +916,176 @@ export interface paths {
|
|
|
916
916
|
};
|
|
917
917
|
};
|
|
918
918
|
};
|
|
919
|
+
"/sites/{site_id}/database": {
|
|
920
|
+
/**
|
|
921
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
922
|
+
*
|
|
923
|
+
* Returns the database connection string for the specified site.
|
|
924
|
+
*/
|
|
925
|
+
get: operations["getSiteDatabase"];
|
|
926
|
+
/**
|
|
927
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
928
|
+
*
|
|
929
|
+
* Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
|
|
930
|
+
*/
|
|
931
|
+
post: operations["createSiteDatabase"];
|
|
932
|
+
/**
|
|
933
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
934
|
+
*
|
|
935
|
+
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
936
|
+
*/
|
|
937
|
+
delete: operations["deleteSiteDatabase"];
|
|
938
|
+
parameters: {
|
|
939
|
+
path: {
|
|
940
|
+
site_id: string;
|
|
941
|
+
};
|
|
942
|
+
};
|
|
943
|
+
};
|
|
944
|
+
"/sites/{site_id}/database/branch": {
|
|
945
|
+
/**
|
|
946
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
947
|
+
*
|
|
948
|
+
* Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.
|
|
949
|
+
*/
|
|
950
|
+
post: operations["createSiteDatabaseBranch"];
|
|
951
|
+
parameters: {
|
|
952
|
+
path: {
|
|
953
|
+
site_id: string;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
"/sites/{site_id}/database/branch/{deploy_id}": {
|
|
958
|
+
/**
|
|
959
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
960
|
+
*
|
|
961
|
+
* Returns the database branch connection string for a specific deploy.
|
|
962
|
+
*/
|
|
963
|
+
get: operations["getSiteDatabaseBranch"];
|
|
964
|
+
/**
|
|
965
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
966
|
+
*
|
|
967
|
+
* Deletes a database branch associated with a deploy.
|
|
968
|
+
*/
|
|
969
|
+
delete: operations["deleteSiteDatabaseBranch"];
|
|
970
|
+
parameters: {
|
|
971
|
+
path: {
|
|
972
|
+
site_id: string;
|
|
973
|
+
/** The deploy ID associated with the database branch */
|
|
974
|
+
deploy_id: string;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
};
|
|
978
|
+
"/sites/{site_id}/database/snapshot": {
|
|
979
|
+
/**
|
|
980
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
981
|
+
*
|
|
982
|
+
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
983
|
+
*/
|
|
984
|
+
post: operations["createSiteDatabaseSnapshot"];
|
|
985
|
+
parameters: {
|
|
986
|
+
path: {
|
|
987
|
+
site_id: string;
|
|
988
|
+
};
|
|
989
|
+
};
|
|
990
|
+
};
|
|
991
|
+
"/sites/{site_id}/database/snapshots": {
|
|
992
|
+
/**
|
|
993
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
994
|
+
*
|
|
995
|
+
* Returns all snapshots for the site's database.
|
|
996
|
+
*/
|
|
997
|
+
get: operations["listSiteDatabaseSnapshots"];
|
|
998
|
+
parameters: {
|
|
999
|
+
path: {
|
|
1000
|
+
site_id: string;
|
|
1001
|
+
};
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
"/sites/{site_id}/database/snapshot/{snapshot_id}": {
|
|
1005
|
+
/**
|
|
1006
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
1007
|
+
*
|
|
1008
|
+
* Deletes a database snapshot.
|
|
1009
|
+
*/
|
|
1010
|
+
delete: operations["deleteSiteDatabaseSnapshot"];
|
|
1011
|
+
parameters: {
|
|
1012
|
+
path: {
|
|
1013
|
+
site_id: string;
|
|
1014
|
+
/** The snapshot ID */
|
|
1015
|
+
snapshot_id: string;
|
|
1016
|
+
};
|
|
1017
|
+
};
|
|
1018
|
+
};
|
|
1019
|
+
"/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
|
|
1020
|
+
/**
|
|
1021
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
1022
|
+
*
|
|
1023
|
+
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
1024
|
+
*/
|
|
1025
|
+
post: operations["restoreSiteDatabaseSnapshot"];
|
|
1026
|
+
parameters: {
|
|
1027
|
+
path: {
|
|
1028
|
+
site_id: string;
|
|
1029
|
+
/** The snapshot ID to restore */
|
|
1030
|
+
snapshot_id: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
919
1034
|
}
|
|
920
1035
|
|
|
921
1036
|
export interface components {
|
|
922
1037
|
schemas: {
|
|
1038
|
+
/** @description Request body for creating a database */
|
|
1039
|
+
createDatabaseRequest: {
|
|
1040
|
+
/** @description The region where the database should be created. Defaults to the site's functions region if not specified. */
|
|
1041
|
+
region?: string;
|
|
1042
|
+
};
|
|
1043
|
+
/** @description Response containing the database connection string */
|
|
1044
|
+
databaseResponse: {
|
|
1045
|
+
/** @description The connection string for the database */
|
|
1046
|
+
connection_string?: string;
|
|
1047
|
+
};
|
|
1048
|
+
/** @description Request body for creating a database branch */
|
|
1049
|
+
createDatabaseBranchRequest: {
|
|
1050
|
+
/** @description The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified. */
|
|
1051
|
+
parent_branch_id?: string;
|
|
1052
|
+
/** @description The deploy ID to associate with this branch */
|
|
1053
|
+
deploy_id: string;
|
|
1054
|
+
};
|
|
1055
|
+
/** @description Response containing the database branch connection string */
|
|
1056
|
+
databaseBranchResponse: {
|
|
1057
|
+
/** @description The connection string for the database branch */
|
|
1058
|
+
connection_string?: string;
|
|
1059
|
+
};
|
|
1060
|
+
/** @description Request body for creating a database snapshot */
|
|
1061
|
+
createDatabaseSnapshotRequest: {
|
|
1062
|
+
/** @description The name of the branch to snapshot. Defaults to "production" if not specified. */
|
|
1063
|
+
branch_name?: string;
|
|
1064
|
+
/** @description An optional name for the snapshot */
|
|
1065
|
+
name?: string;
|
|
1066
|
+
};
|
|
1067
|
+
/** @description A point-in-time snapshot of a database branch */
|
|
1068
|
+
databaseSnapshot: {
|
|
1069
|
+
/** @description The unique identifier of the snapshot */
|
|
1070
|
+
id?: string;
|
|
1071
|
+
/**
|
|
1072
|
+
* Format: dateTime
|
|
1073
|
+
* @description The timestamp when the snapshot was created
|
|
1074
|
+
*/
|
|
1075
|
+
timestamp?: string;
|
|
1076
|
+
/** @description The ID of the branch that was snapshotted */
|
|
1077
|
+
source_branch_id?: string;
|
|
1078
|
+
};
|
|
1079
|
+
/** @description Response containing a list of database snapshots */
|
|
1080
|
+
databaseSnapshotsResponse: {
|
|
1081
|
+
/** @description List of database snapshots */
|
|
1082
|
+
snapshots?: components["schemas"]["databaseSnapshot"][];
|
|
1083
|
+
};
|
|
1084
|
+
/** @description Request body for restoring a database snapshot */
|
|
1085
|
+
restoreDatabaseSnapshotRequest: {
|
|
1086
|
+
/** @description The name of the branch to restore the snapshot to. Defaults to "production" if not specified. */
|
|
1087
|
+
branch_name?: string;
|
|
1088
|
+
};
|
|
923
1089
|
DeployValidationsReport: {
|
|
924
1090
|
/** @description The id of the deploy validations report */
|
|
925
1091
|
id?: string;
|
|
@@ -4676,6 +4842,242 @@ export interface operations {
|
|
|
4676
4842
|
default: components["responses"]["error"];
|
|
4677
4843
|
};
|
|
4678
4844
|
};
|
|
4845
|
+
/**
|
|
4846
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabase | `getSiteDatabase`}
|
|
4847
|
+
*
|
|
4848
|
+
* Returns the database connection string for the specified site.
|
|
4849
|
+
*/
|
|
4850
|
+
getSiteDatabase: {
|
|
4851
|
+
parameters: {
|
|
4852
|
+
path: {
|
|
4853
|
+
site_id: string;
|
|
4854
|
+
};
|
|
4855
|
+
};
|
|
4856
|
+
responses: {
|
|
4857
|
+
/** OK */
|
|
4858
|
+
200: {
|
|
4859
|
+
content: {
|
|
4860
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
4861
|
+
};
|
|
4862
|
+
};
|
|
4863
|
+
default: components["responses"]["error"];
|
|
4864
|
+
};
|
|
4865
|
+
};
|
|
4866
|
+
/**
|
|
4867
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabase | `createSiteDatabase`}
|
|
4868
|
+
*
|
|
4869
|
+
* Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.
|
|
4870
|
+
*/
|
|
4871
|
+
createSiteDatabase: {
|
|
4872
|
+
parameters: {
|
|
4873
|
+
path: {
|
|
4874
|
+
site_id: string;
|
|
4875
|
+
};
|
|
4876
|
+
};
|
|
4877
|
+
responses: {
|
|
4878
|
+
/** Database already exists */
|
|
4879
|
+
200: {
|
|
4880
|
+
content: {
|
|
4881
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
4882
|
+
};
|
|
4883
|
+
};
|
|
4884
|
+
/** Created */
|
|
4885
|
+
201: {
|
|
4886
|
+
content: {
|
|
4887
|
+
"application/json": components["schemas"]["databaseResponse"];
|
|
4888
|
+
};
|
|
4889
|
+
};
|
|
4890
|
+
default: components["responses"]["error"];
|
|
4891
|
+
};
|
|
4892
|
+
requestBody: {
|
|
4893
|
+
content: {
|
|
4894
|
+
"application/json": components["schemas"]["createDatabaseRequest"];
|
|
4895
|
+
};
|
|
4896
|
+
};
|
|
4897
|
+
};
|
|
4898
|
+
/**
|
|
4899
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabase | `deleteSiteDatabase`}
|
|
4900
|
+
*
|
|
4901
|
+
* Deletes the database and all associated branches and snapshots for the specified site.
|
|
4902
|
+
*/
|
|
4903
|
+
deleteSiteDatabase: {
|
|
4904
|
+
parameters: {
|
|
4905
|
+
path: {
|
|
4906
|
+
site_id: string;
|
|
4907
|
+
};
|
|
4908
|
+
};
|
|
4909
|
+
responses: {
|
|
4910
|
+
/** Deleted */
|
|
4911
|
+
204: never;
|
|
4912
|
+
default: components["responses"]["error"];
|
|
4913
|
+
};
|
|
4914
|
+
};
|
|
4915
|
+
/**
|
|
4916
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseBranch | `createSiteDatabaseBranch`}
|
|
4917
|
+
*
|
|
4918
|
+
* Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.
|
|
4919
|
+
*/
|
|
4920
|
+
createSiteDatabaseBranch: {
|
|
4921
|
+
parameters: {
|
|
4922
|
+
path: {
|
|
4923
|
+
site_id: string;
|
|
4924
|
+
};
|
|
4925
|
+
};
|
|
4926
|
+
responses: {
|
|
4927
|
+
/** Branch already exists for this deploy */
|
|
4928
|
+
200: {
|
|
4929
|
+
content: {
|
|
4930
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4931
|
+
};
|
|
4932
|
+
};
|
|
4933
|
+
/** Created */
|
|
4934
|
+
201: {
|
|
4935
|
+
content: {
|
|
4936
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
4939
|
+
default: components["responses"]["error"];
|
|
4940
|
+
};
|
|
4941
|
+
requestBody: {
|
|
4942
|
+
content: {
|
|
4943
|
+
"application/json": components["schemas"]["createDatabaseBranchRequest"];
|
|
4944
|
+
};
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4947
|
+
/**
|
|
4948
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/getSiteDatabaseBranch | `getSiteDatabaseBranch`}
|
|
4949
|
+
*
|
|
4950
|
+
* Returns the database branch connection string for a specific deploy.
|
|
4951
|
+
*/
|
|
4952
|
+
getSiteDatabaseBranch: {
|
|
4953
|
+
parameters: {
|
|
4954
|
+
path: {
|
|
4955
|
+
site_id: string;
|
|
4956
|
+
/** The deploy ID associated with the database branch */
|
|
4957
|
+
deploy_id: string;
|
|
4958
|
+
};
|
|
4959
|
+
};
|
|
4960
|
+
responses: {
|
|
4961
|
+
/** OK */
|
|
4962
|
+
200: {
|
|
4963
|
+
content: {
|
|
4964
|
+
"application/json": components["schemas"]["databaseBranchResponse"];
|
|
4965
|
+
};
|
|
4966
|
+
};
|
|
4967
|
+
/** Branch not found for this deploy */
|
|
4968
|
+
404: unknown;
|
|
4969
|
+
default: components["responses"]["error"];
|
|
4970
|
+
};
|
|
4971
|
+
};
|
|
4972
|
+
/**
|
|
4973
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseBranch | `deleteSiteDatabaseBranch`}
|
|
4974
|
+
*
|
|
4975
|
+
* Deletes a database branch associated with a deploy.
|
|
4976
|
+
*/
|
|
4977
|
+
deleteSiteDatabaseBranch: {
|
|
4978
|
+
parameters: {
|
|
4979
|
+
path: {
|
|
4980
|
+
site_id: string;
|
|
4981
|
+
/** The deploy ID associated with the database branch */
|
|
4982
|
+
deploy_id: string;
|
|
4983
|
+
};
|
|
4984
|
+
};
|
|
4985
|
+
responses: {
|
|
4986
|
+
/** Deleted */
|
|
4987
|
+
204: never;
|
|
4988
|
+
default: components["responses"]["error"];
|
|
4989
|
+
};
|
|
4990
|
+
};
|
|
4991
|
+
/**
|
|
4992
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/createSiteDatabaseSnapshot | `createSiteDatabaseSnapshot`}
|
|
4993
|
+
*
|
|
4994
|
+
* Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.
|
|
4995
|
+
*/
|
|
4996
|
+
createSiteDatabaseSnapshot: {
|
|
4997
|
+
parameters: {
|
|
4998
|
+
path: {
|
|
4999
|
+
site_id: string;
|
|
5000
|
+
};
|
|
5001
|
+
};
|
|
5002
|
+
responses: {
|
|
5003
|
+
/** Created */
|
|
5004
|
+
201: {
|
|
5005
|
+
content: {
|
|
5006
|
+
"application/json": components["schemas"]["databaseSnapshot"];
|
|
5007
|
+
};
|
|
5008
|
+
};
|
|
5009
|
+
default: components["responses"]["error"];
|
|
5010
|
+
};
|
|
5011
|
+
requestBody: {
|
|
5012
|
+
content: {
|
|
5013
|
+
"application/json": components["schemas"]["createDatabaseSnapshotRequest"];
|
|
5014
|
+
};
|
|
5015
|
+
};
|
|
5016
|
+
};
|
|
5017
|
+
/**
|
|
5018
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/listSiteDatabaseSnapshots | `listSiteDatabaseSnapshots`}
|
|
5019
|
+
*
|
|
5020
|
+
* Returns all snapshots for the site's database.
|
|
5021
|
+
*/
|
|
5022
|
+
listSiteDatabaseSnapshots: {
|
|
5023
|
+
parameters: {
|
|
5024
|
+
path: {
|
|
5025
|
+
site_id: string;
|
|
5026
|
+
};
|
|
5027
|
+
};
|
|
5028
|
+
responses: {
|
|
5029
|
+
/** OK */
|
|
5030
|
+
200: {
|
|
5031
|
+
content: {
|
|
5032
|
+
"application/json": components["schemas"]["databaseSnapshotsResponse"];
|
|
5033
|
+
};
|
|
5034
|
+
};
|
|
5035
|
+
default: components["responses"]["error"];
|
|
5036
|
+
};
|
|
5037
|
+
};
|
|
5038
|
+
/**
|
|
5039
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/deleteSiteDatabaseSnapshot | `deleteSiteDatabaseSnapshot`}
|
|
5040
|
+
*
|
|
5041
|
+
* Deletes a database snapshot.
|
|
5042
|
+
*/
|
|
5043
|
+
deleteSiteDatabaseSnapshot: {
|
|
5044
|
+
parameters: {
|
|
5045
|
+
path: {
|
|
5046
|
+
site_id: string;
|
|
5047
|
+
/** The snapshot ID */
|
|
5048
|
+
snapshot_id: string;
|
|
5049
|
+
};
|
|
5050
|
+
};
|
|
5051
|
+
responses: {
|
|
5052
|
+
/** Deleted */
|
|
5053
|
+
204: never;
|
|
5054
|
+
default: components["responses"]["error"];
|
|
5055
|
+
};
|
|
5056
|
+
};
|
|
5057
|
+
/**
|
|
5058
|
+
* API Reference: {@link https://open-api.netlify.com/#tag/database/operation/restoreSiteDatabaseSnapshot | `restoreSiteDatabaseSnapshot`}
|
|
5059
|
+
*
|
|
5060
|
+
* Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.
|
|
5061
|
+
*/
|
|
5062
|
+
restoreSiteDatabaseSnapshot: {
|
|
5063
|
+
parameters: {
|
|
5064
|
+
path: {
|
|
5065
|
+
site_id: string;
|
|
5066
|
+
/** The snapshot ID to restore */
|
|
5067
|
+
snapshot_id: string;
|
|
5068
|
+
};
|
|
5069
|
+
};
|
|
5070
|
+
responses: {
|
|
5071
|
+
/** OK */
|
|
5072
|
+
200: unknown;
|
|
5073
|
+
default: components["responses"]["error"];
|
|
5074
|
+
};
|
|
5075
|
+
requestBody: {
|
|
5076
|
+
content: {
|
|
5077
|
+
"application/json": components["schemas"]["restoreDatabaseSnapshotRequest"];
|
|
5078
|
+
};
|
|
5079
|
+
};
|
|
5080
|
+
};
|
|
4679
5081
|
}
|
|
4680
5082
|
|
|
4681
5083
|
export interface external {}
|
package/dist/swagger.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"swagger": "2.0",
|
|
3
3
|
"info": {
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.47.0-alpha.0",
|
|
5
5
|
"title": "Netlify's API documentation",
|
|
6
6
|
"description": "Netlify is a hosting service for the programmable web. It understands your documents and provides an API to handle atomic deploys of websites, manage form submissions, inject JavaScript snippets, and much more. This is a REST-style API that uses JSON for serialization and OAuth 2 for authentication.\n\nThis document is an OpenAPI reference for the Netlify API that you can explore. For more detailed instructions for common uses, please visit the [online documentation](https://www.netlify.com/docs/api/). Visit our Community forum to join the conversation about [understanding and using Netlify's API](https://community.netlify.com/t/common-issue-understanding-and-using-netlifys-api/160).\n\nAdditionally, we have two API clients for your convenience:\n- [Go Client](https://github.com/netlify/open-api#go-client)\n- [JS Client](https://github.com/netlify/build/tree/main/packages/js-client)",
|
|
7
7
|
"termsOfService": "https://www.netlify.com/legal/terms-of-use/",
|
|
@@ -17102,9 +17102,734 @@
|
|
|
17102
17102
|
},
|
|
17103
17103
|
"description": "Returns an AI Gateway token for a specific site"
|
|
17104
17104
|
}
|
|
17105
|
+
},
|
|
17106
|
+
"/sites/{site_id}/database": {
|
|
17107
|
+
"parameters": [
|
|
17108
|
+
{
|
|
17109
|
+
"name": "site_id",
|
|
17110
|
+
"type": "string",
|
|
17111
|
+
"in": "path",
|
|
17112
|
+
"required": true
|
|
17113
|
+
}
|
|
17114
|
+
],
|
|
17115
|
+
"post": {
|
|
17116
|
+
"operationId": "createSiteDatabase",
|
|
17117
|
+
"tags": [
|
|
17118
|
+
"database"
|
|
17119
|
+
],
|
|
17120
|
+
"description": "Creates a new database for the specified site. If a database already exists, returns the existing connection string. The database region defaults to the site's functions region if not specified.",
|
|
17121
|
+
"consumes": [
|
|
17122
|
+
"application/json"
|
|
17123
|
+
],
|
|
17124
|
+
"parameters": [
|
|
17125
|
+
{
|
|
17126
|
+
"name": "database",
|
|
17127
|
+
"in": "body",
|
|
17128
|
+
"schema": {
|
|
17129
|
+
"type": "object",
|
|
17130
|
+
"description": "Request body for creating a database",
|
|
17131
|
+
"properties": {
|
|
17132
|
+
"region": {
|
|
17133
|
+
"type": "string",
|
|
17134
|
+
"description": "The region where the database should be created. Defaults to the site's functions region if not specified."
|
|
17135
|
+
}
|
|
17136
|
+
}
|
|
17137
|
+
}
|
|
17138
|
+
}
|
|
17139
|
+
],
|
|
17140
|
+
"responses": {
|
|
17141
|
+
"200": {
|
|
17142
|
+
"description": "Database already exists",
|
|
17143
|
+
"schema": {
|
|
17144
|
+
"type": "object",
|
|
17145
|
+
"description": "Response containing the database connection string",
|
|
17146
|
+
"properties": {
|
|
17147
|
+
"connection_string": {
|
|
17148
|
+
"type": "string",
|
|
17149
|
+
"description": "The connection string for the database"
|
|
17150
|
+
}
|
|
17151
|
+
}
|
|
17152
|
+
}
|
|
17153
|
+
},
|
|
17154
|
+
"201": {
|
|
17155
|
+
"description": "Created",
|
|
17156
|
+
"schema": {
|
|
17157
|
+
"type": "object",
|
|
17158
|
+
"description": "Response containing the database connection string",
|
|
17159
|
+
"properties": {
|
|
17160
|
+
"connection_string": {
|
|
17161
|
+
"type": "string",
|
|
17162
|
+
"description": "The connection string for the database"
|
|
17163
|
+
}
|
|
17164
|
+
}
|
|
17165
|
+
}
|
|
17166
|
+
},
|
|
17167
|
+
"default": {
|
|
17168
|
+
"description": "error",
|
|
17169
|
+
"schema": {
|
|
17170
|
+
"type": "object",
|
|
17171
|
+
"required": [
|
|
17172
|
+
"message"
|
|
17173
|
+
],
|
|
17174
|
+
"properties": {
|
|
17175
|
+
"code": {
|
|
17176
|
+
"type": "integer",
|
|
17177
|
+
"format": "int64"
|
|
17178
|
+
},
|
|
17179
|
+
"message": {
|
|
17180
|
+
"type": "string",
|
|
17181
|
+
"x-nullable": false
|
|
17182
|
+
}
|
|
17183
|
+
}
|
|
17184
|
+
}
|
|
17185
|
+
}
|
|
17186
|
+
}
|
|
17187
|
+
},
|
|
17188
|
+
"get": {
|
|
17189
|
+
"operationId": "getSiteDatabase",
|
|
17190
|
+
"tags": [
|
|
17191
|
+
"database"
|
|
17192
|
+
],
|
|
17193
|
+
"description": "Returns the database connection string for the specified site.",
|
|
17194
|
+
"responses": {
|
|
17195
|
+
"200": {
|
|
17196
|
+
"description": "OK",
|
|
17197
|
+
"schema": {
|
|
17198
|
+
"type": "object",
|
|
17199
|
+
"description": "Response containing the database connection string",
|
|
17200
|
+
"properties": {
|
|
17201
|
+
"connection_string": {
|
|
17202
|
+
"type": "string",
|
|
17203
|
+
"description": "The connection string for the database"
|
|
17204
|
+
}
|
|
17205
|
+
}
|
|
17206
|
+
}
|
|
17207
|
+
},
|
|
17208
|
+
"default": {
|
|
17209
|
+
"description": "error",
|
|
17210
|
+
"schema": {
|
|
17211
|
+
"type": "object",
|
|
17212
|
+
"required": [
|
|
17213
|
+
"message"
|
|
17214
|
+
],
|
|
17215
|
+
"properties": {
|
|
17216
|
+
"code": {
|
|
17217
|
+
"type": "integer",
|
|
17218
|
+
"format": "int64"
|
|
17219
|
+
},
|
|
17220
|
+
"message": {
|
|
17221
|
+
"type": "string",
|
|
17222
|
+
"x-nullable": false
|
|
17223
|
+
}
|
|
17224
|
+
}
|
|
17225
|
+
}
|
|
17226
|
+
}
|
|
17227
|
+
}
|
|
17228
|
+
},
|
|
17229
|
+
"delete": {
|
|
17230
|
+
"operationId": "deleteSiteDatabase",
|
|
17231
|
+
"tags": [
|
|
17232
|
+
"database"
|
|
17233
|
+
],
|
|
17234
|
+
"description": "Deletes the database and all associated branches and snapshots for the specified site.",
|
|
17235
|
+
"responses": {
|
|
17236
|
+
"204": {
|
|
17237
|
+
"description": "Deleted"
|
|
17238
|
+
},
|
|
17239
|
+
"default": {
|
|
17240
|
+
"description": "error",
|
|
17241
|
+
"schema": {
|
|
17242
|
+
"type": "object",
|
|
17243
|
+
"required": [
|
|
17244
|
+
"message"
|
|
17245
|
+
],
|
|
17246
|
+
"properties": {
|
|
17247
|
+
"code": {
|
|
17248
|
+
"type": "integer",
|
|
17249
|
+
"format": "int64"
|
|
17250
|
+
},
|
|
17251
|
+
"message": {
|
|
17252
|
+
"type": "string",
|
|
17253
|
+
"x-nullable": false
|
|
17254
|
+
}
|
|
17255
|
+
}
|
|
17256
|
+
}
|
|
17257
|
+
}
|
|
17258
|
+
}
|
|
17259
|
+
}
|
|
17260
|
+
},
|
|
17261
|
+
"/sites/{site_id}/database/branch": {
|
|
17262
|
+
"parameters": [
|
|
17263
|
+
{
|
|
17264
|
+
"name": "site_id",
|
|
17265
|
+
"type": "string",
|
|
17266
|
+
"in": "path",
|
|
17267
|
+
"required": true
|
|
17268
|
+
}
|
|
17269
|
+
],
|
|
17270
|
+
"post": {
|
|
17271
|
+
"operationId": "createSiteDatabaseBranch",
|
|
17272
|
+
"tags": [
|
|
17273
|
+
"database"
|
|
17274
|
+
],
|
|
17275
|
+
"description": "Creates a new database branch for a deploy. If a branch already exists for the specified deploy ID, returns the existing connection string.",
|
|
17276
|
+
"consumes": [
|
|
17277
|
+
"application/json"
|
|
17278
|
+
],
|
|
17279
|
+
"parameters": [
|
|
17280
|
+
{
|
|
17281
|
+
"name": "branch",
|
|
17282
|
+
"in": "body",
|
|
17283
|
+
"schema": {
|
|
17284
|
+
"type": "object",
|
|
17285
|
+
"description": "Request body for creating a database branch",
|
|
17286
|
+
"required": [
|
|
17287
|
+
"deploy_id"
|
|
17288
|
+
],
|
|
17289
|
+
"properties": {
|
|
17290
|
+
"parent_branch_id": {
|
|
17291
|
+
"type": "string",
|
|
17292
|
+
"description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
|
|
17293
|
+
},
|
|
17294
|
+
"deploy_id": {
|
|
17295
|
+
"type": "string",
|
|
17296
|
+
"description": "The deploy ID to associate with this branch"
|
|
17297
|
+
}
|
|
17298
|
+
}
|
|
17299
|
+
},
|
|
17300
|
+
"required": true
|
|
17301
|
+
}
|
|
17302
|
+
],
|
|
17303
|
+
"responses": {
|
|
17304
|
+
"200": {
|
|
17305
|
+
"description": "Branch already exists for this deploy",
|
|
17306
|
+
"schema": {
|
|
17307
|
+
"type": "object",
|
|
17308
|
+
"description": "Response containing the database branch connection string",
|
|
17309
|
+
"properties": {
|
|
17310
|
+
"connection_string": {
|
|
17311
|
+
"type": "string",
|
|
17312
|
+
"description": "The connection string for the database branch"
|
|
17313
|
+
}
|
|
17314
|
+
}
|
|
17315
|
+
}
|
|
17316
|
+
},
|
|
17317
|
+
"201": {
|
|
17318
|
+
"description": "Created",
|
|
17319
|
+
"schema": {
|
|
17320
|
+
"type": "object",
|
|
17321
|
+
"description": "Response containing the database branch connection string",
|
|
17322
|
+
"properties": {
|
|
17323
|
+
"connection_string": {
|
|
17324
|
+
"type": "string",
|
|
17325
|
+
"description": "The connection string for the database branch"
|
|
17326
|
+
}
|
|
17327
|
+
}
|
|
17328
|
+
}
|
|
17329
|
+
},
|
|
17330
|
+
"default": {
|
|
17331
|
+
"description": "error",
|
|
17332
|
+
"schema": {
|
|
17333
|
+
"type": "object",
|
|
17334
|
+
"required": [
|
|
17335
|
+
"message"
|
|
17336
|
+
],
|
|
17337
|
+
"properties": {
|
|
17338
|
+
"code": {
|
|
17339
|
+
"type": "integer",
|
|
17340
|
+
"format": "int64"
|
|
17341
|
+
},
|
|
17342
|
+
"message": {
|
|
17343
|
+
"type": "string",
|
|
17344
|
+
"x-nullable": false
|
|
17345
|
+
}
|
|
17346
|
+
}
|
|
17347
|
+
}
|
|
17348
|
+
}
|
|
17349
|
+
}
|
|
17350
|
+
}
|
|
17351
|
+
},
|
|
17352
|
+
"/sites/{site_id}/database/branch/{deploy_id}": {
|
|
17353
|
+
"parameters": [
|
|
17354
|
+
{
|
|
17355
|
+
"name": "site_id",
|
|
17356
|
+
"type": "string",
|
|
17357
|
+
"in": "path",
|
|
17358
|
+
"required": true
|
|
17359
|
+
},
|
|
17360
|
+
{
|
|
17361
|
+
"name": "deploy_id",
|
|
17362
|
+
"type": "string",
|
|
17363
|
+
"in": "path",
|
|
17364
|
+
"required": true,
|
|
17365
|
+
"description": "The deploy ID associated with the database branch"
|
|
17366
|
+
}
|
|
17367
|
+
],
|
|
17368
|
+
"get": {
|
|
17369
|
+
"operationId": "getSiteDatabaseBranch",
|
|
17370
|
+
"tags": [
|
|
17371
|
+
"database"
|
|
17372
|
+
],
|
|
17373
|
+
"description": "Returns the database branch connection string for a specific deploy.",
|
|
17374
|
+
"responses": {
|
|
17375
|
+
"200": {
|
|
17376
|
+
"description": "OK",
|
|
17377
|
+
"schema": {
|
|
17378
|
+
"type": "object",
|
|
17379
|
+
"description": "Response containing the database branch connection string",
|
|
17380
|
+
"properties": {
|
|
17381
|
+
"connection_string": {
|
|
17382
|
+
"type": "string",
|
|
17383
|
+
"description": "The connection string for the database branch"
|
|
17384
|
+
}
|
|
17385
|
+
}
|
|
17386
|
+
}
|
|
17387
|
+
},
|
|
17388
|
+
"404": {
|
|
17389
|
+
"description": "Branch not found for this deploy"
|
|
17390
|
+
},
|
|
17391
|
+
"default": {
|
|
17392
|
+
"description": "error",
|
|
17393
|
+
"schema": {
|
|
17394
|
+
"type": "object",
|
|
17395
|
+
"required": [
|
|
17396
|
+
"message"
|
|
17397
|
+
],
|
|
17398
|
+
"properties": {
|
|
17399
|
+
"code": {
|
|
17400
|
+
"type": "integer",
|
|
17401
|
+
"format": "int64"
|
|
17402
|
+
},
|
|
17403
|
+
"message": {
|
|
17404
|
+
"type": "string",
|
|
17405
|
+
"x-nullable": false
|
|
17406
|
+
}
|
|
17407
|
+
}
|
|
17408
|
+
}
|
|
17409
|
+
}
|
|
17410
|
+
}
|
|
17411
|
+
},
|
|
17412
|
+
"delete": {
|
|
17413
|
+
"operationId": "deleteSiteDatabaseBranch",
|
|
17414
|
+
"tags": [
|
|
17415
|
+
"database"
|
|
17416
|
+
],
|
|
17417
|
+
"description": "Deletes a database branch associated with a deploy.",
|
|
17418
|
+
"responses": {
|
|
17419
|
+
"204": {
|
|
17420
|
+
"description": "Deleted"
|
|
17421
|
+
},
|
|
17422
|
+
"default": {
|
|
17423
|
+
"description": "error",
|
|
17424
|
+
"schema": {
|
|
17425
|
+
"type": "object",
|
|
17426
|
+
"required": [
|
|
17427
|
+
"message"
|
|
17428
|
+
],
|
|
17429
|
+
"properties": {
|
|
17430
|
+
"code": {
|
|
17431
|
+
"type": "integer",
|
|
17432
|
+
"format": "int64"
|
|
17433
|
+
},
|
|
17434
|
+
"message": {
|
|
17435
|
+
"type": "string",
|
|
17436
|
+
"x-nullable": false
|
|
17437
|
+
}
|
|
17438
|
+
}
|
|
17439
|
+
}
|
|
17440
|
+
}
|
|
17441
|
+
}
|
|
17442
|
+
}
|
|
17443
|
+
},
|
|
17444
|
+
"/sites/{site_id}/database/snapshot": {
|
|
17445
|
+
"parameters": [
|
|
17446
|
+
{
|
|
17447
|
+
"name": "site_id",
|
|
17448
|
+
"type": "string",
|
|
17449
|
+
"in": "path",
|
|
17450
|
+
"required": true
|
|
17451
|
+
}
|
|
17452
|
+
],
|
|
17453
|
+
"post": {
|
|
17454
|
+
"operationId": "createSiteDatabaseSnapshot",
|
|
17455
|
+
"tags": [
|
|
17456
|
+
"database"
|
|
17457
|
+
],
|
|
17458
|
+
"description": "Creates a point-in-time snapshot of a database branch. Defaults to the production branch if no branch name is specified.",
|
|
17459
|
+
"consumes": [
|
|
17460
|
+
"application/json"
|
|
17461
|
+
],
|
|
17462
|
+
"parameters": [
|
|
17463
|
+
{
|
|
17464
|
+
"name": "snapshot",
|
|
17465
|
+
"in": "body",
|
|
17466
|
+
"schema": {
|
|
17467
|
+
"type": "object",
|
|
17468
|
+
"description": "Request body for creating a database snapshot",
|
|
17469
|
+
"properties": {
|
|
17470
|
+
"branch_name": {
|
|
17471
|
+
"type": "string",
|
|
17472
|
+
"description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
|
|
17473
|
+
},
|
|
17474
|
+
"name": {
|
|
17475
|
+
"type": "string",
|
|
17476
|
+
"description": "An optional name for the snapshot"
|
|
17477
|
+
}
|
|
17478
|
+
}
|
|
17479
|
+
}
|
|
17480
|
+
}
|
|
17481
|
+
],
|
|
17482
|
+
"responses": {
|
|
17483
|
+
"201": {
|
|
17484
|
+
"description": "Created",
|
|
17485
|
+
"schema": {
|
|
17486
|
+
"type": "object",
|
|
17487
|
+
"description": "A point-in-time snapshot of a database branch",
|
|
17488
|
+
"properties": {
|
|
17489
|
+
"id": {
|
|
17490
|
+
"type": "string",
|
|
17491
|
+
"description": "The unique identifier of the snapshot"
|
|
17492
|
+
},
|
|
17493
|
+
"timestamp": {
|
|
17494
|
+
"type": "string",
|
|
17495
|
+
"format": "dateTime",
|
|
17496
|
+
"description": "The timestamp when the snapshot was created"
|
|
17497
|
+
},
|
|
17498
|
+
"source_branch_id": {
|
|
17499
|
+
"type": "string",
|
|
17500
|
+
"description": "The ID of the branch that was snapshotted"
|
|
17501
|
+
}
|
|
17502
|
+
}
|
|
17503
|
+
}
|
|
17504
|
+
},
|
|
17505
|
+
"default": {
|
|
17506
|
+
"description": "error",
|
|
17507
|
+
"schema": {
|
|
17508
|
+
"type": "object",
|
|
17509
|
+
"required": [
|
|
17510
|
+
"message"
|
|
17511
|
+
],
|
|
17512
|
+
"properties": {
|
|
17513
|
+
"code": {
|
|
17514
|
+
"type": "integer",
|
|
17515
|
+
"format": "int64"
|
|
17516
|
+
},
|
|
17517
|
+
"message": {
|
|
17518
|
+
"type": "string",
|
|
17519
|
+
"x-nullable": false
|
|
17520
|
+
}
|
|
17521
|
+
}
|
|
17522
|
+
}
|
|
17523
|
+
}
|
|
17524
|
+
}
|
|
17525
|
+
}
|
|
17526
|
+
},
|
|
17527
|
+
"/sites/{site_id}/database/snapshots": {
|
|
17528
|
+
"parameters": [
|
|
17529
|
+
{
|
|
17530
|
+
"name": "site_id",
|
|
17531
|
+
"type": "string",
|
|
17532
|
+
"in": "path",
|
|
17533
|
+
"required": true
|
|
17534
|
+
}
|
|
17535
|
+
],
|
|
17536
|
+
"get": {
|
|
17537
|
+
"operationId": "listSiteDatabaseSnapshots",
|
|
17538
|
+
"tags": [
|
|
17539
|
+
"database"
|
|
17540
|
+
],
|
|
17541
|
+
"description": "Returns all snapshots for the site's database.",
|
|
17542
|
+
"responses": {
|
|
17543
|
+
"200": {
|
|
17544
|
+
"description": "OK",
|
|
17545
|
+
"schema": {
|
|
17546
|
+
"type": "object",
|
|
17547
|
+
"description": "Response containing a list of database snapshots",
|
|
17548
|
+
"properties": {
|
|
17549
|
+
"snapshots": {
|
|
17550
|
+
"type": "array",
|
|
17551
|
+
"items": {
|
|
17552
|
+
"type": "object",
|
|
17553
|
+
"description": "A point-in-time snapshot of a database branch",
|
|
17554
|
+
"properties": {
|
|
17555
|
+
"id": {
|
|
17556
|
+
"type": "string",
|
|
17557
|
+
"description": "The unique identifier of the snapshot"
|
|
17558
|
+
},
|
|
17559
|
+
"timestamp": {
|
|
17560
|
+
"type": "string",
|
|
17561
|
+
"format": "dateTime",
|
|
17562
|
+
"description": "The timestamp when the snapshot was created"
|
|
17563
|
+
},
|
|
17564
|
+
"source_branch_id": {
|
|
17565
|
+
"type": "string",
|
|
17566
|
+
"description": "The ID of the branch that was snapshotted"
|
|
17567
|
+
}
|
|
17568
|
+
}
|
|
17569
|
+
},
|
|
17570
|
+
"description": "List of database snapshots"
|
|
17571
|
+
}
|
|
17572
|
+
}
|
|
17573
|
+
}
|
|
17574
|
+
},
|
|
17575
|
+
"default": {
|
|
17576
|
+
"description": "error",
|
|
17577
|
+
"schema": {
|
|
17578
|
+
"type": "object",
|
|
17579
|
+
"required": [
|
|
17580
|
+
"message"
|
|
17581
|
+
],
|
|
17582
|
+
"properties": {
|
|
17583
|
+
"code": {
|
|
17584
|
+
"type": "integer",
|
|
17585
|
+
"format": "int64"
|
|
17586
|
+
},
|
|
17587
|
+
"message": {
|
|
17588
|
+
"type": "string",
|
|
17589
|
+
"x-nullable": false
|
|
17590
|
+
}
|
|
17591
|
+
}
|
|
17592
|
+
}
|
|
17593
|
+
}
|
|
17594
|
+
}
|
|
17595
|
+
}
|
|
17596
|
+
},
|
|
17597
|
+
"/sites/{site_id}/database/snapshot/{snapshot_id}": {
|
|
17598
|
+
"parameters": [
|
|
17599
|
+
{
|
|
17600
|
+
"name": "site_id",
|
|
17601
|
+
"type": "string",
|
|
17602
|
+
"in": "path",
|
|
17603
|
+
"required": true
|
|
17604
|
+
},
|
|
17605
|
+
{
|
|
17606
|
+
"name": "snapshot_id",
|
|
17607
|
+
"type": "string",
|
|
17608
|
+
"in": "path",
|
|
17609
|
+
"required": true,
|
|
17610
|
+
"description": "The snapshot ID"
|
|
17611
|
+
}
|
|
17612
|
+
],
|
|
17613
|
+
"delete": {
|
|
17614
|
+
"operationId": "deleteSiteDatabaseSnapshot",
|
|
17615
|
+
"tags": [
|
|
17616
|
+
"database"
|
|
17617
|
+
],
|
|
17618
|
+
"description": "Deletes a database snapshot.",
|
|
17619
|
+
"responses": {
|
|
17620
|
+
"204": {
|
|
17621
|
+
"description": "Deleted"
|
|
17622
|
+
},
|
|
17623
|
+
"default": {
|
|
17624
|
+
"description": "error",
|
|
17625
|
+
"schema": {
|
|
17626
|
+
"type": "object",
|
|
17627
|
+
"required": [
|
|
17628
|
+
"message"
|
|
17629
|
+
],
|
|
17630
|
+
"properties": {
|
|
17631
|
+
"code": {
|
|
17632
|
+
"type": "integer",
|
|
17633
|
+
"format": "int64"
|
|
17634
|
+
},
|
|
17635
|
+
"message": {
|
|
17636
|
+
"type": "string",
|
|
17637
|
+
"x-nullable": false
|
|
17638
|
+
}
|
|
17639
|
+
}
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
}
|
|
17643
|
+
}
|
|
17644
|
+
},
|
|
17645
|
+
"/sites/{site_id}/database/snapshot/{snapshot_id}/restore": {
|
|
17646
|
+
"parameters": [
|
|
17647
|
+
{
|
|
17648
|
+
"name": "site_id",
|
|
17649
|
+
"type": "string",
|
|
17650
|
+
"in": "path",
|
|
17651
|
+
"required": true
|
|
17652
|
+
},
|
|
17653
|
+
{
|
|
17654
|
+
"name": "snapshot_id",
|
|
17655
|
+
"type": "string",
|
|
17656
|
+
"in": "path",
|
|
17657
|
+
"required": true,
|
|
17658
|
+
"description": "The snapshot ID to restore"
|
|
17659
|
+
}
|
|
17660
|
+
],
|
|
17661
|
+
"post": {
|
|
17662
|
+
"operationId": "restoreSiteDatabaseSnapshot",
|
|
17663
|
+
"tags": [
|
|
17664
|
+
"database"
|
|
17665
|
+
],
|
|
17666
|
+
"description": "Restores a snapshot to a database branch. Defaults to the production branch if no branch_name is specified.",
|
|
17667
|
+
"consumes": [
|
|
17668
|
+
"application/json"
|
|
17669
|
+
],
|
|
17670
|
+
"parameters": [
|
|
17671
|
+
{
|
|
17672
|
+
"name": "restore",
|
|
17673
|
+
"in": "body",
|
|
17674
|
+
"schema": {
|
|
17675
|
+
"type": "object",
|
|
17676
|
+
"description": "Request body for restoring a database snapshot",
|
|
17677
|
+
"properties": {
|
|
17678
|
+
"branch_name": {
|
|
17679
|
+
"type": "string",
|
|
17680
|
+
"description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
|
|
17681
|
+
}
|
|
17682
|
+
}
|
|
17683
|
+
}
|
|
17684
|
+
}
|
|
17685
|
+
],
|
|
17686
|
+
"responses": {
|
|
17687
|
+
"200": {
|
|
17688
|
+
"description": "OK"
|
|
17689
|
+
},
|
|
17690
|
+
"default": {
|
|
17691
|
+
"description": "error",
|
|
17692
|
+
"schema": {
|
|
17693
|
+
"type": "object",
|
|
17694
|
+
"required": [
|
|
17695
|
+
"message"
|
|
17696
|
+
],
|
|
17697
|
+
"properties": {
|
|
17698
|
+
"code": {
|
|
17699
|
+
"type": "integer",
|
|
17700
|
+
"format": "int64"
|
|
17701
|
+
},
|
|
17702
|
+
"message": {
|
|
17703
|
+
"type": "string",
|
|
17704
|
+
"x-nullable": false
|
|
17705
|
+
}
|
|
17706
|
+
}
|
|
17707
|
+
}
|
|
17708
|
+
}
|
|
17709
|
+
}
|
|
17710
|
+
}
|
|
17105
17711
|
}
|
|
17106
17712
|
},
|
|
17107
17713
|
"definitions": {
|
|
17714
|
+
"createDatabaseRequest": {
|
|
17715
|
+
"type": "object",
|
|
17716
|
+
"description": "Request body for creating a database",
|
|
17717
|
+
"properties": {
|
|
17718
|
+
"region": {
|
|
17719
|
+
"type": "string",
|
|
17720
|
+
"description": "The region where the database should be created. Defaults to the site's functions region if not specified."
|
|
17721
|
+
}
|
|
17722
|
+
}
|
|
17723
|
+
},
|
|
17724
|
+
"databaseResponse": {
|
|
17725
|
+
"type": "object",
|
|
17726
|
+
"description": "Response containing the database connection string",
|
|
17727
|
+
"properties": {
|
|
17728
|
+
"connection_string": {
|
|
17729
|
+
"type": "string",
|
|
17730
|
+
"description": "The connection string for the database"
|
|
17731
|
+
}
|
|
17732
|
+
}
|
|
17733
|
+
},
|
|
17734
|
+
"createDatabaseBranchRequest": {
|
|
17735
|
+
"type": "object",
|
|
17736
|
+
"description": "Request body for creating a database branch",
|
|
17737
|
+
"required": [
|
|
17738
|
+
"deploy_id"
|
|
17739
|
+
],
|
|
17740
|
+
"properties": {
|
|
17741
|
+
"parent_branch_id": {
|
|
17742
|
+
"type": "string",
|
|
17743
|
+
"description": "The ID of the parent branch to create the new branch from. Defaults to the production branch if not specified."
|
|
17744
|
+
},
|
|
17745
|
+
"deploy_id": {
|
|
17746
|
+
"type": "string",
|
|
17747
|
+
"description": "The deploy ID to associate with this branch"
|
|
17748
|
+
}
|
|
17749
|
+
}
|
|
17750
|
+
},
|
|
17751
|
+
"databaseBranchResponse": {
|
|
17752
|
+
"type": "object",
|
|
17753
|
+
"description": "Response containing the database branch connection string",
|
|
17754
|
+
"properties": {
|
|
17755
|
+
"connection_string": {
|
|
17756
|
+
"type": "string",
|
|
17757
|
+
"description": "The connection string for the database branch"
|
|
17758
|
+
}
|
|
17759
|
+
}
|
|
17760
|
+
},
|
|
17761
|
+
"createDatabaseSnapshotRequest": {
|
|
17762
|
+
"type": "object",
|
|
17763
|
+
"description": "Request body for creating a database snapshot",
|
|
17764
|
+
"properties": {
|
|
17765
|
+
"branch_name": {
|
|
17766
|
+
"type": "string",
|
|
17767
|
+
"description": "The name of the branch to snapshot. Defaults to \"production\" if not specified."
|
|
17768
|
+
},
|
|
17769
|
+
"name": {
|
|
17770
|
+
"type": "string",
|
|
17771
|
+
"description": "An optional name for the snapshot"
|
|
17772
|
+
}
|
|
17773
|
+
}
|
|
17774
|
+
},
|
|
17775
|
+
"databaseSnapshot": {
|
|
17776
|
+
"type": "object",
|
|
17777
|
+
"description": "A point-in-time snapshot of a database branch",
|
|
17778
|
+
"properties": {
|
|
17779
|
+
"id": {
|
|
17780
|
+
"type": "string",
|
|
17781
|
+
"description": "The unique identifier of the snapshot"
|
|
17782
|
+
},
|
|
17783
|
+
"timestamp": {
|
|
17784
|
+
"type": "string",
|
|
17785
|
+
"format": "dateTime",
|
|
17786
|
+
"description": "The timestamp when the snapshot was created"
|
|
17787
|
+
},
|
|
17788
|
+
"source_branch_id": {
|
|
17789
|
+
"type": "string",
|
|
17790
|
+
"description": "The ID of the branch that was snapshotted"
|
|
17791
|
+
}
|
|
17792
|
+
}
|
|
17793
|
+
},
|
|
17794
|
+
"databaseSnapshotsResponse": {
|
|
17795
|
+
"type": "object",
|
|
17796
|
+
"description": "Response containing a list of database snapshots",
|
|
17797
|
+
"properties": {
|
|
17798
|
+
"snapshots": {
|
|
17799
|
+
"type": "array",
|
|
17800
|
+
"items": {
|
|
17801
|
+
"type": "object",
|
|
17802
|
+
"description": "A point-in-time snapshot of a database branch",
|
|
17803
|
+
"properties": {
|
|
17804
|
+
"id": {
|
|
17805
|
+
"type": "string",
|
|
17806
|
+
"description": "The unique identifier of the snapshot"
|
|
17807
|
+
},
|
|
17808
|
+
"timestamp": {
|
|
17809
|
+
"type": "string",
|
|
17810
|
+
"format": "dateTime",
|
|
17811
|
+
"description": "The timestamp when the snapshot was created"
|
|
17812
|
+
},
|
|
17813
|
+
"source_branch_id": {
|
|
17814
|
+
"type": "string",
|
|
17815
|
+
"description": "The ID of the branch that was snapshotted"
|
|
17816
|
+
}
|
|
17817
|
+
}
|
|
17818
|
+
},
|
|
17819
|
+
"description": "List of database snapshots"
|
|
17820
|
+
}
|
|
17821
|
+
}
|
|
17822
|
+
},
|
|
17823
|
+
"restoreDatabaseSnapshotRequest": {
|
|
17824
|
+
"type": "object",
|
|
17825
|
+
"description": "Request body for restoring a database snapshot",
|
|
17826
|
+
"properties": {
|
|
17827
|
+
"branch_name": {
|
|
17828
|
+
"type": "string",
|
|
17829
|
+
"description": "The name of the branch to restore the snapshot to. Defaults to \"production\" if not specified."
|
|
17830
|
+
}
|
|
17831
|
+
}
|
|
17832
|
+
},
|
|
17108
17833
|
"DeployValidationsReport": {
|
|
17109
17834
|
"type": "object",
|
|
17110
17835
|
"properties": {
|
|
@@ -20724,6 +21449,12 @@
|
|
|
20724
21449
|
"function"
|
|
20725
21450
|
]
|
|
20726
21451
|
},
|
|
21452
|
+
{
|
|
21453
|
+
"name": "Database",
|
|
21454
|
+
"tags": [
|
|
21455
|
+
"database"
|
|
21456
|
+
]
|
|
21457
|
+
},
|
|
20727
21458
|
{
|
|
20728
21459
|
"name": "Forms",
|
|
20729
21460
|
"tags": [
|
|
@@ -20881,6 +21612,10 @@
|
|
|
20881
21612
|
{
|
|
20882
21613
|
"name": "devServerHook",
|
|
20883
21614
|
"x-displayName": "Dev server hook"
|
|
21615
|
+
},
|
|
21616
|
+
{
|
|
21617
|
+
"name": "database",
|
|
21618
|
+
"x-displayName": "Database"
|
|
20884
21619
|
}
|
|
20885
21620
|
]
|
|
20886
21621
|
}
|