scaleway_async.edge_services.v1beta1 packageο
Submodulesο
scaleway_async.edge_services.v1beta1.api moduleο
- class scaleway_async.edge_services.v1beta1.api.EdgeServicesV1Beta1API(client: Client, *, bypass_validation: bool = False)ο
Bases:
API- async add_route_rules(*, route_stage_id: str, route_rules: List[SetRouteRulesRequestRouteRule] | None = None, after_position: int | None = None, before_position: int | None = None) AddRouteRulesResponseο
Add route rules. Add route rules to an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param route_rules: List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id. :param after_position: Add rules after the given position. One-Of (βpositionβ): at most one of βafter_positionβ, βbefore_positionβ could be set. :param before_position: Add rules before the given position. One-Of (βpositionβ): at most one of βafter_positionβ, βbefore_positionβ could be set. :return:
AddRouteRulesResponseUsage:
result = await api.add_route_rules( route_stage_id="example", )
- async check_domain(*, fqdn: str, cname: str, project_id: str | None = None) CheckDomainResponseο
- Parameters:
fqdn β
cname β
project_id β
- Returns:
CheckDomainResponse
Usage:
result = await api.check_domain( fqdn="example", cname="example", )
- async check_lb_origin(*, lb: ScalewayLb | None = None) CheckLbOriginResponseο
- Parameters:
lb β
- Returns:
CheckLbOriginResponse
Usage:
result = await api.check_lb_origin()
- async check_pem_chain(*, fqdn: str, project_id: str | None = None, secret: CheckPEMChainRequestSecretChain | None = None, raw: str | None = None) CheckPEMChainResponseο
- Parameters:
fqdn β
project_id β
secret β
One-Of (βchainβ): at most one of βsecretβ, βrawβ could be set. :param raw: One-Of (βchainβ): at most one of βsecretβ, βrawβ could be set. :return:
CheckPEMChainResponseUsage:
result = await api.check_pem_chain( fqdn="example", )
- async create_backend_stage(*, scaleway_s3: ScalewayS3BackendConfig | None = None, scaleway_lb: ScalewayLbBackendConfig | None = None, pipeline_id: str) BackendStageο
Create backend stage. Create a new backend stage. You must specify either a scaleway_s3 (for a Scaleway Object Storage bucket) or scaleway_lb (for a Scaleway Load Balancer) field to configure the origin. :param scaleway_s3: Scaleway Object Storage origin bucket (S3) linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param scaleway_lb: Scaleway Load Balancer origin linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param pipeline_id: Pipeline ID the Backend stage belongs to. :return:
BackendStageUsage:
result = await api.create_backend_stage( pipeline_id="example", )
- async create_cache_stage(*, fallback_ttl: str | None = None, include_cookies: bool | None = None, backend_stage_id: str | None = None, pipeline_id: str, waf_stage_id: str | None = None, route_stage_id: str | None = None) CacheStageο
Create cache stage. Create a new cache stage. You must specify the fallback_ttl field to customize the TTL of the cache. :param fallback_ttl: Time To Live (TTL) in seconds. Defines how long content is cached. :param include_cookies: Defines whether responses to requests with cookies must be stored in the cache. :param backend_stage_id: Backend stage ID the cache stage will be linked to. One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param pipeline_id: Pipeline ID the Cache stage belongs to. :param waf_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :return:
CacheStageUsage:
result = await api.create_cache_stage( pipeline_id="example", )
- async create_dns_stage(*, fqdns: List[str] | None = None, tls_stage_id: str | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, pipeline_id: str) DNSStageο
Create DNS stage. Create a new DNS stage. You must specify the fqdns field to customize the domain endpoint, using a domain you already own. :param fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage. :param tls_stage_id: TLS stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param cache_stage_id: Cache stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param backend_stage_id: Backend stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param pipeline_id: Pipeline ID the DNS stage belongs to. :return:
DNSStageUsage:
result = await api.create_dns_stage( pipeline_id="example", )
- async create_pipeline(*, name: str, description: str, project_id: str | None = None) Pipelineο
Create pipeline. Create a new pipeline. You must specify a dns_stage_id to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. :param name: Name of the pipeline. :param description: Description of the pipeline. :param project_id: Project ID in which the pipeline will be created. :return:
PipelineUsage:
result = await api.create_pipeline( name="example", description="example", )
- async create_purge_request(*, pipeline_id: str, assets: List[str] | None = None, all: bool | None = None) PurgeRequestο
Create purge request. Create a new purge request. You must specify either the all field (to purge all content) or a list of assets (to define the precise assets to purge). :param pipeline_id: Pipeline ID in which the purge request will be created. :param assets: List of asserts to purge. One-Of (βtargetβ): at most one of βassetsβ, βallβ could be set. :param all: Defines whether to purge all content. One-Of (βtargetβ): at most one of βassetsβ, βallβ could be set. :return:
PurgeRequestUsage:
result = await api.create_purge_request( pipeline_id="example", )
- async create_route_stage(*, pipeline_id: str, waf_stage_id: str | None = None) RouteStageο
Create route stage. Create a new route stage. You must specify the waf_stage_id field to customize the route. :param pipeline_id: Pipeline ID the route stage belongs to. :param waf_stage_id: ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. One-Of (βnextβ): at most one of βwaf_stage_idβ could be set. :return:
RouteStageUsage:
result = await api.create_route_stage( pipeline_id="example", )
- async create_tls_stage(*, secrets: List[TLSSecret] | None = None, managed_certificate: bool | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, pipeline_id: str, route_stage_id: str | None = None, waf_stage_id: str | None = None) TLSStageο
Create TLS stage. Create a new TLS stage. You must specify either the secrets or managed_certificate fields to customize the SSL/TLS certificate of your endpoint. Choose secrets if you are using a pre-existing certificate held in Scaleway Secret Manager, or managed_certificate to let Scaleway generate and manage a Letβs Encrypt certificate for your customized endpoint. :param secrets: Secret (from Scaleway Secret Manager) containing your custom certificate. :param managed_certificate: True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint. :param cache_stage_id: Cache stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param backend_stage_id: Backend stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param pipeline_id: Pipeline ID the TLS stage belongs to. :param route_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :return:
TLSStageUsage:
result = await api.create_tls_stage( pipeline_id="example", )
- async create_waf_stage(*, pipeline_id: str, paranoia_level: int, mode: WafStageMode | None = None, backend_stage_id: str | None = None) WafStageο
Create WAF stage. Create a new WAF stage. You must specify the mode and paranoia_level fields to customize the WAF. :param pipeline_id: Pipeline ID the WAF stage belongs to. :param paranoia_level: Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. :param mode: Mode defining WAF behavior (disable/log_only/enable). :param backend_stage_id: ID of the backend stage to forward requests to after the WAF stage. One-Of (βnextβ): at most one of βbackend_stage_idβ could be set. :return:
WafStageUsage:
result = await api.create_waf_stage( pipeline_id="example", paranoia_level=1, )
- async delete_backend_stage(*, backend_stage_id: str) Noneο
Delete backend stage. Delete an existing backend stage, specified by its backend_stage_id. Deleting a backend stage is permanent, and cannot be undone. :param backend_stage_id: ID of the backend stage to delete.
Usage:
result = await api.delete_backend_stage( backend_stage_id="example", )
- async delete_cache_stage(*, cache_stage_id: str) Noneο
Delete cache stage. Delete an existing cache stage, specified by its cache_stage_id. Deleting a cache stage is permanent, and cannot be undone. :param cache_stage_id: ID of the cache stage to delete.
Usage:
result = await api.delete_cache_stage( cache_stage_id="example", )
- async delete_current_plan(*, project_id: str | None = None) Noneο
- Parameters:
project_id β
Usage:
result = await api.delete_current_plan()
- async delete_dns_stage(*, dns_stage_id: str) Noneο
Delete DNS stage. Delete an existing DNS stage, specified by its dns_stage_id. Deleting a DNS stage is permanent, and cannot be undone. :param dns_stage_id: ID of the DNS stage to delete.
Usage:
result = await api.delete_dns_stage( dns_stage_id="example", )
- async delete_pipeline(*, pipeline_id: str) Noneο
Delete pipeline. Delete an existing pipeline, specified by its pipeline_id. Deleting a pipeline is permanent, and cannot be undone. Note that all stages linked to the pipeline are also deleted. :param pipeline_id: ID of the pipeline to delete.
Usage:
result = await api.delete_pipeline( pipeline_id="example", )
- async delete_route_stage(*, route_stage_id: str) Noneο
Delete route stage. Delete an existing route stage, specified by its route_stage_id. Deleting a route stage is permanent, and cannot be undone. :param route_stage_id: ID of the route stage to delete.
Usage:
result = await api.delete_route_stage( route_stage_id="example", )
- async delete_tls_stage(*, tls_stage_id: str) Noneο
Delete TLS stage. Delete an existing TLS stage, specified by its tls_stage_id. Deleting a TLS stage is permanent, and cannot be undone. :param tls_stage_id: ID of the TLS stage to delete.
Usage:
result = await api.delete_tls_stage( tls_stage_id="example", )
- async delete_waf_stage(*, waf_stage_id: str) Noneο
Delete WAF stage. Delete an existing WAF stage, specified by its waf_stage_id. Deleting a WAF stage is permanent, and cannot be undone. :param waf_stage_id: ID of the WAF stage to delete.
Usage:
result = await api.delete_waf_stage( waf_stage_id="example", )
- async get_backend_stage(*, backend_stage_id: str) BackendStageο
Get backend stage. Retrieve information about an existing backend stage, specified by its backend_stage_id. Its full details, including scaleway_s3 or scaleway_lb, are returned in the response object. :param backend_stage_id: ID of the requested backend stage. :return:
BackendStageUsage:
result = await api.get_backend_stage( backend_stage_id="example", )
- async get_billing(*, project_id: str | None = None) GetBillingResponseο
Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.). :param project_id: :return:
GetBillingResponseUsage:
result = await api.get_billing()
- async get_cache_stage(*, cache_stage_id: str) CacheStageο
Get cache stage. Retrieve information about an existing cache stage, specified by its cache_stage_id. Its full details, including Time To Live (TTL), are returned in the response object. :param cache_stage_id: ID of the requested cache stage. :return:
CacheStageUsage:
result = await api.get_cache_stage( cache_stage_id="example", )
- async get_current_plan(*, project_id: str | None = None) Planο
- Parameters:
project_id β
- Returns:
Plan
Usage:
result = await api.get_current_plan()
- async get_dns_stage(*, dns_stage_id: str) DNSStageο
Get DNS stage. Retrieve information about an existing DNS stage, specified by its dns_stage_id. Its full details, including FQDNs, are returned in the response object. :param dns_stage_id: ID of the requested DNS stage. :return:
DNSStageUsage:
result = await api.get_dns_stage( dns_stage_id="example", )
- async get_pipeline(*, pipeline_id: str) Pipelineο
Get pipeline. Retrieve information about an existing pipeline, specified by its pipeline_id. Its full details, including errors, are returned in the response object. :param pipeline_id: ID of the requested pipeline. :return:
PipelineUsage:
result = await api.get_pipeline( pipeline_id="example", )
- async get_purge_request(*, purge_request_id: str) PurgeRequestο
Get purge request. Retrieve information about a purge request, specified by its purge_request_id. Its full details, including status and target, are returned in the response object. :param purge_request_id: ID of the requested purge request. :return:
PurgeRequestUsage:
result = await api.get_purge_request( purge_request_id="example", )
- async get_route_stage(*, route_stage_id: str) RouteStageο
Get route stage. Retrieve information about an existing route stage, specified by its route_stage_id. The summary of the route stage (without route rules) is returned in the response object. :param route_stage_id: ID of the requested route stage. :return:
RouteStageUsage:
result = await api.get_route_stage( route_stage_id="example", )
- async get_tls_stage(*, tls_stage_id: str) TLSStageο
Get TLS stage. Retrieve information about an existing TLS stage, specified by its tls_stage_id. Its full details, including secrets and certificate expiration date are returned in the response object. :param tls_stage_id: ID of the requested TLS stage. :return:
TLSStageUsage:
result = await api.get_tls_stage( tls_stage_id="example", )
- async get_waf_stage(*, waf_stage_id: str) WafStageο
Get WAF stage. Retrieve information about an existing WAF stage, specified by its waf_stage_id. Its full details are returned in the response object. :param waf_stage_id: ID of the requested WAF stage. :return:
WafStageUsage:
result = await api.get_waf_stage( waf_stage_id="example", )
- async list_backend_stages(*, order_by: ListBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) ListBackendStagesResponseο
List backend stages. List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of backend stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of backend stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only backend stages from this pipeline will be returned. :param bucket_name: Bucket name to filter for. Only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for. Only backend stages with buckets in this region will be returned. :param lb_id: Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned. :return:
ListBackendStagesResponseUsage:
result = await api.list_backend_stages( pipeline_id="example", )
- async list_backend_stages_all(*, order_by: ListBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) List[BackendStage]ο
List backend stages. List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of backend stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of backend stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only backend stages from this pipeline will be returned. :param bucket_name: Bucket name to filter for. Only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for. Only backend stages with buckets in this region will be returned. :param lb_id: Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned. :return:
List[BackendStage]Usage:
result = await api.list_backend_stages_all( pipeline_id="example", )
- async list_cache_stages(*, order_by: ListCacheStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListCacheStagesResponseο
List cache stages. List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of cache stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of cache stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only cache stages from this pipeline will be returned. :return:
ListCacheStagesResponseUsage:
result = await api.list_cache_stages( pipeline_id="example", )
- async list_cache_stages_all(*, order_by: ListCacheStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[CacheStage]ο
List cache stages. List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of cache stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of cache stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only cache stages from this pipeline will be returned. :return:
List[CacheStage]Usage:
result = await api.list_cache_stages_all( pipeline_id="example", )
- async list_dns_stages(*, order_by: ListDNSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, fqdn: str | None = None) ListDNSStagesResponseο
List DNS stages. List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of DNS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of DNS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only DNS stages from this pipeline will be returned. :param fqdn: Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned. :return:
ListDNSStagesResponseUsage:
result = await api.list_dns_stages( pipeline_id="example", )
- async list_dns_stages_all(*, order_by: ListDNSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, fqdn: str | None = None) List[DNSStage]ο
List DNS stages. List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of DNS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of DNS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only DNS stages from this pipeline will be returned. :param fqdn: Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned. :return:
List[DNSStage]Usage:
result = await api.list_dns_stages_all( pipeline_id="example", )
- async list_head_stages(*, pipeline_id: str, page: int | None = None, page_size: int | None = None) ListHeadStagesResponseο
- Parameters:
pipeline_id β ID of the pipeline to update.
page β Page number to return, from the paginated results.
page_size β Number of head stages to return per page.
- Returns:
ListHeadStagesResponse
Usage:
result = await api.list_head_stages( pipeline_id="example", )
- async list_head_stages_all(*, pipeline_id: str, page: int | None = None, page_size: int | None = None) List[ListHeadStagesResponseHeadStage]ο
- Parameters:
pipeline_id β ID of the pipeline to update.
page β Page number to return, from the paginated results.
page_size β Number of head stages to return per page.
- Returns:
List[ListHeadStagesResponseHeadStage]
Usage:
result = await api.list_head_stages_all( pipeline_id="example", )
- async list_pipelines(*, order_by: ListPipelinesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None, has_backend_stage_lb: bool | None = None) ListPipelinesResponseο
List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of pipelines in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of pipelines to return per page. :param name: Pipeline name to filter for. Only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for. Only pipelines from this Organization will be returned. :param project_id: Project ID to filter for. Only pipelines from this Project will be returned. :param has_backend_stage_lb: Filter on backend stage. Only pipelines with a Load Balancer origin will be returned. :return:
ListPipelinesResponseUsage:
result = await api.list_pipelines()
- async list_pipelines_all(*, order_by: ListPipelinesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None, has_backend_stage_lb: bool | None = None) List[Pipeline]ο
List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of pipelines in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of pipelines to return per page. :param name: Pipeline name to filter for. Only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for. Only pipelines from this Organization will be returned. :param project_id: Project ID to filter for. Only pipelines from this Project will be returned. :param has_backend_stage_lb: Filter on backend stage. Only pipelines with a Load Balancer origin will be returned. :return:
List[Pipeline]Usage:
result = await api.list_pipelines_all()
- async list_pipelines_with_stages(*, order_by: ListPipelinesWithStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None) ListPipelinesWithStagesResponseο
- Parameters:
order_by β
page β
page_size β
name β
organization_id β
project_id β
- Returns:
ListPipelinesWithStagesResponse
Usage:
result = await api.list_pipelines_with_stages()
- async list_pipelines_with_stages_all(*, order_by: ListPipelinesWithStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None) List[PipelineStages]ο
- Parameters:
order_by β
page β
page_size β
name β
organization_id β
project_id β
- Returns:
List[PipelineStages]
Usage:
result = await api.list_pipelines_with_stages_all()
- async list_plans() ListPlansResponseο
- Returns:
ListPlansResponse
Usage:
result = await api.list_plans()
- async list_purge_requests(*, order_by: ListPurgeRequestsRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None, pipeline_id: str | None = None) ListPurgeRequestsResponseο
List purge requests. List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of purge requests in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of purge requests to return per page. :param organization_id: Organization ID to filter for. Only purge requests from this Project will be returned. :param project_id: Project ID to filter for. Only purge requests from this Project will be returned. :param pipeline_id: Pipeline ID to filter for. Only purge requests from this pipeline will be returned. :return:
ListPurgeRequestsResponseUsage:
result = await api.list_purge_requests()
- async list_purge_requests_all(*, order_by: ListPurgeRequestsRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None, pipeline_id: str | None = None) List[PurgeRequest]ο
List purge requests. List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of purge requests in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of purge requests to return per page. :param organization_id: Organization ID to filter for. Only purge requests from this Project will be returned. :param project_id: Project ID to filter for. Only purge requests from this Project will be returned. :param pipeline_id: Pipeline ID to filter for. Only purge requests from this pipeline will be returned. :return:
List[PurgeRequest]Usage:
result = await api.list_purge_requests_all()
- async list_route_rules(*, route_stage_id: str) ListRouteRulesResponseο
List route rules. List all route rules of an existing route stage, specified by its route_stage_id. :param route_stage_id: Route stage ID to filter for. Only route rules from this route stage will be returned. :return:
ListRouteRulesResponseUsage:
result = await api.list_route_rules( route_stage_id="example", )
- async list_route_stages(*, order_by: ListRouteStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListRouteStagesResponseο
List route stages. List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of route stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of route stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only route stages from this pipeline will be returned. :return:
ListRouteStagesResponseUsage:
result = await api.list_route_stages( pipeline_id="example", )
- async list_route_stages_all(*, order_by: ListRouteStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[RouteStage]ο
List route stages. List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of route stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of route stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only route stages from this pipeline will be returned. :return:
List[RouteStage]Usage:
result = await api.list_route_stages_all( pipeline_id="example", )
- async list_tls_stages(*, order_by: ListTLSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, secret_id: str | None = None, secret_region: str | None = None) ListTLSStagesResponseο
List TLS stages. List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of TLS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of TLS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only TLS stages from this pipeline will be returned. :param secret_id: Secret ID to filter for. Only TLS stages with this Secret ID will be returned. :param secret_region: Secret region to filter for. Only TLS stages with a Secret in this region will be returned. :return:
ListTLSStagesResponseUsage:
result = await api.list_tls_stages( pipeline_id="example", )
- async list_tls_stages_all(*, order_by: ListTLSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, secret_id: str | None = None, secret_region: str | None = None) List[TLSStage]ο
List TLS stages. List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of TLS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of TLS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only TLS stages from this pipeline will be returned. :param secret_id: Secret ID to filter for. Only TLS stages with this Secret ID will be returned. :param secret_region: Secret region to filter for. Only TLS stages with a Secret in this region will be returned. :return:
List[TLSStage]Usage:
result = await api.list_tls_stages_all( pipeline_id="example", )
- async list_waf_stages(*, order_by: ListWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListWafStagesResponseο
List WAF stages. List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of WAF stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of WAF stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only WAF stages from this pipeline will be returned. :return:
ListWafStagesResponseUsage:
result = await api.list_waf_stages( pipeline_id="example", )
- async list_waf_stages_all(*, order_by: ListWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[WafStage]ο
List WAF stages. List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of WAF stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of WAF stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only WAF stages from this pipeline will be returned. :return:
List[WafStage]Usage:
result = await api.list_waf_stages_all( pipeline_id="example", )
- async search_backend_stages(*, order_by: SearchBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, project_id: str | None = None, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) ListBackendStagesResponseο
- Parameters:
order_by β
page β
page_size β
project_id β
bucket_name β
bucket_region β
lb_id β
- Returns:
ListBackendStagesResponse
Usage:
result = await api.search_backend_stages()
- async search_route_rules(*, order_by: SearchRouteRulesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None) ListRouteRulesResponseο
List route rules. List all route rules of an organization or project. :param order_by: :param page: :param page_size: :param organization_id: :param project_id: :return:
ListRouteRulesResponseUsage:
result = await api.search_route_rules()
- async search_waf_stages(*, order_by: SearchWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, project_id: str | None = None) ListWafStagesResponseο
- Parameters:
order_by β
page β
page_size β
project_id β
- Returns:
ListWafStagesResponse
Usage:
result = await api.search_waf_stages()
- async select_plan(*, project_id: str | None = None, plan_name: PlanName | None = None) Planο
- Parameters:
project_id β
plan_name β
- Returns:
Plan
Usage:
result = await api.select_plan()
- async set_head_stage(*, pipeline_id: str, add_new_head_stage: SetHeadStageRequestAddNewHeadStage | None = None, remove_head_stage: SetHeadStageRequestRemoveHeadStage | None = None, swap_head_stage: SetHeadStageRequestSwapHeadStage | None = None) HeadStageResponseο
Configure a entry point to your pipeline. You must specify a head stage to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. You must specify either a add_new_head_stage (to add a new head stage), remove_head_stage (to remove a head stage) or swap_head_stage (to replace a head stage). :param pipeline_id: ID of the pipeline to update. :param add_new_head_stage: Add a new head stage. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :param remove_head_stage: Remove a head stage. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :param swap_head_stage: Replace a head stage with a new one. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :return:
HeadStageResponseUsage:
result = await api.set_head_stage( pipeline_id="example", )
- async set_route_rules(*, route_stage_id: str, route_rules: List[SetRouteRulesRequestRouteRule] | None = None) SetRouteRulesResponseο
Set route rules. Set the rules of an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param route_rules: List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id. :return:
SetRouteRulesResponseUsage:
result = await api.set_route_rules( route_stage_id="example", )
- async update_backend_stage(*, backend_stage_id: str, pipeline_id: str, scaleway_s3: ScalewayS3BackendConfig | None = None, scaleway_lb: ScalewayLbBackendConfig | None = None) BackendStageο
Update backend stage. Update the parameters of an existing backend stage, specified by its backend_stage_id. :param backend_stage_id: ID of the backend stage to update. :param pipeline_id: Pipeline ID the Backend stage belongs to. :param scaleway_s3: Scaleway Object Storage origin bucket (S3) linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param scaleway_lb: Scaleway Load Balancer origin linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :return:
BackendStageUsage:
result = await api.update_backend_stage( backend_stage_id="example", pipeline_id="example", )
- async update_cache_stage(*, cache_stage_id: str, fallback_ttl: str | None = None, include_cookies: bool | None = None, backend_stage_id: str | None = None, waf_stage_id: str | None = None, route_stage_id: str | None = None) CacheStageο
Update cache stage. Update the parameters of an existing cache stage, specified by its cache_stage_id. Parameters which can be updated include the fallback_ttl, include_cookies and backend_stage_id. :param cache_stage_id: ID of the cache stage to update. :param fallback_ttl: Time To Live (TTL) in seconds. Defines how long content is cached. :param include_cookies: Defines whether responses to requests with cookies must be stored in the cache. :param backend_stage_id: Backend stage ID the cache stage will be linked to. One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :return:
CacheStageUsage:
result = await api.update_cache_stage( cache_stage_id="example", )
- async update_dns_stage(*, dns_stage_id: str, fqdns: List[str] | None = None, tls_stage_id: str | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None) DNSStageο
Update DNS stage. Update the parameters of an existing DNS stage, specified by its dns_stage_id. :param dns_stage_id: ID of the DNS stage to update. :param fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) attached to the stage. :param tls_stage_id: TLS stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param cache_stage_id: Cache stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param backend_stage_id: Backend stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :return:
DNSStageUsage:
result = await api.update_dns_stage( dns_stage_id="example", )
- async update_pipeline(*, pipeline_id: str, name: str | None = None, description: str | None = None) Pipelineο
Update pipeline. Update the parameters of an existing pipeline, specified by its pipeline_id. Parameters which can be updated include the name, description and dns_stage_id. :param pipeline_id: ID of the pipeline to update. :param name: Name of the pipeline. :param description: Description of the pipeline. :return:
PipelineUsage:
result = await api.update_pipeline( pipeline_id="example", )
- async update_route_stage(*, route_stage_id: str, waf_stage_id: str | None = None) RouteStageο
Update route stage. Update the parameters of an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param waf_stage_id: ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. One-Of (βnextβ): at most one of βwaf_stage_idβ could be set. :return:
RouteStageUsage:
result = await api.update_route_stage( route_stage_id="example", )
- async update_tls_stage(*, tls_stage_id: str, tls_secrets_config: TLSSecretsConfig | None = None, managed_certificate: bool | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, route_stage_id: str | None = None, waf_stage_id: str | None = None) TLSStageο
Update TLS stage. Update the parameters of an existing TLS stage, specified by its tls_stage_id. Both tls_secrets_config and managed_certificate parameters can be updated. :param tls_stage_id: ID of the TLS stage to update. :param tls_secrets_config: Secret (from Scaleway Secret-Manager) containing your custom certificate. :param managed_certificate: True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint. :param cache_stage_id: Cache stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param backend_stage_id: Backend stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :return:
TLSStageUsage:
result = await api.update_tls_stage( tls_stage_id="example", )
- async update_waf_stage(*, waf_stage_id: str, mode: WafStageMode | None = None, paranoia_level: int | None = None, backend_stage_id: str | None = None) WafStageο
Update WAF stage. Update the parameters of an existing WAF stage, specified by its waf_stage_id. Both mode and paranoia_level parameters can be updated. :param waf_stage_id: ID of the WAF stage to update. :param mode: Mode defining WAF behavior (disable/log_only/enable). :param paranoia_level: Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. :param backend_stage_id: ID of the backend stage to forward requests to after the WAF stage. One-Of (βnextβ): at most one of βbackend_stage_idβ could be set. :return:
WafStageUsage:
result = await api.update_waf_stage( waf_stage_id="example", )
- async wait_for_pipeline(*, pipeline_id: str, options: WaitForOptions[Pipeline, bool | Awaitable[bool]] | None = None) Pipelineο
Get pipeline. Retrieve information about an existing pipeline, specified by its pipeline_id. Its full details, including errors, are returned in the response object. :param pipeline_id: ID of the requested pipeline. :return:
PipelineUsage:
result = await api.get_pipeline( pipeline_id="example", )
- async wait_for_purge_request(*, purge_request_id: str, options: WaitForOptions[PurgeRequest, bool | Awaitable[bool]] | None = None) PurgeRequestο
Get purge request. Retrieve information about a purge request, specified by its purge_request_id. Its full details, including status and target, are returned in the response object. :param purge_request_id: ID of the requested purge request. :return:
PurgeRequestUsage:
result = await api.get_purge_request( purge_request_id="example", )
scaleway_async.edge_services.v1beta1.content moduleο
- scaleway_async.edge_services.v1beta1.content.PIPELINE_TRANSIENT_STATUSES: List[PipelineStatus] = [<PipelineStatus.PENDING: 'pending'>]ο
Lists transient statutes of the enum
PipelineStatus.
- scaleway_async.edge_services.v1beta1.content.PURGE_REQUEST_TRANSIENT_STATUSES: List[PurgeRequestStatus] = [<PurgeRequestStatus.PENDING: 'pending'>]ο
Lists transient statutes of the enum
PurgeRequestStatus.
scaleway_async.edge_services.v1beta1.marshalling moduleο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_AddRouteRulesRequest(request: AddRouteRulesRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CheckDomainRequest(request: CheckDomainRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CheckLbOriginRequest(request: CheckLbOriginRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CheckPEMChainRequest(request: CheckPEMChainRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CheckPEMChainRequestSecretChain(request: CheckPEMChainRequestSecretChain, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateBackendStageRequest(request: CreateBackendStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateCacheStageRequest(request: CreateCacheStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateDNSStageRequest(request: CreateDNSStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreatePipelineRequest(request: CreatePipelineRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreatePurgeRequestRequest(request: CreatePurgeRequestRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateRouteStageRequest(request: CreateRouteStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateTLSStageRequest(request: CreateTLSStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_CreateWafStageRequest(request: CreateWafStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_RuleHttpMatch(request: RuleHttpMatch, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_RuleHttpMatchPathFilter(request: RuleHttpMatchPathFilter, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_ScalewayLb(request: ScalewayLb, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_ScalewayLbBackendConfig(request: ScalewayLbBackendConfig, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_ScalewayS3BackendConfig(request: ScalewayS3BackendConfig, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SelectPlanRequest(request: SelectPlanRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetHeadStageRequest(request: SetHeadStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetHeadStageRequestAddNewHeadStage(request: SetHeadStageRequestAddNewHeadStage, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetHeadStageRequestRemoveHeadStage(request: SetHeadStageRequestRemoveHeadStage, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetHeadStageRequestSwapHeadStage(request: SetHeadStageRequestSwapHeadStage, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetRouteRulesRequest(request: SetRouteRulesRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_SetRouteRulesRequestRouteRule(request: SetRouteRulesRequestRouteRule, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_TLSSecret(request: TLSSecret, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_TLSSecretsConfig(request: TLSSecretsConfig, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateBackendStageRequest(request: UpdateBackendStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateCacheStageRequest(request: UpdateCacheStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateDNSStageRequest(request: UpdateDNSStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdatePipelineRequest(request: UpdatePipelineRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateRouteStageRequest(request: UpdateRouteStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateTLSStageRequest(request: UpdateTLSStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.marshal_UpdateWafStageRequest(request: UpdateWafStageRequest, defaults: ProfileDefaults) Dict[str, Any]ο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_AddRouteRulesResponse(data: Any) AddRouteRulesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_BackendStage(data: Any) BackendStageο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_CacheStage(data: Any) CacheStageο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_CheckDomainResponse(data: Any) CheckDomainResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_CheckLbOriginResponse(data: Any) CheckLbOriginResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_CheckPEMChainResponse(data: Any) CheckPEMChainResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_GetBillingResponse(data: Any) GetBillingResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_HeadStageResponse(data: Any) HeadStageResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_HeadStageResponseHeadStage(data: Any) HeadStageResponseHeadStageο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListBackendStagesResponse(data: Any) ListBackendStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListCacheStagesResponse(data: Any) ListCacheStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListDNSStagesResponse(data: Any) ListDNSStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListHeadStagesResponse(data: Any) ListHeadStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListHeadStagesResponseHeadStage(data: Any) ListHeadStagesResponseHeadStageο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListPipelinesResponse(data: Any) ListPipelinesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListPipelinesWithStagesResponse(data: Any) ListPipelinesWithStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListPlansResponse(data: Any) ListPlansResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListPurgeRequestsResponse(data: Any) ListPurgeRequestsResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListRouteRulesResponse(data: Any) ListRouteRulesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListRouteStagesResponse(data: Any) ListRouteStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListTLSStagesResponse(data: Any) ListTLSStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ListWafStagesResponse(data: Any) ListWafStagesResponseο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_PipelineError(data: Any) PipelineErrorο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_PipelineStages(data: Any) PipelineStagesο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_PlanDetails(data: Any) PlanDetailsο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_PlanUsageDetails(data: Any) PlanUsageDetailsο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_PurgeRequest(data: Any) PurgeRequestο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_RouteStage(data: Any) RouteStageο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_RuleHttpMatch(data: Any) RuleHttpMatchο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_RuleHttpMatchPathFilter(data: Any) RuleHttpMatchPathFilterο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ScalewayLb(data: Any) ScalewayLbο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ScalewayLbBackendConfig(data: Any) ScalewayLbBackendConfigο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_ScalewayS3BackendConfig(data: Any) ScalewayS3BackendConfigο
- scaleway_async.edge_services.v1beta1.marshalling.unmarshal_SetRouteRulesResponse(data: Any) SetRouteRulesResponseο
scaleway_async.edge_services.v1beta1.types moduleο
- class scaleway_async.edge_services.v1beta1.types.AddRouteRulesRequest(route_stage_id: 'str', route_rules: 'Optional[List[SetRouteRulesRequestRouteRule]]' = <factory>, after_position: 'Optional[int]' = 0, before_position: 'Optional[int]' = 0)ο
Bases:
object- after_position: int | None = 0ο
- before_position: int | None = 0ο
- route_rules: List[SetRouteRulesRequestRouteRule] | Noneο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- route_stage_id: strο
ID of the route stage to update.
- class scaleway_async.edge_services.v1beta1.types.AddRouteRulesResponse(route_rules: 'List[RouteRule]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.types.BackendStage(id: 'str', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the backend stage was created.
- id: strο
ID of the backend stage.
- pipeline_id: strο
Pipeline ID the backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- updated_at: datetime | None = Noneο
Date the backend stage was last updated.
- class scaleway_async.edge_services.v1beta1.types.CacheStage(id: 'str', pipeline_id: 'str', include_cookies: 'bool', fallback_ttl: 'Optional[str]' = None, created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the cache stage was created.
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- id: strο
ID of the cache stage.
- include_cookies: boolο
Defines whether responses to requests with cookies must be stored in the cache.
- pipeline_id: strο
Pipeline ID the cache stage belongs to.
- route_stage_id: str | None = Noneο
- updated_at: datetime | None = Noneο
Date the cache stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CheckDomainRequest(fqdn: 'str', cname: 'str', project_id: 'Optional[str]' = None)ο
Bases:
object- cname: strο
- fqdn: strο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CheckDomainResponse(is_valid: 'bool')ο
Bases:
object- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.types.CheckLbOriginRequest(lb: 'Optional[ScalewayLb]' = None)ο
Bases:
object- lb: ScalewayLb | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CheckLbOriginResponse(is_valid: 'bool', error_type: 'LbOriginError')ο
Bases:
object- error_type: LbOriginErrorο
- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.types.CheckPEMChainRequest(fqdn: 'str', project_id: 'Optional[str]' = None, secret: 'Optional[CheckPEMChainRequestSecretChain]' = None, raw: 'Optional[str]' = None)ο
Bases:
object- fqdn: strο
- project_id: str | None = Noneο
- raw: str | None = Noneο
- secret: CheckPEMChainRequestSecretChain | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CheckPEMChainRequestSecretChain(secret_id: 'str', secret_region: 'str')ο
Bases:
object- secret_id: strο
- secret_region: strο
- class scaleway_async.edge_services.v1beta1.types.CheckPEMChainResponse(is_valid: 'bool')ο
Bases:
object- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.types.CreateBackendStageRequest(pipeline_id: 'str', scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- pipeline_id: strο
Pipeline ID the Backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CreateCacheStageRequest(pipeline_id: 'str', fallback_ttl: 'Optional[str]' = None, include_cookies: 'Optional[bool]' = False, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- include_cookies: bool | None = Falseο
Defines whether responses to requests with cookies must be stored in the cache.
- pipeline_id: strο
Pipeline ID the Cache stage belongs to.
- route_stage_id: str | None = Noneο
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CreateDNSStageRequest(pipeline_id: 'str', fqdns: 'Optional[List[str]]' = <factory>, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- fqdns: List[str] | Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline_id: strο
Pipeline ID the DNS stage belongs to.
- tls_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CreatePipelineRequest(name: 'str', description: 'str', project_id: 'Optional[str]' = None)ο
Bases:
object- description: strο
Description of the pipeline.
- name: strο
Name of the pipeline.
- project_id: str | None = Noneο
Project ID in which the pipeline will be created.
- class scaleway_async.edge_services.v1beta1.types.CreatePurgeRequestRequest(pipeline_id: 'str', assets: 'Optional[List[str]]' = <factory>, all: 'Optional[bool]' = False)ο
Bases:
object- all: bool | None = Falseο
- assets: List[str] | Noneο
- pipeline_id: strο
Pipeline ID in which the purge request will be created.
- class scaleway_async.edge_services.v1beta1.types.CreateRouteStageRequest(pipeline_id: 'str', waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- pipeline_id: strο
Pipeline ID the route stage belongs to.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CreateTLSStageRequest(pipeline_id: 'str', secrets: 'Optional[List[TLSSecret]]' = <factory>, managed_certificate: 'Optional[bool]' = False, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- managed_certificate: bool | None = Falseο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- pipeline_id: strο
Pipeline ID the TLS stage belongs to.
- route_stage_id: str | None = Noneο
- secrets: List[TLSSecret] | Noneο
Secret (from Scaleway Secret Manager) containing your custom certificate.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.CreateWafStageRequest(pipeline_id: 'str', paranoia_level: 'int', mode: 'Optional[WafStageMode]' = <WafStageMode.UNKNOWN_MODE: 'unknown_mode'>, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- mode: WafStageMode | None = 'unknown_mode'ο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: intο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- pipeline_id: strο
Pipeline ID the WAF stage belongs to.
- class scaleway_async.edge_services.v1beta1.types.DNSStage(id: 'str', fqdns: 'List[str]', type_: 'DNSStageType', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the DNS stage was created.
- fqdns: List[str]ο
List of Fully Qualified Domain Names attached to the stage.
- id: strο
ID of the DNS stage.
- pipeline_id: strο
Pipeline ID the DNS stage belongs to.
- tls_stage_id: str | None = Noneο
- type_: DNSStageTypeο
Type of the stage.
- updated_at: datetime | None = Noneο
Date the DNS stage was last updated.
- class scaleway_async.edge_services.v1beta1.types.DNSStageType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- AUTO = 'auto'ο
- CUSTOM = 'custom'ο
- MANAGED = 'managed'ο
- UNKNOWN_TYPE = 'unknown_type'ο
- class scaleway_async.edge_services.v1beta1.types.DeleteBackendStageRequest(backend_stage_id: 'str')ο
Bases:
object- backend_stage_id: strο
ID of the backend stage to delete.
- class scaleway_async.edge_services.v1beta1.types.DeleteCacheStageRequest(cache_stage_id: 'str')ο
Bases:
object- cache_stage_id: strο
ID of the cache stage to delete.
- class scaleway_async.edge_services.v1beta1.types.DeleteCurrentPlanRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.DeleteDNSStageRequest(dns_stage_id: 'str')ο
Bases:
object- dns_stage_id: strο
ID of the DNS stage to delete.
- class scaleway_async.edge_services.v1beta1.types.DeletePipelineRequest(pipeline_id: 'str')ο
Bases:
object- pipeline_id: strο
ID of the pipeline to delete.
- class scaleway_async.edge_services.v1beta1.types.DeleteRouteStageRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
ID of the route stage to delete.
- class scaleway_async.edge_services.v1beta1.types.DeleteTLSStageRequest(tls_stage_id: 'str')ο
Bases:
object- tls_stage_id: strο
ID of the TLS stage to delete.
- class scaleway_async.edge_services.v1beta1.types.DeleteWafStageRequest(waf_stage_id: 'str')ο
Bases:
object- waf_stage_id: strο
ID of the WAF stage to delete.
- class scaleway_async.edge_services.v1beta1.types.GetBackendStageRequest(backend_stage_id: 'str')ο
Bases:
object- backend_stage_id: strο
ID of the requested backend stage.
- class scaleway_async.edge_services.v1beta1.types.GetBillingRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.GetBillingResponse(pipeline_number: 'int', current_plan_cache_usage: 'int', extra_cache_usage: 'int', current_plan_waf_usage: 'int', extra_waf_usage: 'int', plans_usage_details: 'Dict[str, PlanUsageDetails]', current_plan: 'Optional[PlanDetails]' = None, plan_cost: 'Optional[Money]' = None, extra_pipelines_cost: 'Optional[Money]' = None, extra_cache_cost: 'Optional[Money]' = None, extra_waf_cost: 'Optional[Money]' = None, waf_add_on: 'Optional[Money]' = None, total_cost: 'Optional[Money]' = None)ο
Bases:
object- current_plan: PlanDetails | None = Noneο
Information on the currently-selected, active Edge Services subscription plan.
- current_plan_cache_usage: intο
Total amount of data egressed from the cache in gigabytes from the beginning of the month, for the active subscription plan.
- current_plan_waf_usage: intο
Total number of requests processed by the WAF since the beginning of the current month, for the active subscription plan.
- extra_cache_cost: Money | None = Noneο
Cost to date (this month) of the data egressed from the cache that is not included in the subscription plans.
- extra_cache_usage: intο
Total amount of extra data egressed from cache in gigabytes from the beginning of the month, not included in the subscription plans.
- extra_pipelines_cost: Money | None = Noneο
Cost to date (this month) of pipelines not included in the subscription plans.
- extra_waf_cost: Money | None = Noneο
Cost to date (this month) of the extra requests processed by the WAF that were not included in the subscription plans.
- extra_waf_usage: intο
Total number of extra requests processed by the WAF from the beginning of the month, not included in the subscription plans.
- pipeline_number: intο
Total number of pipelines currently configured.
- plan_cost: Money | None = Noneο
Cost to date (this month) for Edge Service subscription plans. This comprises the pro-rata cost of the current subscription plan, and any previous subscription plans that were active earlier in the month.
- plans_usage_details: Dict[str, PlanUsageDetails]ο
Detailed costs and usage for all Edge Services subscription plans that were activated during the month.
- class scaleway_async.edge_services.v1beta1.types.GetCacheStageRequest(cache_stage_id: 'str')ο
Bases:
object- cache_stage_id: strο
ID of the requested cache stage.
- class scaleway_async.edge_services.v1beta1.types.GetCurrentPlanRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.GetDNSStageRequest(dns_stage_id: 'str')ο
Bases:
object- dns_stage_id: strο
ID of the requested DNS stage.
- class scaleway_async.edge_services.v1beta1.types.GetPipelineRequest(pipeline_id: 'str')ο
Bases:
object- pipeline_id: strο
ID of the requested pipeline.
- class scaleway_async.edge_services.v1beta1.types.GetPurgeRequestRequest(purge_request_id: 'str')ο
Bases:
object- purge_request_id: strο
ID of the requested purge request.
- class scaleway_async.edge_services.v1beta1.types.GetRouteStageRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
ID of the requested route stage.
- class scaleway_async.edge_services.v1beta1.types.GetTLSStageRequest(tls_stage_id: 'str')ο
Bases:
object- tls_stage_id: strο
ID of the requested TLS stage.
- class scaleway_async.edge_services.v1beta1.types.GetWafStageRequest(waf_stage_id: 'str')ο
Bases:
object- waf_stage_id: strο
ID of the requested WAF stage.
- class scaleway_async.edge_services.v1beta1.types.HeadStageResponse(head_stage: 'Optional[HeadStageResponseHeadStage]' = None)ο
Bases:
object- head_stage: HeadStageResponseHeadStage | None = Noneο
Modified or created head stage.
- class scaleway_async.edge_services.v1beta1.types.HeadStageResponseHeadStage(dns_stage_id: 'Optional[str]' = None)ο
Bases:
object- dns_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.LbOriginError(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CONNECTION_REFUSED = 'connection_refused'ο
- TIMEOUT = 'timeout'ο
- TLS_ERROR = 'tls_error'ο
- UNKNOWN = 'unknown'ο
- class scaleway_async.edge_services.v1beta1.types.ListBackendStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListBackendStagesRequestOrderBy]' = <ListBackendStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, lb_id: 'Optional[str]' = None)ο
Bases:
object- bucket_name: str | None = Noneο
Bucket name to filter for. Only backend stages from this Bucket will be returned.
- bucket_region: str | None = Noneο
Bucket region to filter for. Only backend stages with buckets in this region will be returned.
- lb_id: str | None = Noneο
Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned.
- order_by: ListBackendStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of backend stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of backend stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only backend stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListBackendStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListBackendStagesResponse(stages: 'List[BackendStage]', total_count: 'int')ο
Bases:
object- stages: List[BackendStage]ο
Paginated list of backend stages.
- total_count: intο
Count of all backend stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListCacheStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListCacheStagesRequestOrderBy]' = <ListCacheStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListCacheStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of cache stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of cache stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only cache stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListCacheStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListCacheStagesResponse(stages: 'List[CacheStage]', total_count: 'int')ο
Bases:
object- stages: List[CacheStage]ο
Paginated list of cache stages.
- total_count: intο
Count of all cache stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListDNSStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListDNSStagesRequestOrderBy]' = <ListDNSStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, fqdn: 'Optional[str]' = None)ο
Bases:
object- fqdn: str | None = Noneο
Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned.
- order_by: ListDNSStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of DNS stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of DNS stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only DNS stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListDNSStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListDNSStagesResponse(stages: 'List[DNSStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all DNS stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListHeadStagesRequest(pipeline_id: 'str', page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of head stages to return per page.
- pipeline_id: strο
ID of the pipeline to update.
- class scaleway_async.edge_services.v1beta1.types.ListHeadStagesResponse(head_stages: 'List[ListHeadStagesResponseHeadStage]', total_count: 'int')ο
Bases:
object- head_stages: List[ListHeadStagesResponseHeadStage]ο
Number of head stages to return per page.
- total_count: intο
Count of all head stages matching the requested pipeline_id.
- class scaleway_async.edge_services.v1beta1.types.ListHeadStagesResponseHeadStage(dns_stage_id: 'Optional[str]' = None)ο
Bases:
object- dns_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesRequest(order_by: 'Optional[ListPipelinesRequestOrderBy]' = <ListPipelinesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, name: 'Optional[str]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None, has_backend_stage_lb: 'Optional[bool]' = False)ο
Bases:
object- has_backend_stage_lb: bool | None = Falseο
Filter on backend stage. Only pipelines with a Load Balancer origin will be returned.
- name: str | None = Noneο
Pipeline name to filter for. Only pipelines with this string within their name will be returned.
- order_by: ListPipelinesRequestOrderBy | None = 'created_at_asc'ο
Sort order of pipelines in the response.
- organization_id: str | None = Noneο
Organization ID to filter for. Only pipelines from this Organization will be returned.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of pipelines to return per page.
- project_id: str | None = Noneο
Project ID to filter for. Only pipelines from this Project will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- NAME_ASC = 'name_asc'ο
- NAME_DESC = 'name_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesResponse(pipelines: 'List[Pipeline]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all pipelines matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesWithStagesRequest(order_by: 'Optional[ListPipelinesWithStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, name: 'Optional[str]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- name: str | None = Noneο
- order_by: ListPipelinesWithStagesRequestOrderBy | None = Noneο
- organization_id: str | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesWithStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- NAME_ASC = 'name_asc'ο
- NAME_DESC = 'name_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListPipelinesWithStagesResponse(pipelines: 'List[PipelineStages]', total_count: 'int')ο
Bases:
object- pipelines: List[PipelineStages]ο
- total_count: intο
- class scaleway_async.edge_services.v1beta1.types.ListPlansResponse(total_count: 'int', plans: 'List[PlanDetails]')ο
Bases:
object- plans: List[PlanDetails]ο
- total_count: intο
- class scaleway_async.edge_services.v1beta1.types.ListPurgeRequestsRequest(order_by: 'Optional[ListPurgeRequestsRequestOrderBy]' = <ListPurgeRequestsRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None, pipeline_id: 'Optional[str]' = None)ο
Bases:
object- order_by: ListPurgeRequestsRequestOrderBy | None = 'created_at_asc'ο
Sort order of purge requests in the response.
- organization_id: str | None = Noneο
Organization ID to filter for. Only purge requests from this Project will be returned.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of purge requests to return per page.
- pipeline_id: str | None = Noneο
Pipeline ID to filter for. Only purge requests from this pipeline will be returned.
- project_id: str | None = Noneο
Project ID to filter for. Only purge requests from this Project will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListPurgeRequestsRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListPurgeRequestsResponse(purge_requests: 'List[PurgeRequest]', total_count: 'int')ο
Bases:
object- purge_requests: List[PurgeRequest]ο
Paginated list of purge requests.
- total_count: intο
Count of all purge requests matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListRouteRulesRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
Route stage ID to filter for. Only route rules from this route stage will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListRouteRulesResponse(route_rules: 'List[RouteRule]', total_count: 'int')ο
Bases:
object- route_rules: List[RouteRule]ο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- total_count: intο
Count of all route rules matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListRouteStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListRouteStagesRequestOrderBy]' = <ListRouteStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListRouteStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of route stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of route stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only route stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListRouteStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListRouteStagesResponse(stages: 'List[RouteStage]', total_count: 'int')ο
Bases:
object- stages: List[RouteStage]ο
Paginated list of summarized route stages.
- total_count: intο
Count of all route stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListTLSStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListTLSStagesRequestOrderBy]' = <ListTLSStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, secret_id: 'Optional[str]' = None, secret_region: 'Optional[str]' = None)ο
Bases:
object- order_by: ListTLSStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of TLS stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of TLS stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only TLS stages from this pipeline will be returned.
- secret_id: str | None = Noneο
Secret ID to filter for. Only TLS stages with this Secret ID will be returned.
- secret_region: str | None = Noneο
Secret region to filter for. Only TLS stages with a Secret in this region will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListTLSStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListTLSStagesResponse(stages: 'List[TLSStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all TLS stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.ListWafStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListWafStagesRequestOrderBy]' = <ListWafStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListWafStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of WAF stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of WAF stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only WAF stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.types.ListWafStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.ListWafStagesResponse(stages: 'List[WafStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all WAF stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.types.Pipeline(id: 'str', name: 'str', description: 'str', status: 'PipelineStatus', errors: 'List[PipelineError]', project_id: 'str', organization_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the pipeline was created.
- description: strο
Description of the pipeline.
- errors: List[PipelineError]ο
Errors of the pipeline.
- id: strο
ID of the pipeline.
- name: strο
Name of the pipeline.
- organization_id: strο
Organization ID of the pipeline.
- project_id: strο
Project ID of the pipeline.
- status: PipelineStatusο
Status of the pipeline.
- updated_at: datetime | None = Noneο
Date the pipeline was last updated.
- class scaleway_async.edge_services.v1beta1.types.PipelineError(stage: 'PipelineErrorStage', code: 'PipelineErrorCode', severity: 'PipelineErrorSeverity', message: 'str', type_: 'PipelineErrorType')ο
Bases:
object- code: PipelineErrorCodeο
- message: strο
- severity: PipelineErrorSeverityο
- stage: PipelineErrorStageο
- type_: PipelineErrorTypeο
- class scaleway_async.edge_services.v1beta1.types.PipelineErrorCode(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DNS_CNAME_DONT_EXIST = 'dns_cname_dont_exist'ο
- DNS_CNAME_RESOLVE = 'dns_cname_resolve'ο
- DNS_DOMAIN_DONT_EXIST = 'dns_domain_dont_exist'ο
- DNS_FORBIDDEN_ROOT_DOMAIN = 'dns_forbidden_root_domain'ο
- DNS_FORBIDDEN_SCW_CLOUD = 'dns_forbidden_scw_cloud'ο
- DNS_FQDN_ALREADY_EXISTS = 'dns_fqdn_already_exists'ο
- DNS_FQDN_ALREADY_IN_USE = 'dns_fqdn_already_in_use'ο
- DNS_INVALID_FORMAT = 'dns_invalid_format'ο
- DNS_INVALID_TLD = 'dns_invalid_tld'ο
- PIPELINE_INVALID_WORKFLOW = 'pipeline_invalid_workflow'ο
- PIPELINE_MISSING_HEAD_STAGE = 'pipeline_missing_head_stage'ο
- TLS_CERT_DELETED = 'tls_cert_deleted'ο
- TLS_CERT_DISABLED = 'tls_cert_disabled'ο
- TLS_CERT_EXPIRED = 'tls_cert_expired'ο
- TLS_CERT_INVALID_FORMAT = 'tls_cert_invalid_format'ο
- TLS_CERT_MISSING = 'tls_cert_missing'ο
- TLS_CHAIN_ORDER = 'tls_chain_order'ο
- TLS_KEY_INVALID_FORMAT = 'tls_key_invalid_format'ο
- TLS_KEY_MISSING = 'tls_key_missing'ο
- TLS_KEY_TOO_MANY = 'tls_key_too_many'ο
- TLS_MANAGED_DOMAIN_RATE_LIMIT = 'tls_managed_domain_rate_limit'ο
- TLS_MANAGED_INTERNAL = 'tls_managed_internal'ο
- TLS_PAIR_MISMATCH = 'tls_pair_mismatch'ο
- TLS_ROOT_INCONSISTENT = 'tls_root_inconsistent'ο
- TLS_ROOT_INCORRECT = 'tls_root_incorrect'ο
- TLS_ROOT_MISSING = 'tls_root_missing'ο
- TLS_SAN_MISMATCH = 'tls_san_mismatch'ο
- TLS_SELF_SIGNED = 'tls_self_signed'ο
- UNKNOWN_CODE = 'unknown_code'ο
- class scaleway_async.edge_services.v1beta1.types.PipelineErrorSeverity(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CRITICAL = 'critical'ο
- UNKNOWN_SEVERITY = 'unknown_severity'ο
- WARNING = 'warning'ο
- class scaleway_async.edge_services.v1beta1.types.PipelineErrorStage(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- BACKEND = 'backend'ο
- CACHE = 'cache'ο
- DNS = 'dns'ο
- TLS = 'tls'ο
- UNKNOWN_STAGE = 'unknown_stage'ο
- class scaleway_async.edge_services.v1beta1.types.PipelineErrorType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CONFIG = 'config'ο
- RUNTIME = 'runtime'ο
- UNKNOWN_TYPE = 'unknown_type'ο
- class scaleway_async.edge_services.v1beta1.types.PipelineStages(dns_stages: 'List[DNSStage]', tls_stages: 'List[TLSStage]', cache_stages: 'List[CacheStage]', backend_stages: 'List[BackendStage]', waf_stages: 'List[WafStage]', route_stages: 'List[RouteStage]', pipeline: 'Optional[Pipeline]' = None)ο
Bases:
object- backend_stages: List[BackendStage]ο
- cache_stages: List[CacheStage]ο
- route_stages: List[RouteStage]ο
- class scaleway_async.edge_services.v1beta1.types.PipelineStatus(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- ERROR = 'error'ο
- LOCKED = 'locked'ο
- PENDING = 'pending'ο
- READY = 'ready'ο
- UNKNOWN_STATUS = 'unknown_status'ο
- WARNING = 'warning'ο
- class scaleway_async.edge_services.v1beta1.types.Plan(plan_name: 'PlanName')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.types.PlanDetails(plan_name: 'PlanName', package_gb: 'int', pipeline_limit: 'int', waf_requests: 'int')ο
Bases:
object- package_gb: intο
Amount of egress data from cache included in subscription plan.
- pipeline_limit: intο
Number of pipelines included in subscription plan.
- waf_requests: intο
Number of WAF requests included in subscription plan.
- class scaleway_async.edge_services.v1beta1.types.PlanName(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- ADVANCED = 'advanced'ο
- PROFESSIONAL = 'professional'ο
- STARTER = 'starter'ο
- UNKNOWN_NAME = 'unknown_name'ο
- class scaleway_async.edge_services.v1beta1.types.PlanUsageDetails(plan_cost: 'Optional[Money]' = None)ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.types.PurgeRequest(id: 'str', pipeline_id: 'str', status: 'PurgeRequestStatus', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, assets: 'Optional[List[str]]' = <factory>, all: 'Optional[bool]' = False)ο
Bases:
object- all: bool | None = Falseο
- assets: List[str] | Noneο
- created_at: datetime | None = Noneο
Date the purge request was created.
- id: strο
ID of the purge request.
- pipeline_id: strο
Pipeline ID the purge request belongs to.
- status: PurgeRequestStatusο
Status of the purge request.
- updated_at: datetime | None = Noneο
Date the purge request was last updated.
- class scaleway_async.edge_services.v1beta1.types.PurgeRequestStatus(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DONE = 'done'ο
- ERROR = 'error'ο
- PENDING = 'pending'ο
- UNKNOWN_STATUS = 'unknown_status'ο
- class scaleway_async.edge_services.v1beta1.types.RouteRule(position: 'int', route_stage_id: 'str', rule_http_match: 'Optional[RuleHttpMatch]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- position: intο
Position of the rule which determines the order of processing within the route stage.
- route_stage_id: strο
Route stage ID the route rule belongs to.
- rule_http_match: RuleHttpMatch | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.RouteStage(id: 'str', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the route stage was created.
- id: strο
ID of the route stage.
- pipeline_id: strο
Pipeline ID the route stage belongs to.
- updated_at: datetime | None = Noneο
Date the route stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.RuleHttpMatch(method_filters: 'List[RuleHttpMatchMethodFilter]', path_filter: 'Optional[RuleHttpMatchPathFilter]' = None)ο
Bases:
object- method_filters: List[RuleHttpMatchMethodFilter]ο
HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are get, post, put, patch, delete, head, options. All methods will match if none is provided.
- path_filter: RuleHttpMatchPathFilter | None = Noneο
HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided.
- class scaleway_async.edge_services.v1beta1.types.RuleHttpMatchMethodFilter(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DELETE = 'delete'ο
- GET = 'get'ο
- HEAD = 'head'ο
- OPTIONS = 'options'ο
- PATCH = 'patch'ο
- POST = 'post'ο
- PUT = 'put'ο
- UNKNOWN_METHOD_FILTER = 'unknown_method_filter'ο
- class scaleway_async.edge_services.v1beta1.types.RuleHttpMatchPathFilter(path_filter_type: 'RuleHttpMatchPathFilterPathFilterType', value: 'str')ο
Bases:
object- path_filter_type: RuleHttpMatchPathFilterPathFilterTypeο
Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the regex type.
- value: strο
Value to be matched for the HTTP URL path.
- class scaleway_async.edge_services.v1beta1.types.RuleHttpMatchPathFilterPathFilterType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- REGEX = 'regex'ο
- UNKNOWN_PATH_FILTER = 'unknown_path_filter'ο
- class scaleway_async.edge_services.v1beta1.types.ScalewayLb(id: 'str', zone: 'ScwZone', frontend_id: 'str', is_ssl: 'Optional[bool]' = False, domain_name: 'Optional[str]' = None)ο
Bases:
object- domain_name: str | None = Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer.
- frontend_id: strο
ID of the frontend linked to the Load Balancer.
- id: strο
ID of the Load Balancer.
- is_ssl: bool | None = Falseο
Defines whether the Load Balancerβs frontend handles SSL connections.
- zone: strο
Zone of the Load Balancer.
- class scaleway_async.edge_services.v1beta1.types.ScalewayLbBackendConfig(lbs: 'List[ScalewayLb]')ο
Bases:
object- lbs: List[ScalewayLb]ο
Load Balancer information.
- class scaleway_async.edge_services.v1beta1.types.ScalewayS3BackendConfig(bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, is_website: 'Optional[bool]' = False)ο
Bases:
object- bucket_name: str | None = Noneο
Name of the Bucket.
- bucket_region: str | None = Noneο
Region of the Bucket.
- is_website: bool | None = Falseο
Defines whether the bucket website feature is enabled.
- class scaleway_async.edge_services.v1beta1.types.SearchBackendStagesRequest(order_by: 'Optional[SearchBackendStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, project_id: 'Optional[str]' = None, bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, lb_id: 'Optional[str]' = None)ο
Bases:
object- bucket_name: str | None = Noneο
- bucket_region: str | None = Noneο
- lb_id: str | None = Noneο
- order_by: SearchBackendStagesRequestOrderBy | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SearchBackendStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.SearchRouteRulesRequest(order_by: 'Optional[SearchRouteRulesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- order_by: SearchRouteRulesRequestOrderBy | None = Noneο
- organization_id: str | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SearchRouteRulesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.SearchWafStagesRequest(order_by: 'Optional[SearchWafStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- order_by: SearchWafStagesRequestOrderBy | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SearchWafStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.types.SelectPlanRequest(project_id: 'Optional[str]' = None, plan_name: 'Optional[PlanName]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SetHeadStageRequest(pipeline_id: 'str', add_new_head_stage: 'Optional[SetHeadStageRequestAddNewHeadStage]' = None, remove_head_stage: 'Optional[SetHeadStageRequestRemoveHeadStage]' = None, swap_head_stage: 'Optional[SetHeadStageRequestSwapHeadStage]' = None)ο
Bases:
object- add_new_head_stage: SetHeadStageRequestAddNewHeadStage | None = Noneο
- pipeline_id: strο
ID of the pipeline to update.
- remove_head_stage: SetHeadStageRequestRemoveHeadStage | None = Noneο
- swap_head_stage: SetHeadStageRequestSwapHeadStage | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SetHeadStageRequestAddNewHeadStage(new_stage_id: 'str')ο
Bases:
object- new_stage_id: strο
- class scaleway_async.edge_services.v1beta1.types.SetHeadStageRequestRemoveHeadStage(remove_stage_id: 'str')ο
Bases:
object- remove_stage_id: strο
- class scaleway_async.edge_services.v1beta1.types.SetHeadStageRequestSwapHeadStage(new_stage_id: 'str', current_stage_id: 'str')ο
Bases:
object- current_stage_id: strο
- new_stage_id: strο
- class scaleway_async.edge_services.v1beta1.types.SetRouteRulesRequest(route_stage_id: 'str', route_rules: 'Optional[List[SetRouteRulesRequestRouteRule]]' = <factory>)ο
Bases:
object- route_rules: List[SetRouteRulesRequestRouteRule] | Noneο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- route_stage_id: strο
ID of the route stage to update.
- class scaleway_async.edge_services.v1beta1.types.SetRouteRulesRequestRouteRule(rule_http_match: 'Optional[RuleHttpMatch]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- rule_http_match: RuleHttpMatch | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.SetRouteRulesResponse(route_rules: 'List[RouteRule]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.types.TLSSecret(secret_id: 'str', region: 'ScwRegion')ο
Bases:
object- region: strο
Region of the Secret.
- secret_id: strο
ID of the Secret.
- class scaleway_async.edge_services.v1beta1.types.TLSSecretsConfig(tls_secrets: 'List[TLSSecret]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.types.TLSStage(id: 'str', secrets: 'List[TLSSecret]', managed_certificate: 'bool', pipeline_id: 'str', certificate_expires_at: 'Optional[datetime]' = None, created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- certificate_expires_at: datetime | None = Noneο
Expiration date of the certificate.
- created_at: datetime | None = Noneο
Date the TLS stage was created.
- id: strο
ID of the TLS stage.
- managed_certificate: boolο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- pipeline_id: strο
Pipeline ID the TLS stage belongs to.
- route_stage_id: str | None = Noneο
- secrets: List[TLSSecret]ο
Secret (from Scaleway Secret Manager) containing your custom certificate.
- updated_at: datetime | None = Noneο
Date the TLS stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdateBackendStageRequest(backend_stage_id: 'str', pipeline_id: 'str', scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- backend_stage_id: strο
ID of the backend stage to update.
- pipeline_id: strο
Pipeline ID the Backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdateCacheStageRequest(cache_stage_id: 'str', fallback_ttl: 'Optional[str]' = None, include_cookies: 'Optional[bool]' = False, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: strο
ID of the cache stage to update.
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- include_cookies: bool | None = Falseο
Defines whether responses to requests with cookies must be stored in the cache.
- route_stage_id: str | None = Noneο
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdateDNSStageRequest(dns_stage_id: 'str', fqdns: 'Optional[List[str]]' = <factory>, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- dns_stage_id: strο
ID of the DNS stage to update.
- fqdns: List[str] | Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) attached to the stage.
- tls_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdatePipelineRequest(pipeline_id: 'str', name: 'Optional[str]' = None, description: 'Optional[str]' = None)ο
Bases:
object- description: str | None = Noneο
Description of the pipeline.
- name: str | None = Noneο
Name of the pipeline.
- pipeline_id: strο
ID of the pipeline to update.
- class scaleway_async.edge_services.v1beta1.types.UpdateRouteStageRequest(route_stage_id: 'str', waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- route_stage_id: strο
ID of the route stage to update.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdateTLSStageRequest(tls_stage_id: 'str', tls_secrets_config: 'Optional[TLSSecretsConfig]' = None, managed_certificate: 'Optional[bool]' = False, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- managed_certificate: bool | None = Falseο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- route_stage_id: str | None = Noneο
- tls_secrets_config: TLSSecretsConfig | None = Noneο
Secret (from Scaleway Secret-Manager) containing your custom certificate.
- tls_stage_id: strο
ID of the TLS stage to update.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.types.UpdateWafStageRequest(waf_stage_id: 'str', mode: 'Optional[WafStageMode]' = <WafStageMode.UNKNOWN_MODE: 'unknown_mode'>, paranoia_level: 'Optional[int]' = 0, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- mode: WafStageMode | None = 'unknown_mode'ο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: int | None = 0ο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- waf_stage_id: strο
ID of the WAF stage to update.
- class scaleway_async.edge_services.v1beta1.types.WafStage(id: 'str', pipeline_id: 'str', mode: 'WafStageMode', paranoia_level: 'int', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the WAF stage was created.
- id: strο
ID of the WAF stage.
- mode: WafStageModeο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: intο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- pipeline_id: strο
Pipeline ID the WAF stage belongs to.
- updated_at: datetime | None = Noneο
Date the WAF stage was last updated.
Module contentsο
- class scaleway_async.edge_services.v1beta1.AddRouteRulesRequest(route_stage_id: 'str', route_rules: 'Optional[List[SetRouteRulesRequestRouteRule]]' = <factory>, after_position: 'Optional[int]' = 0, before_position: 'Optional[int]' = 0)ο
Bases:
object- after_position: int | None = 0ο
- before_position: int | None = 0ο
- route_rules: List[SetRouteRulesRequestRouteRule] | Noneο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- route_stage_id: strο
ID of the route stage to update.
- class scaleway_async.edge_services.v1beta1.AddRouteRulesResponse(route_rules: 'List[RouteRule]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.BackendStage(id: 'str', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the backend stage was created.
- id: strο
ID of the backend stage.
- pipeline_id: strο
Pipeline ID the backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- updated_at: datetime | None = Noneο
Date the backend stage was last updated.
- class scaleway_async.edge_services.v1beta1.CacheStage(id: 'str', pipeline_id: 'str', include_cookies: 'bool', fallback_ttl: 'Optional[str]' = None, created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the cache stage was created.
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- id: strο
ID of the cache stage.
- include_cookies: boolο
Defines whether responses to requests with cookies must be stored in the cache.
- pipeline_id: strο
Pipeline ID the cache stage belongs to.
- route_stage_id: str | None = Noneο
- updated_at: datetime | None = Noneο
Date the cache stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CheckDomainRequest(fqdn: 'str', cname: 'str', project_id: 'Optional[str]' = None)ο
Bases:
object- cname: strο
- fqdn: strο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CheckDomainResponse(is_valid: 'bool')ο
Bases:
object- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.CheckLbOriginRequest(lb: 'Optional[ScalewayLb]' = None)ο
Bases:
object- lb: ScalewayLb | None = Noneο
- class scaleway_async.edge_services.v1beta1.CheckLbOriginResponse(is_valid: 'bool', error_type: 'LbOriginError')ο
Bases:
object- error_type: LbOriginErrorο
- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.CheckPEMChainRequest(fqdn: 'str', project_id: 'Optional[str]' = None, secret: 'Optional[CheckPEMChainRequestSecretChain]' = None, raw: 'Optional[str]' = None)ο
Bases:
object- fqdn: strο
- project_id: str | None = Noneο
- raw: str | None = Noneο
- secret: CheckPEMChainRequestSecretChain | None = Noneο
- class scaleway_async.edge_services.v1beta1.CheckPEMChainRequestSecretChain(secret_id: 'str', secret_region: 'str')ο
Bases:
object- secret_id: strο
- secret_region: strο
- class scaleway_async.edge_services.v1beta1.CheckPEMChainResponse(is_valid: 'bool')ο
Bases:
object- is_valid: boolο
- class scaleway_async.edge_services.v1beta1.CreateBackendStageRequest(pipeline_id: 'str', scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- pipeline_id: strο
Pipeline ID the Backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- class scaleway_async.edge_services.v1beta1.CreateCacheStageRequest(pipeline_id: 'str', fallback_ttl: 'Optional[str]' = None, include_cookies: 'Optional[bool]' = False, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- include_cookies: bool | None = Falseο
Defines whether responses to requests with cookies must be stored in the cache.
- pipeline_id: strο
Pipeline ID the Cache stage belongs to.
- route_stage_id: str | None = Noneο
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CreateDNSStageRequest(pipeline_id: 'str', fqdns: 'Optional[List[str]]' = <factory>, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- fqdns: List[str] | Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage.
- pipeline_id: strο
Pipeline ID the DNS stage belongs to.
- tls_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CreatePipelineRequest(name: 'str', description: 'str', project_id: 'Optional[str]' = None)ο
Bases:
object- description: strο
Description of the pipeline.
- name: strο
Name of the pipeline.
- project_id: str | None = Noneο
Project ID in which the pipeline will be created.
- class scaleway_async.edge_services.v1beta1.CreatePurgeRequestRequest(pipeline_id: 'str', assets: 'Optional[List[str]]' = <factory>, all: 'Optional[bool]' = False)ο
Bases:
object- all: bool | None = Falseο
- assets: List[str] | Noneο
- pipeline_id: strο
Pipeline ID in which the purge request will be created.
- class scaleway_async.edge_services.v1beta1.CreateRouteStageRequest(pipeline_id: 'str', waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- pipeline_id: strο
Pipeline ID the route stage belongs to.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CreateTLSStageRequest(pipeline_id: 'str', secrets: 'Optional[List[TLSSecret]]' = <factory>, managed_certificate: 'Optional[bool]' = False, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- managed_certificate: bool | None = Falseο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- pipeline_id: strο
Pipeline ID the TLS stage belongs to.
- route_stage_id: str | None = Noneο
- secrets: List[TLSSecret] | Noneο
Secret (from Scaleway Secret Manager) containing your custom certificate.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.CreateWafStageRequest(pipeline_id: 'str', paranoia_level: 'int', mode: 'Optional[WafStageMode]' = <WafStageMode.UNKNOWN_MODE: 'unknown_mode'>, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- mode: WafStageMode | None = 'unknown_mode'ο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: intο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- pipeline_id: strο
Pipeline ID the WAF stage belongs to.
- class scaleway_async.edge_services.v1beta1.DNSStage(id: 'str', fqdns: 'List[str]', type_: 'DNSStageType', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the DNS stage was created.
- fqdns: List[str]ο
List of Fully Qualified Domain Names attached to the stage.
- id: strο
ID of the DNS stage.
- pipeline_id: strο
Pipeline ID the DNS stage belongs to.
- tls_stage_id: str | None = Noneο
- type_: DNSStageTypeο
Type of the stage.
- updated_at: datetime | None = Noneο
Date the DNS stage was last updated.
- class scaleway_async.edge_services.v1beta1.DNSStageType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- AUTO = 'auto'ο
- CUSTOM = 'custom'ο
- MANAGED = 'managed'ο
- UNKNOWN_TYPE = 'unknown_type'ο
- class scaleway_async.edge_services.v1beta1.DeleteBackendStageRequest(backend_stage_id: 'str')ο
Bases:
object- backend_stage_id: strο
ID of the backend stage to delete.
- class scaleway_async.edge_services.v1beta1.DeleteCacheStageRequest(cache_stage_id: 'str')ο
Bases:
object- cache_stage_id: strο
ID of the cache stage to delete.
- class scaleway_async.edge_services.v1beta1.DeleteCurrentPlanRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.DeleteDNSStageRequest(dns_stage_id: 'str')ο
Bases:
object- dns_stage_id: strο
ID of the DNS stage to delete.
- class scaleway_async.edge_services.v1beta1.DeletePipelineRequest(pipeline_id: 'str')ο
Bases:
object- pipeline_id: strο
ID of the pipeline to delete.
- class scaleway_async.edge_services.v1beta1.DeleteRouteStageRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
ID of the route stage to delete.
- class scaleway_async.edge_services.v1beta1.DeleteTLSStageRequest(tls_stage_id: 'str')ο
Bases:
object- tls_stage_id: strο
ID of the TLS stage to delete.
- class scaleway_async.edge_services.v1beta1.DeleteWafStageRequest(waf_stage_id: 'str')ο
Bases:
object- waf_stage_id: strο
ID of the WAF stage to delete.
- class scaleway_async.edge_services.v1beta1.EdgeServicesV1Beta1API(client: Client, *, bypass_validation: bool = False)ο
Bases:
API- async add_route_rules(*, route_stage_id: str, route_rules: List[SetRouteRulesRequestRouteRule] | None = None, after_position: int | None = None, before_position: int | None = None) AddRouteRulesResponseο
Add route rules. Add route rules to an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param route_rules: List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id. :param after_position: Add rules after the given position. One-Of (βpositionβ): at most one of βafter_positionβ, βbefore_positionβ could be set. :param before_position: Add rules before the given position. One-Of (βpositionβ): at most one of βafter_positionβ, βbefore_positionβ could be set. :return:
AddRouteRulesResponseUsage:
result = await api.add_route_rules( route_stage_id="example", )
- async check_domain(*, fqdn: str, cname: str, project_id: str | None = None) CheckDomainResponseο
- Parameters:
fqdn β
cname β
project_id β
- Returns:
Usage:
result = await api.check_domain( fqdn="example", cname="example", )
- async check_lb_origin(*, lb: ScalewayLb | None = None) CheckLbOriginResponseο
- Parameters:
lb β
- Returns:
Usage:
result = await api.check_lb_origin()
- async check_pem_chain(*, fqdn: str, project_id: str | None = None, secret: CheckPEMChainRequestSecretChain | None = None, raw: str | None = None) CheckPEMChainResponseο
- Parameters:
fqdn β
project_id β
secret β
One-Of (βchainβ): at most one of βsecretβ, βrawβ could be set. :param raw: One-Of (βchainβ): at most one of βsecretβ, βrawβ could be set. :return:
CheckPEMChainResponseUsage:
result = await api.check_pem_chain( fqdn="example", )
- async create_backend_stage(*, scaleway_s3: ScalewayS3BackendConfig | None = None, scaleway_lb: ScalewayLbBackendConfig | None = None, pipeline_id: str) BackendStageο
Create backend stage. Create a new backend stage. You must specify either a scaleway_s3 (for a Scaleway Object Storage bucket) or scaleway_lb (for a Scaleway Load Balancer) field to configure the origin. :param scaleway_s3: Scaleway Object Storage origin bucket (S3) linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param scaleway_lb: Scaleway Load Balancer origin linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param pipeline_id: Pipeline ID the Backend stage belongs to. :return:
BackendStageUsage:
result = await api.create_backend_stage( pipeline_id="example", )
- async create_cache_stage(*, fallback_ttl: str | None = None, include_cookies: bool | None = None, backend_stage_id: str | None = None, pipeline_id: str, waf_stage_id: str | None = None, route_stage_id: str | None = None) CacheStageο
Create cache stage. Create a new cache stage. You must specify the fallback_ttl field to customize the TTL of the cache. :param fallback_ttl: Time To Live (TTL) in seconds. Defines how long content is cached. :param include_cookies: Defines whether responses to requests with cookies must be stored in the cache. :param backend_stage_id: Backend stage ID the cache stage will be linked to. One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param pipeline_id: Pipeline ID the Cache stage belongs to. :param waf_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :return:
CacheStageUsage:
result = await api.create_cache_stage( pipeline_id="example", )
- async create_dns_stage(*, fqdns: List[str] | None = None, tls_stage_id: str | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, pipeline_id: str) DNSStageο
Create DNS stage. Create a new DNS stage. You must specify the fqdns field to customize the domain endpoint, using a domain you already own. :param fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) to attach to the stage. :param tls_stage_id: TLS stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param cache_stage_id: Cache stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param backend_stage_id: Backend stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param pipeline_id: Pipeline ID the DNS stage belongs to. :return:
DNSStageUsage:
result = await api.create_dns_stage( pipeline_id="example", )
- async create_pipeline(*, name: str, description: str, project_id: str | None = None) Pipelineο
Create pipeline. Create a new pipeline. You must specify a dns_stage_id to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. :param name: Name of the pipeline. :param description: Description of the pipeline. :param project_id: Project ID in which the pipeline will be created. :return:
PipelineUsage:
result = await api.create_pipeline( name="example", description="example", )
- async create_purge_request(*, pipeline_id: str, assets: List[str] | None = None, all: bool | None = None) PurgeRequestο
Create purge request. Create a new purge request. You must specify either the all field (to purge all content) or a list of assets (to define the precise assets to purge). :param pipeline_id: Pipeline ID in which the purge request will be created. :param assets: List of asserts to purge. One-Of (βtargetβ): at most one of βassetsβ, βallβ could be set. :param all: Defines whether to purge all content. One-Of (βtargetβ): at most one of βassetsβ, βallβ could be set. :return:
PurgeRequestUsage:
result = await api.create_purge_request( pipeline_id="example", )
- async create_route_stage(*, pipeline_id: str, waf_stage_id: str | None = None) RouteStageο
Create route stage. Create a new route stage. You must specify the waf_stage_id field to customize the route. :param pipeline_id: Pipeline ID the route stage belongs to. :param waf_stage_id: ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. One-Of (βnextβ): at most one of βwaf_stage_idβ could be set. :return:
RouteStageUsage:
result = await api.create_route_stage( pipeline_id="example", )
- async create_tls_stage(*, secrets: List[TLSSecret] | None = None, managed_certificate: bool | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, pipeline_id: str, route_stage_id: str | None = None, waf_stage_id: str | None = None) TLSStageο
Create TLS stage. Create a new TLS stage. You must specify either the secrets or managed_certificate fields to customize the SSL/TLS certificate of your endpoint. Choose secrets if you are using a pre-existing certificate held in Scaleway Secret Manager, or managed_certificate to let Scaleway generate and manage a Letβs Encrypt certificate for your customized endpoint. :param secrets: Secret (from Scaleway Secret Manager) containing your custom certificate. :param managed_certificate: True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint. :param cache_stage_id: Cache stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param backend_stage_id: Backend stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param pipeline_id: Pipeline ID the TLS stage belongs to. :param route_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :return:
TLSStageUsage:
result = await api.create_tls_stage( pipeline_id="example", )
- async create_waf_stage(*, pipeline_id: str, paranoia_level: int, mode: WafStageMode | None = None, backend_stage_id: str | None = None) WafStageο
Create WAF stage. Create a new WAF stage. You must specify the mode and paranoia_level fields to customize the WAF. :param pipeline_id: Pipeline ID the WAF stage belongs to. :param paranoia_level: Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. :param mode: Mode defining WAF behavior (disable/log_only/enable). :param backend_stage_id: ID of the backend stage to forward requests to after the WAF stage. One-Of (βnextβ): at most one of βbackend_stage_idβ could be set. :return:
WafStageUsage:
result = await api.create_waf_stage( pipeline_id="example", paranoia_level=1, )
- async delete_backend_stage(*, backend_stage_id: str) Noneο
Delete backend stage. Delete an existing backend stage, specified by its backend_stage_id. Deleting a backend stage is permanent, and cannot be undone. :param backend_stage_id: ID of the backend stage to delete.
Usage:
result = await api.delete_backend_stage( backend_stage_id="example", )
- async delete_cache_stage(*, cache_stage_id: str) Noneο
Delete cache stage. Delete an existing cache stage, specified by its cache_stage_id. Deleting a cache stage is permanent, and cannot be undone. :param cache_stage_id: ID of the cache stage to delete.
Usage:
result = await api.delete_cache_stage( cache_stage_id="example", )
- async delete_current_plan(*, project_id: str | None = None) Noneο
- Parameters:
project_id β
Usage:
result = await api.delete_current_plan()
- async delete_dns_stage(*, dns_stage_id: str) Noneο
Delete DNS stage. Delete an existing DNS stage, specified by its dns_stage_id. Deleting a DNS stage is permanent, and cannot be undone. :param dns_stage_id: ID of the DNS stage to delete.
Usage:
result = await api.delete_dns_stage( dns_stage_id="example", )
- async delete_pipeline(*, pipeline_id: str) Noneο
Delete pipeline. Delete an existing pipeline, specified by its pipeline_id. Deleting a pipeline is permanent, and cannot be undone. Note that all stages linked to the pipeline are also deleted. :param pipeline_id: ID of the pipeline to delete.
Usage:
result = await api.delete_pipeline( pipeline_id="example", )
- async delete_route_stage(*, route_stage_id: str) Noneο
Delete route stage. Delete an existing route stage, specified by its route_stage_id. Deleting a route stage is permanent, and cannot be undone. :param route_stage_id: ID of the route stage to delete.
Usage:
result = await api.delete_route_stage( route_stage_id="example", )
- async delete_tls_stage(*, tls_stage_id: str) Noneο
Delete TLS stage. Delete an existing TLS stage, specified by its tls_stage_id. Deleting a TLS stage is permanent, and cannot be undone. :param tls_stage_id: ID of the TLS stage to delete.
Usage:
result = await api.delete_tls_stage( tls_stage_id="example", )
- async delete_waf_stage(*, waf_stage_id: str) Noneο
Delete WAF stage. Delete an existing WAF stage, specified by its waf_stage_id. Deleting a WAF stage is permanent, and cannot be undone. :param waf_stage_id: ID of the WAF stage to delete.
Usage:
result = await api.delete_waf_stage( waf_stage_id="example", )
- async get_backend_stage(*, backend_stage_id: str) BackendStageο
Get backend stage. Retrieve information about an existing backend stage, specified by its backend_stage_id. Its full details, including scaleway_s3 or scaleway_lb, are returned in the response object. :param backend_stage_id: ID of the requested backend stage. :return:
BackendStageUsage:
result = await api.get_backend_stage( backend_stage_id="example", )
- async get_billing(*, project_id: str | None = None) GetBillingResponseο
Gives information on the currently selected Edge Services subscription plan, resource usage and associated billing information for this calendar month (including whether consumption falls within or exceeds the currently selected subscription plan.). :param project_id: :return:
GetBillingResponseUsage:
result = await api.get_billing()
- async get_cache_stage(*, cache_stage_id: str) CacheStageο
Get cache stage. Retrieve information about an existing cache stage, specified by its cache_stage_id. Its full details, including Time To Live (TTL), are returned in the response object. :param cache_stage_id: ID of the requested cache stage. :return:
CacheStageUsage:
result = await api.get_cache_stage( cache_stage_id="example", )
- async get_current_plan(*, project_id: str | None = None) Planο
- Parameters:
project_id β
- Returns:
Usage:
result = await api.get_current_plan()
- async get_dns_stage(*, dns_stage_id: str) DNSStageο
Get DNS stage. Retrieve information about an existing DNS stage, specified by its dns_stage_id. Its full details, including FQDNs, are returned in the response object. :param dns_stage_id: ID of the requested DNS stage. :return:
DNSStageUsage:
result = await api.get_dns_stage( dns_stage_id="example", )
- async get_pipeline(*, pipeline_id: str) Pipelineο
Get pipeline. Retrieve information about an existing pipeline, specified by its pipeline_id. Its full details, including errors, are returned in the response object. :param pipeline_id: ID of the requested pipeline. :return:
PipelineUsage:
result = await api.get_pipeline( pipeline_id="example", )
- async get_purge_request(*, purge_request_id: str) PurgeRequestο
Get purge request. Retrieve information about a purge request, specified by its purge_request_id. Its full details, including status and target, are returned in the response object. :param purge_request_id: ID of the requested purge request. :return:
PurgeRequestUsage:
result = await api.get_purge_request( purge_request_id="example", )
- async get_route_stage(*, route_stage_id: str) RouteStageο
Get route stage. Retrieve information about an existing route stage, specified by its route_stage_id. The summary of the route stage (without route rules) is returned in the response object. :param route_stage_id: ID of the requested route stage. :return:
RouteStageUsage:
result = await api.get_route_stage( route_stage_id="example", )
- async get_tls_stage(*, tls_stage_id: str) TLSStageο
Get TLS stage. Retrieve information about an existing TLS stage, specified by its tls_stage_id. Its full details, including secrets and certificate expiration date are returned in the response object. :param tls_stage_id: ID of the requested TLS stage. :return:
TLSStageUsage:
result = await api.get_tls_stage( tls_stage_id="example", )
- async get_waf_stage(*, waf_stage_id: str) WafStageο
Get WAF stage. Retrieve information about an existing WAF stage, specified by its waf_stage_id. Its full details are returned in the response object. :param waf_stage_id: ID of the requested WAF stage. :return:
WafStageUsage:
result = await api.get_waf_stage( waf_stage_id="example", )
- async list_backend_stages(*, order_by: ListBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) ListBackendStagesResponseο
List backend stages. List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of backend stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of backend stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only backend stages from this pipeline will be returned. :param bucket_name: Bucket name to filter for. Only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for. Only backend stages with buckets in this region will be returned. :param lb_id: Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned. :return:
ListBackendStagesResponseUsage:
result = await api.list_backend_stages( pipeline_id="example", )
- async list_backend_stages_all(*, order_by: ListBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) List[BackendStage]ο
List backend stages. List all backend stages, for a Scaleway Organization or Scaleway Project. By default, the backend stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of backend stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of backend stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only backend stages from this pipeline will be returned. :param bucket_name: Bucket name to filter for. Only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for. Only backend stages with buckets in this region will be returned. :param lb_id: Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned. :return:
List[BackendStage]Usage:
result = await api.list_backend_stages_all( pipeline_id="example", )
- async list_cache_stages(*, order_by: ListCacheStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListCacheStagesResponseο
List cache stages. List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of cache stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of cache stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only cache stages from this pipeline will be returned. :return:
ListCacheStagesResponseUsage:
result = await api.list_cache_stages( pipeline_id="example", )
- async list_cache_stages_all(*, order_by: ListCacheStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[CacheStage]ο
List cache stages. List all cache stages, for a Scaleway Organization or Scaleway Project. By default, the cache stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of cache stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of cache stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only cache stages from this pipeline will be returned. :return:
List[CacheStage]Usage:
result = await api.list_cache_stages_all( pipeline_id="example", )
- async list_dns_stages(*, order_by: ListDNSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, fqdn: str | None = None) ListDNSStagesResponseο
List DNS stages. List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of DNS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of DNS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only DNS stages from this pipeline will be returned. :param fqdn: Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned. :return:
ListDNSStagesResponseUsage:
result = await api.list_dns_stages( pipeline_id="example", )
- async list_dns_stages_all(*, order_by: ListDNSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, fqdn: str | None = None) List[DNSStage]ο
List DNS stages. List all DNS stages, for a Scaleway Organization or Scaleway Project. By default, the DNS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of DNS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of DNS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only DNS stages from this pipeline will be returned. :param fqdn: Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned. :return:
List[DNSStage]Usage:
result = await api.list_dns_stages_all( pipeline_id="example", )
- async list_head_stages(*, pipeline_id: str, page: int | None = None, page_size: int | None = None) ListHeadStagesResponseο
- Parameters:
pipeline_id β ID of the pipeline to update.
page β Page number to return, from the paginated results.
page_size β Number of head stages to return per page.
- Returns:
Usage:
result = await api.list_head_stages( pipeline_id="example", )
- async list_head_stages_all(*, pipeline_id: str, page: int | None = None, page_size: int | None = None) List[ListHeadStagesResponseHeadStage]ο
- Parameters:
pipeline_id β ID of the pipeline to update.
page β Page number to return, from the paginated results.
page_size β Number of head stages to return per page.
- Returns:
List[ListHeadStagesResponseHeadStage]
Usage:
result = await api.list_head_stages_all( pipeline_id="example", )
- async list_pipelines(*, order_by: ListPipelinesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None, has_backend_stage_lb: bool | None = None) ListPipelinesResponseο
List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of pipelines in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of pipelines to return per page. :param name: Pipeline name to filter for. Only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for. Only pipelines from this Organization will be returned. :param project_id: Project ID to filter for. Only pipelines from this Project will be returned. :param has_backend_stage_lb: Filter on backend stage. Only pipelines with a Load Balancer origin will be returned. :return:
ListPipelinesResponseUsage:
result = await api.list_pipelines()
- async list_pipelines_all(*, order_by: ListPipelinesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None, has_backend_stage_lb: bool | None = None) List[Pipeline]ο
List pipelines. List all pipelines, for a Scaleway Organization or Scaleway Project. By default, the pipelines returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of pipelines in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of pipelines to return per page. :param name: Pipeline name to filter for. Only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for. Only pipelines from this Organization will be returned. :param project_id: Project ID to filter for. Only pipelines from this Project will be returned. :param has_backend_stage_lb: Filter on backend stage. Only pipelines with a Load Balancer origin will be returned. :return:
List[Pipeline]Usage:
result = await api.list_pipelines_all()
- async list_pipelines_with_stages(*, order_by: ListPipelinesWithStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None) ListPipelinesWithStagesResponseο
- Parameters:
order_by β
page β
page_size β
name β
organization_id β
project_id β
- Returns:
Usage:
result = await api.list_pipelines_with_stages()
- async list_pipelines_with_stages_all(*, order_by: ListPipelinesWithStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, name: str | None = None, organization_id: str | None = None, project_id: str | None = None) List[PipelineStages]ο
- Parameters:
order_by β
page β
page_size β
name β
organization_id β
project_id β
- Returns:
List[PipelineStages]
Usage:
result = await api.list_pipelines_with_stages_all()
- async list_plans() ListPlansResponseο
- Returns:
Usage:
result = await api.list_plans()
- async list_purge_requests(*, order_by: ListPurgeRequestsRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None, pipeline_id: str | None = None) ListPurgeRequestsResponseο
List purge requests. List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of purge requests in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of purge requests to return per page. :param organization_id: Organization ID to filter for. Only purge requests from this Project will be returned. :param project_id: Project ID to filter for. Only purge requests from this Project will be returned. :param pipeline_id: Pipeline ID to filter for. Only purge requests from this pipeline will be returned. :return:
ListPurgeRequestsResponseUsage:
result = await api.list_purge_requests()
- async list_purge_requests_all(*, order_by: ListPurgeRequestsRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None, pipeline_id: str | None = None) List[PurgeRequest]ο
List purge requests. List all purge requests, for a Scaleway Organization or Scaleway Project. This enables you to retrieve a history of all previously-made purge requests. By default, the purge requests returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of purge requests in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of purge requests to return per page. :param organization_id: Organization ID to filter for. Only purge requests from this Project will be returned. :param project_id: Project ID to filter for. Only purge requests from this Project will be returned. :param pipeline_id: Pipeline ID to filter for. Only purge requests from this pipeline will be returned. :return:
List[PurgeRequest]Usage:
result = await api.list_purge_requests_all()
- async list_route_rules(*, route_stage_id: str) ListRouteRulesResponseο
List route rules. List all route rules of an existing route stage, specified by its route_stage_id. :param route_stage_id: Route stage ID to filter for. Only route rules from this route stage will be returned. :return:
ListRouteRulesResponseUsage:
result = await api.list_route_rules( route_stage_id="example", )
- async list_route_stages(*, order_by: ListRouteStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListRouteStagesResponseο
List route stages. List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of route stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of route stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only route stages from this pipeline will be returned. :return:
ListRouteStagesResponseUsage:
result = await api.list_route_stages( pipeline_id="example", )
- async list_route_stages_all(*, order_by: ListRouteStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[RouteStage]ο
List route stages. List all route stages, for a given pipeline. By default, the route stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of route stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of route stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only route stages from this pipeline will be returned. :return:
List[RouteStage]Usage:
result = await api.list_route_stages_all( pipeline_id="example", )
- async list_tls_stages(*, order_by: ListTLSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, secret_id: str | None = None, secret_region: str | None = None) ListTLSStagesResponseο
List TLS stages. List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of TLS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of TLS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only TLS stages from this pipeline will be returned. :param secret_id: Secret ID to filter for. Only TLS stages with this Secret ID will be returned. :param secret_region: Secret region to filter for. Only TLS stages with a Secret in this region will be returned. :return:
ListTLSStagesResponseUsage:
result = await api.list_tls_stages( pipeline_id="example", )
- async list_tls_stages_all(*, order_by: ListTLSStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str, secret_id: str | None = None, secret_region: str | None = None) List[TLSStage]ο
List TLS stages. List all TLS stages, for a Scaleway Organization or Scaleway Project. By default, the TLS stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of TLS stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of TLS stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only TLS stages from this pipeline will be returned. :param secret_id: Secret ID to filter for. Only TLS stages with this Secret ID will be returned. :param secret_region: Secret region to filter for. Only TLS stages with a Secret in this region will be returned. :return:
List[TLSStage]Usage:
result = await api.list_tls_stages_all( pipeline_id="example", )
- async list_waf_stages(*, order_by: ListWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) ListWafStagesResponseο
List WAF stages. List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of WAF stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of WAF stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only WAF stages from this pipeline will be returned. :return:
ListWafStagesResponseUsage:
result = await api.list_waf_stages( pipeline_id="example", )
- async list_waf_stages_all(*, order_by: ListWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, pipeline_id: str) List[WafStage]ο
List WAF stages. List all WAF stages, for a Scaleway Organization or Scaleway Project. By default, the WAF stages returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field. :param order_by: Sort order of WAF stages in the response. :param page: Page number to return, from the paginated results. :param page_size: Number of WAF stages to return per page. :param pipeline_id: Pipeline ID to filter for. Only WAF stages from this pipeline will be returned. :return:
List[WafStage]Usage:
result = await api.list_waf_stages_all( pipeline_id="example", )
- async search_backend_stages(*, order_by: SearchBackendStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, project_id: str | None = None, bucket_name: str | None = None, bucket_region: str | None = None, lb_id: str | None = None) ListBackendStagesResponseο
- Parameters:
order_by β
page β
page_size β
project_id β
bucket_name β
bucket_region β
lb_id β
- Returns:
Usage:
result = await api.search_backend_stages()
- async search_route_rules(*, order_by: SearchRouteRulesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, organization_id: str | None = None, project_id: str | None = None) ListRouteRulesResponseο
List route rules. List all route rules of an organization or project. :param order_by: :param page: :param page_size: :param organization_id: :param project_id: :return:
ListRouteRulesResponseUsage:
result = await api.search_route_rules()
- async search_waf_stages(*, order_by: SearchWafStagesRequestOrderBy | None = None, page: int | None = None, page_size: int | None = None, project_id: str | None = None) ListWafStagesResponseο
- Parameters:
order_by β
page β
page_size β
project_id β
- Returns:
Usage:
result = await api.search_waf_stages()
- async select_plan(*, project_id: str | None = None, plan_name: PlanName | None = None) Planο
- Parameters:
project_id β
plan_name β
- Returns:
Usage:
result = await api.select_plan()
- async set_head_stage(*, pipeline_id: str, add_new_head_stage: SetHeadStageRequestAddNewHeadStage | None = None, remove_head_stage: SetHeadStageRequestRemoveHeadStage | None = None, swap_head_stage: SetHeadStageRequestSwapHeadStage | None = None) HeadStageResponseο
Configure a entry point to your pipeline. You must specify a head stage to form a stage-chain that goes all the way to the backend stage (origin), so the HTTP request will be processed according to the stages you created. You must specify either a add_new_head_stage (to add a new head stage), remove_head_stage (to remove a head stage) or swap_head_stage (to replace a head stage). :param pipeline_id: ID of the pipeline to update. :param add_new_head_stage: Add a new head stage. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :param remove_head_stage: Remove a head stage. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :param swap_head_stage: Replace a head stage with a new one. One-Of (βactionβ): at most one of βadd_new_head_stageβ, βremove_head_stageβ, βswap_head_stageβ could be set. :return:
HeadStageResponseUsage:
result = await api.set_head_stage( pipeline_id="example", )
- async set_route_rules(*, route_stage_id: str, route_rules: List[SetRouteRulesRequestRouteRule] | None = None) SetRouteRulesResponseο
Set route rules. Set the rules of an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param route_rules: List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id. :return:
SetRouteRulesResponseUsage:
result = await api.set_route_rules( route_stage_id="example", )
- async update_backend_stage(*, backend_stage_id: str, pipeline_id: str, scaleway_s3: ScalewayS3BackendConfig | None = None, scaleway_lb: ScalewayLbBackendConfig | None = None) BackendStageο
Update backend stage. Update the parameters of an existing backend stage, specified by its backend_stage_id. :param backend_stage_id: ID of the backend stage to update. :param pipeline_id: Pipeline ID the Backend stage belongs to. :param scaleway_s3: Scaleway Object Storage origin bucket (S3) linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :param scaleway_lb: Scaleway Load Balancer origin linked to the backend stage. One-Of (βbackend_configβ): at most one of βscaleway_s3β, βscaleway_lbβ could be set. :return:
BackendStageUsage:
result = await api.update_backend_stage( backend_stage_id="example", pipeline_id="example", )
- async update_cache_stage(*, cache_stage_id: str, fallback_ttl: str | None = None, include_cookies: bool | None = None, backend_stage_id: str | None = None, waf_stage_id: str | None = None, route_stage_id: str | None = None) CacheStageο
Update cache stage. Update the parameters of an existing cache stage, specified by its cache_stage_id. Parameters which can be updated include the fallback_ttl, include_cookies and backend_stage_id. :param cache_stage_id: ID of the cache stage to update. :param fallback_ttl: Time To Live (TTL) in seconds. Defines how long content is cached. :param include_cookies: Defines whether responses to requests with cookies must be stored in the cache. :param backend_stage_id: Backend stage ID the cache stage will be linked to. One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βbackend_stage_idβ, βwaf_stage_idβ, βroute_stage_idβ could be set. :return:
CacheStageUsage:
result = await api.update_cache_stage( cache_stage_id="example", )
- async update_dns_stage(*, dns_stage_id: str, fqdns: List[str] | None = None, tls_stage_id: str | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None) DNSStageο
Update DNS stage. Update the parameters of an existing DNS stage, specified by its dns_stage_id. :param dns_stage_id: ID of the DNS stage to update. :param fqdns: Fully Qualified Domain Name (in the format subdomain.example.com) attached to the stage. :param tls_stage_id: TLS stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param cache_stage_id: Cache stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :param backend_stage_id: Backend stage ID the DNS stage will be linked to. One-Of (βnextβ): at most one of βtls_stage_idβ, βcache_stage_idβ, βbackend_stage_idβ could be set. :return:
DNSStageUsage:
result = await api.update_dns_stage( dns_stage_id="example", )
- async update_pipeline(*, pipeline_id: str, name: str | None = None, description: str | None = None) Pipelineο
Update pipeline. Update the parameters of an existing pipeline, specified by its pipeline_id. Parameters which can be updated include the name, description and dns_stage_id. :param pipeline_id: ID of the pipeline to update. :param name: Name of the pipeline. :param description: Description of the pipeline. :return:
PipelineUsage:
result = await api.update_pipeline( pipeline_id="example", )
- async update_route_stage(*, route_stage_id: str, waf_stage_id: str | None = None) RouteStageο
Update route stage. Update the parameters of an existing route stage, specified by its route_stage_id. :param route_stage_id: ID of the route stage to update. :param waf_stage_id: ID of the WAF stage HTTP requests should be forwarded to when no rules are matched. One-Of (βnextβ): at most one of βwaf_stage_idβ could be set. :return:
RouteStageUsage:
result = await api.update_route_stage( route_stage_id="example", )
- async update_tls_stage(*, tls_stage_id: str, tls_secrets_config: TLSSecretsConfig | None = None, managed_certificate: bool | None = None, cache_stage_id: str | None = None, backend_stage_id: str | None = None, route_stage_id: str | None = None, waf_stage_id: str | None = None) TLSStageο
Update TLS stage. Update the parameters of an existing TLS stage, specified by its tls_stage_id. Both tls_secrets_config and managed_certificate parameters can be updated. :param tls_stage_id: ID of the TLS stage to update. :param tls_secrets_config: Secret (from Scaleway Secret-Manager) containing your custom certificate. :param managed_certificate: True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint. :param cache_stage_id: Cache stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param backend_stage_id: Backend stage ID the TLS stage will be linked to. One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param route_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :param waf_stage_id: One-Of (βnextβ): at most one of βcache_stage_idβ, βbackend_stage_idβ, βroute_stage_idβ, βwaf_stage_idβ could be set. :return:
TLSStageUsage:
result = await api.update_tls_stage( tls_stage_id="example", )
- async update_waf_stage(*, waf_stage_id: str, mode: WafStageMode | None = None, paranoia_level: int | None = None, backend_stage_id: str | None = None) WafStageο
Update WAF stage. Update the parameters of an existing WAF stage, specified by its waf_stage_id. Both mode and paranoia_level parameters can be updated. :param waf_stage_id: ID of the WAF stage to update. :param mode: Mode defining WAF behavior (disable/log_only/enable). :param paranoia_level: Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign. :param backend_stage_id: ID of the backend stage to forward requests to after the WAF stage. One-Of (βnextβ): at most one of βbackend_stage_idβ could be set. :return:
WafStageUsage:
result = await api.update_waf_stage( waf_stage_id="example", )
- async wait_for_pipeline(*, pipeline_id: str, options: WaitForOptions[Pipeline, bool | Awaitable[bool]] | None = None) Pipelineο
Get pipeline. Retrieve information about an existing pipeline, specified by its pipeline_id. Its full details, including errors, are returned in the response object. :param pipeline_id: ID of the requested pipeline. :return:
PipelineUsage:
result = await api.get_pipeline( pipeline_id="example", )
- async wait_for_purge_request(*, purge_request_id: str, options: WaitForOptions[PurgeRequest, bool | Awaitable[bool]] | None = None) PurgeRequestο
Get purge request. Retrieve information about a purge request, specified by its purge_request_id. Its full details, including status and target, are returned in the response object. :param purge_request_id: ID of the requested purge request. :return:
PurgeRequestUsage:
result = await api.get_purge_request( purge_request_id="example", )
- class scaleway_async.edge_services.v1beta1.GetBackendStageRequest(backend_stage_id: 'str')ο
Bases:
object- backend_stage_id: strο
ID of the requested backend stage.
- class scaleway_async.edge_services.v1beta1.GetBillingRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.GetBillingResponse(pipeline_number: 'int', current_plan_cache_usage: 'int', extra_cache_usage: 'int', current_plan_waf_usage: 'int', extra_waf_usage: 'int', plans_usage_details: 'Dict[str, PlanUsageDetails]', current_plan: 'Optional[PlanDetails]' = None, plan_cost: 'Optional[Money]' = None, extra_pipelines_cost: 'Optional[Money]' = None, extra_cache_cost: 'Optional[Money]' = None, extra_waf_cost: 'Optional[Money]' = None, waf_add_on: 'Optional[Money]' = None, total_cost: 'Optional[Money]' = None)ο
Bases:
object- current_plan: PlanDetails | None = Noneο
Information on the currently-selected, active Edge Services subscription plan.
- current_plan_cache_usage: intο
Total amount of data egressed from the cache in gigabytes from the beginning of the month, for the active subscription plan.
- current_plan_waf_usage: intο
Total number of requests processed by the WAF since the beginning of the current month, for the active subscription plan.
- extra_cache_cost: Money | None = Noneο
Cost to date (this month) of the data egressed from the cache that is not included in the subscription plans.
- extra_cache_usage: intο
Total amount of extra data egressed from cache in gigabytes from the beginning of the month, not included in the subscription plans.
- extra_pipelines_cost: Money | None = Noneο
Cost to date (this month) of pipelines not included in the subscription plans.
- extra_waf_cost: Money | None = Noneο
Cost to date (this month) of the extra requests processed by the WAF that were not included in the subscription plans.
- extra_waf_usage: intο
Total number of extra requests processed by the WAF from the beginning of the month, not included in the subscription plans.
- pipeline_number: intο
Total number of pipelines currently configured.
- plan_cost: Money | None = Noneο
Cost to date (this month) for Edge Service subscription plans. This comprises the pro-rata cost of the current subscription plan, and any previous subscription plans that were active earlier in the month.
- plans_usage_details: Dict[str, PlanUsageDetails]ο
Detailed costs and usage for all Edge Services subscription plans that were activated during the month.
- class scaleway_async.edge_services.v1beta1.GetCacheStageRequest(cache_stage_id: 'str')ο
Bases:
object- cache_stage_id: strο
ID of the requested cache stage.
- class scaleway_async.edge_services.v1beta1.GetCurrentPlanRequest(project_id: 'Optional[str]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.GetDNSStageRequest(dns_stage_id: 'str')ο
Bases:
object- dns_stage_id: strο
ID of the requested DNS stage.
- class scaleway_async.edge_services.v1beta1.GetPipelineRequest(pipeline_id: 'str')ο
Bases:
object- pipeline_id: strο
ID of the requested pipeline.
- class scaleway_async.edge_services.v1beta1.GetPurgeRequestRequest(purge_request_id: 'str')ο
Bases:
object- purge_request_id: strο
ID of the requested purge request.
- class scaleway_async.edge_services.v1beta1.GetRouteStageRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
ID of the requested route stage.
- class scaleway_async.edge_services.v1beta1.GetTLSStageRequest(tls_stage_id: 'str')ο
Bases:
object- tls_stage_id: strο
ID of the requested TLS stage.
- class scaleway_async.edge_services.v1beta1.GetWafStageRequest(waf_stage_id: 'str')ο
Bases:
object- waf_stage_id: strο
ID of the requested WAF stage.
- class scaleway_async.edge_services.v1beta1.HeadStageResponse(head_stage: 'Optional[HeadStageResponseHeadStage]' = None)ο
Bases:
object- head_stage: HeadStageResponseHeadStage | None = Noneο
Modified or created head stage.
- class scaleway_async.edge_services.v1beta1.HeadStageResponseHeadStage(dns_stage_id: 'Optional[str]' = None)ο
Bases:
object- dns_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.LbOriginError(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CONNECTION_REFUSED = 'connection_refused'ο
- TIMEOUT = 'timeout'ο
- TLS_ERROR = 'tls_error'ο
- UNKNOWN = 'unknown'ο
- class scaleway_async.edge_services.v1beta1.ListBackendStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListBackendStagesRequestOrderBy]' = <ListBackendStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, lb_id: 'Optional[str]' = None)ο
Bases:
object- bucket_name: str | None = Noneο
Bucket name to filter for. Only backend stages from this Bucket will be returned.
- bucket_region: str | None = Noneο
Bucket region to filter for. Only backend stages with buckets in this region will be returned.
- lb_id: str | None = Noneο
Load Balancer ID to filter for. Only backend stages with this Load Balancer will be returned.
- order_by: ListBackendStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of backend stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of backend stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only backend stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.ListBackendStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListBackendStagesResponse(stages: 'List[BackendStage]', total_count: 'int')ο
Bases:
object- stages: List[BackendStage]ο
Paginated list of backend stages.
- total_count: intο
Count of all backend stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListCacheStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListCacheStagesRequestOrderBy]' = <ListCacheStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListCacheStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of cache stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of cache stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only cache stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.ListCacheStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListCacheStagesResponse(stages: 'List[CacheStage]', total_count: 'int')ο
Bases:
object- stages: List[CacheStage]ο
Paginated list of cache stages.
- total_count: intο
Count of all cache stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListDNSStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListDNSStagesRequestOrderBy]' = <ListDNSStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, fqdn: 'Optional[str]' = None)ο
Bases:
object- fqdn: str | None = Noneο
Fully Qualified Domain Name to filter for (in the format subdomain.example.com). Only DNS stages with this FQDN will be returned.
- order_by: ListDNSStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of DNS stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of DNS stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only DNS stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.ListDNSStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListDNSStagesResponse(stages: 'List[DNSStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all DNS stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListHeadStagesRequest(pipeline_id: 'str', page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of head stages to return per page.
- pipeline_id: strο
ID of the pipeline to update.
- class scaleway_async.edge_services.v1beta1.ListHeadStagesResponse(head_stages: 'List[ListHeadStagesResponseHeadStage]', total_count: 'int')ο
Bases:
object- head_stages: List[ListHeadStagesResponseHeadStage]ο
Number of head stages to return per page.
- total_count: intο
Count of all head stages matching the requested pipeline_id.
- class scaleway_async.edge_services.v1beta1.ListHeadStagesResponseHeadStage(dns_stage_id: 'Optional[str]' = None)ο
Bases:
object- dns_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.ListPipelinesRequest(order_by: 'Optional[ListPipelinesRequestOrderBy]' = <ListPipelinesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, name: 'Optional[str]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None, has_backend_stage_lb: 'Optional[bool]' = False)ο
Bases:
object- has_backend_stage_lb: bool | None = Falseο
Filter on backend stage. Only pipelines with a Load Balancer origin will be returned.
- name: str | None = Noneο
Pipeline name to filter for. Only pipelines with this string within their name will be returned.
- order_by: ListPipelinesRequestOrderBy | None = 'created_at_asc'ο
Sort order of pipelines in the response.
- organization_id: str | None = Noneο
Organization ID to filter for. Only pipelines from this Organization will be returned.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of pipelines to return per page.
- project_id: str | None = Noneο
Project ID to filter for. Only pipelines from this Project will be returned.
- class scaleway_async.edge_services.v1beta1.ListPipelinesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- NAME_ASC = 'name_asc'ο
- NAME_DESC = 'name_desc'ο
- class scaleway_async.edge_services.v1beta1.ListPipelinesResponse(pipelines: 'List[Pipeline]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all pipelines matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListPipelinesWithStagesRequest(order_by: 'Optional[ListPipelinesWithStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, name: 'Optional[str]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- name: str | None = Noneο
- order_by: ListPipelinesWithStagesRequestOrderBy | None = Noneο
- organization_id: str | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.ListPipelinesWithStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- NAME_ASC = 'name_asc'ο
- NAME_DESC = 'name_desc'ο
- class scaleway_async.edge_services.v1beta1.ListPipelinesWithStagesResponse(pipelines: 'List[PipelineStages]', total_count: 'int')ο
Bases:
object- pipelines: List[PipelineStages]ο
- total_count: intο
- class scaleway_async.edge_services.v1beta1.ListPlansResponse(total_count: 'int', plans: 'List[PlanDetails]')ο
Bases:
object- plans: List[PlanDetails]ο
- total_count: intο
- class scaleway_async.edge_services.v1beta1.ListPurgeRequestsRequest(order_by: 'Optional[ListPurgeRequestsRequestOrderBy]' = <ListPurgeRequestsRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None, pipeline_id: 'Optional[str]' = None)ο
Bases:
object- order_by: ListPurgeRequestsRequestOrderBy | None = 'created_at_asc'ο
Sort order of purge requests in the response.
- organization_id: str | None = Noneο
Organization ID to filter for. Only purge requests from this Project will be returned.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of purge requests to return per page.
- pipeline_id: str | None = Noneο
Pipeline ID to filter for. Only purge requests from this pipeline will be returned.
- project_id: str | None = Noneο
Project ID to filter for. Only purge requests from this Project will be returned.
- class scaleway_async.edge_services.v1beta1.ListPurgeRequestsRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListPurgeRequestsResponse(purge_requests: 'List[PurgeRequest]', total_count: 'int')ο
Bases:
object- purge_requests: List[PurgeRequest]ο
Paginated list of purge requests.
- total_count: intο
Count of all purge requests matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListRouteRulesRequest(route_stage_id: 'str')ο
Bases:
object- route_stage_id: strο
Route stage ID to filter for. Only route rules from this route stage will be returned.
- class scaleway_async.edge_services.v1beta1.ListRouteRulesResponse(route_rules: 'List[RouteRule]', total_count: 'int')ο
Bases:
object- route_rules: List[RouteRule]ο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- total_count: intο
Count of all route rules matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListRouteStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListRouteStagesRequestOrderBy]' = <ListRouteStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListRouteStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of route stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of route stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only route stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.ListRouteStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListRouteStagesResponse(stages: 'List[RouteStage]', total_count: 'int')ο
Bases:
object- stages: List[RouteStage]ο
Paginated list of summarized route stages.
- total_count: intο
Count of all route stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListTLSStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListTLSStagesRequestOrderBy]' = <ListTLSStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0, secret_id: 'Optional[str]' = None, secret_region: 'Optional[str]' = None)ο
Bases:
object- order_by: ListTLSStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of TLS stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of TLS stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only TLS stages from this pipeline will be returned.
- secret_id: str | None = Noneο
Secret ID to filter for. Only TLS stages with this Secret ID will be returned.
- secret_region: str | None = Noneο
Secret region to filter for. Only TLS stages with a Secret in this region will be returned.
- class scaleway_async.edge_services.v1beta1.ListTLSStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListTLSStagesResponse(stages: 'List[TLSStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all TLS stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.ListWafStagesRequest(pipeline_id: 'str', order_by: 'Optional[ListWafStagesRequestOrderBy]' = <ListWafStagesRequestOrderBy.CREATED_AT_ASC: 'created_at_asc'>, page: 'Optional[int]' = 0, page_size: 'Optional[int]' = 0)ο
Bases:
object- order_by: ListWafStagesRequestOrderBy | None = 'created_at_asc'ο
Sort order of WAF stages in the response.
- page: int | None = 0ο
Page number to return, from the paginated results.
- page_size: int | None = 0ο
Number of WAF stages to return per page.
- pipeline_id: strο
Pipeline ID to filter for. Only WAF stages from this pipeline will be returned.
- class scaleway_async.edge_services.v1beta1.ListWafStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.ListWafStagesResponse(stages: 'List[WafStage]', total_count: 'int')ο
Bases:
object- total_count: intο
Count of all WAF stages matching the requested criteria.
- class scaleway_async.edge_services.v1beta1.Pipeline(id: 'str', name: 'str', description: 'str', status: 'PipelineStatus', errors: 'List[PipelineError]', project_id: 'str', organization_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the pipeline was created.
- description: strο
Description of the pipeline.
- errors: List[PipelineError]ο
Errors of the pipeline.
- id: strο
ID of the pipeline.
- name: strο
Name of the pipeline.
- organization_id: strο
Organization ID of the pipeline.
- project_id: strο
Project ID of the pipeline.
- status: PipelineStatusο
Status of the pipeline.
- updated_at: datetime | None = Noneο
Date the pipeline was last updated.
- class scaleway_async.edge_services.v1beta1.PipelineError(stage: 'PipelineErrorStage', code: 'PipelineErrorCode', severity: 'PipelineErrorSeverity', message: 'str', type_: 'PipelineErrorType')ο
Bases:
object- code: PipelineErrorCodeο
- message: strο
- severity: PipelineErrorSeverityο
- stage: PipelineErrorStageο
- type_: PipelineErrorTypeο
- class scaleway_async.edge_services.v1beta1.PipelineErrorCode(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DNS_CNAME_DONT_EXIST = 'dns_cname_dont_exist'ο
- DNS_CNAME_RESOLVE = 'dns_cname_resolve'ο
- DNS_DOMAIN_DONT_EXIST = 'dns_domain_dont_exist'ο
- DNS_FORBIDDEN_ROOT_DOMAIN = 'dns_forbidden_root_domain'ο
- DNS_FORBIDDEN_SCW_CLOUD = 'dns_forbidden_scw_cloud'ο
- DNS_FQDN_ALREADY_EXISTS = 'dns_fqdn_already_exists'ο
- DNS_FQDN_ALREADY_IN_USE = 'dns_fqdn_already_in_use'ο
- DNS_INVALID_FORMAT = 'dns_invalid_format'ο
- DNS_INVALID_TLD = 'dns_invalid_tld'ο
- PIPELINE_INVALID_WORKFLOW = 'pipeline_invalid_workflow'ο
- PIPELINE_MISSING_HEAD_STAGE = 'pipeline_missing_head_stage'ο
- TLS_CERT_DELETED = 'tls_cert_deleted'ο
- TLS_CERT_DISABLED = 'tls_cert_disabled'ο
- TLS_CERT_EXPIRED = 'tls_cert_expired'ο
- TLS_CERT_INVALID_FORMAT = 'tls_cert_invalid_format'ο
- TLS_CERT_MISSING = 'tls_cert_missing'ο
- TLS_CHAIN_ORDER = 'tls_chain_order'ο
- TLS_KEY_INVALID_FORMAT = 'tls_key_invalid_format'ο
- TLS_KEY_MISSING = 'tls_key_missing'ο
- TLS_KEY_TOO_MANY = 'tls_key_too_many'ο
- TLS_MANAGED_DOMAIN_RATE_LIMIT = 'tls_managed_domain_rate_limit'ο
- TLS_MANAGED_INTERNAL = 'tls_managed_internal'ο
- TLS_PAIR_MISMATCH = 'tls_pair_mismatch'ο
- TLS_ROOT_INCONSISTENT = 'tls_root_inconsistent'ο
- TLS_ROOT_INCORRECT = 'tls_root_incorrect'ο
- TLS_ROOT_MISSING = 'tls_root_missing'ο
- TLS_SAN_MISMATCH = 'tls_san_mismatch'ο
- TLS_SELF_SIGNED = 'tls_self_signed'ο
- UNKNOWN_CODE = 'unknown_code'ο
- class scaleway_async.edge_services.v1beta1.PipelineErrorSeverity(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CRITICAL = 'critical'ο
- UNKNOWN_SEVERITY = 'unknown_severity'ο
- WARNING = 'warning'ο
- class scaleway_async.edge_services.v1beta1.PipelineErrorStage(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- BACKEND = 'backend'ο
- CACHE = 'cache'ο
- DNS = 'dns'ο
- TLS = 'tls'ο
- UNKNOWN_STAGE = 'unknown_stage'ο
- class scaleway_async.edge_services.v1beta1.PipelineErrorType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CONFIG = 'config'ο
- RUNTIME = 'runtime'ο
- UNKNOWN_TYPE = 'unknown_type'ο
- class scaleway_async.edge_services.v1beta1.PipelineStages(dns_stages: 'List[DNSStage]', tls_stages: 'List[TLSStage]', cache_stages: 'List[CacheStage]', backend_stages: 'List[BackendStage]', waf_stages: 'List[WafStage]', route_stages: 'List[RouteStage]', pipeline: 'Optional[Pipeline]' = None)ο
Bases:
object- backend_stages: List[BackendStage]ο
- cache_stages: List[CacheStage]ο
- route_stages: List[RouteStage]ο
- class scaleway_async.edge_services.v1beta1.PipelineStatus(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- ERROR = 'error'ο
- LOCKED = 'locked'ο
- PENDING = 'pending'ο
- READY = 'ready'ο
- UNKNOWN_STATUS = 'unknown_status'ο
- WARNING = 'warning'ο
- class scaleway_async.edge_services.v1beta1.Plan(plan_name: 'PlanName')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.PlanDetails(plan_name: 'PlanName', package_gb: 'int', pipeline_limit: 'int', waf_requests: 'int')ο
Bases:
object- package_gb: intο
Amount of egress data from cache included in subscription plan.
- pipeline_limit: intο
Number of pipelines included in subscription plan.
- waf_requests: intο
Number of WAF requests included in subscription plan.
- class scaleway_async.edge_services.v1beta1.PlanName(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- ADVANCED = 'advanced'ο
- PROFESSIONAL = 'professional'ο
- STARTER = 'starter'ο
- UNKNOWN_NAME = 'unknown_name'ο
- class scaleway_async.edge_services.v1beta1.PlanUsageDetails(plan_cost: 'Optional[Money]' = None)ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.PurgeRequest(id: 'str', pipeline_id: 'str', status: 'PurgeRequestStatus', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, assets: 'Optional[List[str]]' = <factory>, all: 'Optional[bool]' = False)ο
Bases:
object- all: bool | None = Falseο
- assets: List[str] | Noneο
- created_at: datetime | None = Noneο
Date the purge request was created.
- id: strο
ID of the purge request.
- pipeline_id: strο
Pipeline ID the purge request belongs to.
- status: PurgeRequestStatusο
Status of the purge request.
- updated_at: datetime | None = Noneο
Date the purge request was last updated.
- class scaleway_async.edge_services.v1beta1.PurgeRequestStatus(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DONE = 'done'ο
- ERROR = 'error'ο
- PENDING = 'pending'ο
- UNKNOWN_STATUS = 'unknown_status'ο
- class scaleway_async.edge_services.v1beta1.RouteRule(position: 'int', route_stage_id: 'str', rule_http_match: 'Optional[RuleHttpMatch]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- position: intο
Position of the rule which determines the order of processing within the route stage.
- route_stage_id: strο
Route stage ID the route rule belongs to.
- rule_http_match: RuleHttpMatch | None = Noneο
- class scaleway_async.edge_services.v1beta1.RouteStage(id: 'str', pipeline_id: 'str', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- created_at: datetime | None = Noneο
Date the route stage was created.
- id: strο
ID of the route stage.
- pipeline_id: strο
Pipeline ID the route stage belongs to.
- updated_at: datetime | None = Noneο
Date the route stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.RuleHttpMatch(method_filters: 'List[RuleHttpMatchMethodFilter]', path_filter: 'Optional[RuleHttpMatchPathFilter]' = None)ο
Bases:
object- method_filters: List[RuleHttpMatchMethodFilter]ο
HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are get, post, put, patch, delete, head, options. All methods will match if none is provided.
- path_filter: RuleHttpMatchPathFilter | None = Noneο
HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided.
- class scaleway_async.edge_services.v1beta1.RuleHttpMatchMethodFilter(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- DELETE = 'delete'ο
- GET = 'get'ο
- HEAD = 'head'ο
- OPTIONS = 'options'ο
- PATCH = 'patch'ο
- POST = 'post'ο
- PUT = 'put'ο
- UNKNOWN_METHOD_FILTER = 'unknown_method_filter'ο
- class scaleway_async.edge_services.v1beta1.RuleHttpMatchPathFilter(path_filter_type: 'RuleHttpMatchPathFilterPathFilterType', value: 'str')ο
Bases:
object- path_filter_type: RuleHttpMatchPathFilterPathFilterTypeο
Type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the regex type.
- value: strο
Value to be matched for the HTTP URL path.
- class scaleway_async.edge_services.v1beta1.RuleHttpMatchPathFilterPathFilterType(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- REGEX = 'regex'ο
- UNKNOWN_PATH_FILTER = 'unknown_path_filter'ο
- class scaleway_async.edge_services.v1beta1.ScalewayLb(id: 'str', zone: 'ScwZone', frontend_id: 'str', is_ssl: 'Optional[bool]' = False, domain_name: 'Optional[str]' = None)ο
Bases:
object- domain_name: str | None = Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) to use in HTTP requests sent towards your Load Balancer.
- frontend_id: strο
ID of the frontend linked to the Load Balancer.
- id: strο
ID of the Load Balancer.
- is_ssl: bool | None = Falseο
Defines whether the Load Balancerβs frontend handles SSL connections.
- zone: strο
Zone of the Load Balancer.
- class scaleway_async.edge_services.v1beta1.ScalewayLbBackendConfig(lbs: 'List[ScalewayLb]')ο
Bases:
object- lbs: List[ScalewayLb]ο
Load Balancer information.
- class scaleway_async.edge_services.v1beta1.ScalewayS3BackendConfig(bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, is_website: 'Optional[bool]' = False)ο
Bases:
object- bucket_name: str | None = Noneο
Name of the Bucket.
- bucket_region: str | None = Noneο
Region of the Bucket.
- is_website: bool | None = Falseο
Defines whether the bucket website feature is enabled.
- class scaleway_async.edge_services.v1beta1.SearchBackendStagesRequest(order_by: 'Optional[SearchBackendStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, project_id: 'Optional[str]' = None, bucket_name: 'Optional[str]' = None, bucket_region: 'Optional[str]' = None, lb_id: 'Optional[str]' = None)ο
Bases:
object- bucket_name: str | None = Noneο
- bucket_region: str | None = Noneο
- lb_id: str | None = Noneο
- order_by: SearchBackendStagesRequestOrderBy | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.SearchBackendStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.SearchRouteRulesRequest(order_by: 'Optional[SearchRouteRulesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, organization_id: 'Optional[str]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- order_by: SearchRouteRulesRequestOrderBy | None = Noneο
- organization_id: str | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.SearchRouteRulesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.SearchWafStagesRequest(order_by: 'Optional[SearchWafStagesRequestOrderBy]' = None, page: 'Optional[int]' = None, page_size: 'Optional[int]' = None, project_id: 'Optional[str]' = None)ο
Bases:
object- order_by: SearchWafStagesRequestOrderBy | None = Noneο
- page: int | None = Noneο
- page_size: int | None = Noneο
- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.SearchWafStagesRequestOrderBy(value: str, names: Any | None = None, *args: Any, **kwargs: Any)ο
Bases:
str,Enum- CREATED_AT_ASC = 'created_at_asc'ο
- CREATED_AT_DESC = 'created_at_desc'ο
- class scaleway_async.edge_services.v1beta1.SelectPlanRequest(project_id: 'Optional[str]' = None, plan_name: 'Optional[PlanName]' = None)ο
Bases:
object- project_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.SetHeadStageRequest(pipeline_id: 'str', add_new_head_stage: 'Optional[SetHeadStageRequestAddNewHeadStage]' = None, remove_head_stage: 'Optional[SetHeadStageRequestRemoveHeadStage]' = None, swap_head_stage: 'Optional[SetHeadStageRequestSwapHeadStage]' = None)ο
Bases:
object- add_new_head_stage: SetHeadStageRequestAddNewHeadStage | None = Noneο
- pipeline_id: strο
ID of the pipeline to update.
- remove_head_stage: SetHeadStageRequestRemoveHeadStage | None = Noneο
- swap_head_stage: SetHeadStageRequestSwapHeadStage | None = Noneο
- class scaleway_async.edge_services.v1beta1.SetHeadStageRequestAddNewHeadStage(new_stage_id: 'str')ο
Bases:
object- new_stage_id: strο
- class scaleway_async.edge_services.v1beta1.SetHeadStageRequestRemoveHeadStage(remove_stage_id: 'str')ο
Bases:
object- remove_stage_id: strο
- class scaleway_async.edge_services.v1beta1.SetHeadStageRequestSwapHeadStage(new_stage_id: 'str', current_stage_id: 'str')ο
Bases:
object- current_stage_id: strο
- new_stage_id: strο
- class scaleway_async.edge_services.v1beta1.SetRouteRulesRequest(route_stage_id: 'str', route_rules: 'Optional[List[SetRouteRulesRequestRouteRule]]' = <factory>)ο
Bases:
object- route_rules: List[SetRouteRulesRequestRouteRule] | Noneο
List of rules to be checked against every HTTP request. The first matching rule will forward the request to its specified backend stage. If no rules are matched, the request is forwarded to the WAF stage defined by waf_stage_id.
- route_stage_id: strο
ID of the route stage to update.
- class scaleway_async.edge_services.v1beta1.SetRouteRulesRequestRouteRule(rule_http_match: 'Optional[RuleHttpMatch]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- rule_http_match: RuleHttpMatch | None = Noneο
- class scaleway_async.edge_services.v1beta1.SetRouteRulesResponse(route_rules: 'List[RouteRule]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.TLSSecret(secret_id: 'str', region: 'ScwRegion')ο
Bases:
object- region: strο
Region of the Secret.
- secret_id: strο
ID of the Secret.
- class scaleway_async.edge_services.v1beta1.TLSSecretsConfig(tls_secrets: 'List[TLSSecret]')ο
Bases:
object
- class scaleway_async.edge_services.v1beta1.TLSStage(id: 'str', secrets: 'List[TLSSecret]', managed_certificate: 'bool', pipeline_id: 'str', certificate_expires_at: 'Optional[datetime]' = None, created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- certificate_expires_at: datetime | None = Noneο
Expiration date of the certificate.
- created_at: datetime | None = Noneο
Date the TLS stage was created.
- id: strο
ID of the TLS stage.
- managed_certificate: boolο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- pipeline_id: strο
Pipeline ID the TLS stage belongs to.
- route_stage_id: str | None = Noneο
- secrets: List[TLSSecret]ο
Secret (from Scaleway Secret Manager) containing your custom certificate.
- updated_at: datetime | None = Noneο
Date the TLS stage was last updated.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdateBackendStageRequest(backend_stage_id: 'str', pipeline_id: 'str', scaleway_s3: 'Optional[ScalewayS3BackendConfig]' = None, scaleway_lb: 'Optional[ScalewayLbBackendConfig]' = None)ο
Bases:
object- backend_stage_id: strο
ID of the backend stage to update.
- pipeline_id: strο
Pipeline ID the Backend stage belongs to.
- scaleway_lb: ScalewayLbBackendConfig | None = Noneο
- scaleway_s3: ScalewayS3BackendConfig | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdateCacheStageRequest(cache_stage_id: 'str', fallback_ttl: 'Optional[str]' = None, include_cookies: 'Optional[bool]' = False, backend_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: strο
ID of the cache stage to update.
- fallback_ttl: str | None = Noneο
Time To Live (TTL) in seconds. Defines how long content is cached.
- include_cookies: bool | None = Falseο
Defines whether responses to requests with cookies must be stored in the cache.
- route_stage_id: str | None = Noneο
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdateDNSStageRequest(dns_stage_id: 'str', fqdns: 'Optional[List[str]]' = <factory>, tls_stage_id: 'Optional[str]' = None, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- dns_stage_id: strο
ID of the DNS stage to update.
- fqdns: List[str] | Noneο
Fully Qualified Domain Name (in the format subdomain.example.com) attached to the stage.
- tls_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdatePipelineRequest(pipeline_id: 'str', name: 'Optional[str]' = None, description: 'Optional[str]' = None)ο
Bases:
object- description: str | None = Noneο
Description of the pipeline.
- name: str | None = Noneο
Name of the pipeline.
- pipeline_id: strο
ID of the pipeline to update.
- class scaleway_async.edge_services.v1beta1.UpdateRouteStageRequest(route_stage_id: 'str', waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- route_stage_id: strο
ID of the route stage to update.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdateTLSStageRequest(tls_stage_id: 'str', tls_secrets_config: 'Optional[TLSSecretsConfig]' = None, managed_certificate: 'Optional[bool]' = False, cache_stage_id: 'Optional[str]' = None, backend_stage_id: 'Optional[str]' = None, route_stage_id: 'Optional[str]' = None, waf_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- cache_stage_id: str | None = Noneο
- managed_certificate: bool | None = Falseο
True when Scaleway generates and manages a Letβs Encrypt certificate for the TLS stage/custom endpoint.
- route_stage_id: str | None = Noneο
- tls_secrets_config: TLSSecretsConfig | None = Noneο
Secret (from Scaleway Secret-Manager) containing your custom certificate.
- tls_stage_id: strο
ID of the TLS stage to update.
- waf_stage_id: str | None = Noneο
- class scaleway_async.edge_services.v1beta1.UpdateWafStageRequest(waf_stage_id: 'str', mode: 'Optional[WafStageMode]' = <WafStageMode.UNKNOWN_MODE: 'unknown_mode'>, paranoia_level: 'Optional[int]' = 0, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- mode: WafStageMode | None = 'unknown_mode'ο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: int | None = 0ο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- waf_stage_id: strο
ID of the WAF stage to update.
- class scaleway_async.edge_services.v1beta1.WafStage(id: 'str', pipeline_id: 'str', mode: 'WafStageMode', paranoia_level: 'int', created_at: 'Optional[datetime]' = None, updated_at: 'Optional[datetime]' = None, backend_stage_id: 'Optional[str]' = None)ο
Bases:
object- backend_stage_id: str | None = Noneο
- created_at: datetime | None = Noneο
Date the WAF stage was created.
- id: strο
ID of the WAF stage.
- mode: WafStageModeο
Mode defining WAF behavior (disable/log_only/enable).
- paranoia_level: intο
Sensitivity level (1,`2`,`3`,`4`) to use when classifying requests as malicious. With a high level, requests are more likely to be classed as malicious, and false positives are expected. With a lower level, requests are more likely to be classed as benign.
- pipeline_id: strο
Pipeline ID the WAF stage belongs to.
- updated_at: datetime | None = Noneο
Date the WAF stage was last updated.