You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param region: Region to target. If none is passed will use default region from the config.
1128
1129
:param project_id: ID of the Scaleway Project in which to create the Web Hosting plan.
1129
1130
:param tags: List of tags for the Web Hosting plan.
1131
+
:param subdomain: The name prefix to use as a free subdomain (for example, `mysite`) assigned to the Web Hosting plan. The full domain will be automatically created by adding it to the fixed base domain (e.g. `mysite.scw.site`). You do not need to include the base domain yourself.
1130
1132
:param offer_options: List of the Web Hosting plan options IDs with their quantities.
1131
1133
:param language: Default language for the control panel interface.
1132
1134
:param domain_configuration: Indicates whether to update hosting domain name servers and DNS records for domains managed by Scaleway Elements (deprecated, use auto_config_domain_dns instead).
@@ -1159,6 +1161,7 @@ async def create_hosting(
1159
1161
region=region,
1160
1162
project_id=project_id,
1161
1163
tags=tags,
1164
+
subdomain=subdomain,
1162
1165
offer_options=offer_options,
1163
1166
language=language,
1164
1167
domain_configuration=domain_configuration,
@@ -1185,6 +1188,7 @@ async def list_hostings(
1185
1188
project_id: Optional[str] =None,
1186
1189
organization_id: Optional[str] =None,
1187
1190
control_panels: Optional[List[str]] =None,
1191
+
subdomain: Optional[str] =None,
1188
1192
) ->ListHostingsResponse:
1189
1193
"""
1190
1194
List all Web Hosting plans.
@@ -1199,6 +1203,7 @@ async def list_hostings(
1199
1203
:param project_id: Project ID to filter for, only Web Hosting plans from this Project will be returned.
1200
1204
:param organization_id: Organization ID to filter for, only Web Hosting plans from this Organization will be returned.
1201
1205
:param control_panels: Name of the control panel to filter for, only Web Hosting plans from this control panel will be returned.
1206
+
:param subdomain: Optional free subdomain linked to the Web Hosting plan.
0 commit comments