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
@@ -491,21 +491,22 @@ func (s *API) Regions() []scw.Region {
491
491
typeCreateHostingRequeststruct {
492
492
// Region: region to target. If none is passed will use default region from the config.
493
493
Region scw.Region`json:"-"`
494
-
// OfferID: ID of the selected offer for the hosting.
494
+
// OfferID: ID of the selected offer for the Web Hosting plan.
495
495
OfferIDstring`json:"offer_id"`
496
-
// ProjectID: project ID of the hosting.
496
+
// ProjectID: ID of the Scaleway Project in which to create the Web Hosting plan.
497
497
ProjectIDstring`json:"project_id"`
498
-
// Email: contact email of the client for the hosting.
498
+
// Email: contact email for the Web Hosting client.
499
499
Email*string`json:"email"`
500
-
// Tags: the tags of the hosting.
500
+
// Tags: list of tags for the Web Hosting plan.
501
501
Tags []string`json:"tags"`
502
-
// Domain: the domain name of the hosting.
502
+
// Domain: domain name to link to the Web Hosting plan. You must already own this domain name, and have completed the DNS validation process beforehand.
503
503
Domainstring`json:"domain"`
504
-
// OptionIDs: iDs of the selected options for the hosting.
504
+
// OptionIDs: iDs of any selected additional options for the Web Hosting plan.
505
505
OptionIDs []string`json:"option_ids"`
506
506
}
507
507
508
-
// CreateHosting: create a hosting.
508
+
// CreateHosting: order a Web Hosting plan.
509
+
// Order a Web Hosting plan, specifying the offer type required via the `offer_id` parameter.
// Region: region to target. If none is passed will use default region from the config.
548
549
Region scw.Region`json:"-"`
549
-
// Page: a positive integer to choose the page to return.
550
+
// Page: page number to return, from the paginated results (must be a positive integer).
550
551
Page*int32`json:"-"`
551
-
// PageSize: a positive integer lower or equal to 100 to select the number of items to return.
552
+
// PageSize: number of Web Hosting plans to return (must be a positive integer lower or equal to 100).
552
553
PageSize*uint32`json:"-"`
553
-
// OrderBy: define the order of the returned hostings.
554
+
// OrderBy: sort order for Web Hosting plans in the response.
554
555
// Default value: created_at_asc
555
556
OrderByListHostingsRequestOrderBy`json:"-"`
556
-
// Tags: return hostings with these tags.
557
+
// Tags: tags to filter for, only Web Hosting plans with matching tags will be returned.
557
558
Tags*[]string`json:"-"`
558
-
// Statuses: return hostings with these statuses.
559
+
// Statuses: statuses to filter for, only Web Hosting plans with matching statuses will be returned.
559
560
Statuses []HostingStatus`json:"-"`
560
-
// Domain: return hostings with this domain.
561
+
// Domain: domain to filter for, only Web Hosting plans associated with this domain will be returned.
561
562
Domain*string`json:"-"`
562
-
// ProjectID: return hostings from this project ID.
563
+
// ProjectID: project ID to filter for, only Web Hosting plans from this Project will be returned.
563
564
ProjectID*string`json:"-"`
564
-
// OrganizationID: return hostings from this organization ID.
565
+
// OrganizationID: organization ID to filter for, only Web Hosting plans from this Organization will be returned.
565
566
OrganizationID*string`json:"-"`
566
567
}
567
568
568
-
// ListHostings: list all hostings.
569
+
// ListHostings: list all Web Hosting plans.
570
+
// List all of your existing Web Hosting plans. Various filters are available to limit the results, including filtering by domain, status, tag and Project ID.
@@ -654,17 +656,18 @@ type UpdateHostingRequest struct {
654
656
Region scw.Region`json:"-"`
655
657
// HostingID: hosting ID.
656
658
HostingIDstring`json:"-"`
657
-
// Email: new contact email for the hosting.
659
+
// Email: new contact email for the Web Hosting plan.
658
660
Email*string`json:"email"`
659
-
// Tags: new tags for the hosting.
661
+
// Tags: new tags for the Web Hosting plan.
660
662
Tags*[]string`json:"tags"`
661
-
// OptionIDs: new options IDs for the hosting.
663
+
// OptionIDs: iDs of the new options for the Web Hosting plan.
662
664
OptionIDs*[]string`json:"option_ids"`
663
-
// OfferID: new offer ID for the hosting.
665
+
// OfferID: ID of the new offer for the Web Hosting plan.
664
666
OfferID*string`json:"offer_id"`
665
667
}
666
668
667
-
// UpdateHosting: update a hosting.
669
+
// UpdateHosting: update a Web Hosting plan.
670
+
// Update the details of one of your existing Web Hosting plans, specified by its `hosting_id`. You can update parameters including the contact email address, tags, options and offer.
@@ -708,8 +711,8 @@ type DeleteHostingRequest struct {
708
711
HostingIDstring`json:"-"`
709
712
}
710
713
711
-
// DeleteHosting: delete a hosting.
712
-
// Delete a hosting with the given ID.
714
+
// DeleteHosting: delete a Web Hosting plan.
715
+
// Delete a Web Hosting plan, specified by its `hosting_id`. Note that deletion is not immediate: it will take place at the end of the calendar month, after which time your Web Hosting plan and all its data (files and emails) will be irreversibly lost.
@@ -748,8 +751,8 @@ type RestoreHostingRequest struct {
748
751
HostingIDstring`json:"-"`
749
752
}
750
753
751
-
// RestoreHosting: restore a hosting.
752
-
// Restore a hosting with the given ID.
754
+
// RestoreHosting: restore a Web Hosting plan.
755
+
// When you [delete a Web Hosting plan](#path-hostings-delete-a-hosting), definitive deletion does not take place until the end of the calendar month. In the time between initiating the deletion, and definitive deletion at the end of the month, you can choose to **restore** the Web Hosting plan, using this endpoint and specifying its `hosting_id`.
0 commit comments