Skip to Content
Object-based Storage(US3)UpdateBucketStaticPageRule

Modify bucket static webpage configuration - UpdateBucketStaticPageRule

Overview

Modify bucket static webpage configuration

Definition

Public Parameters

Parameter NameTypeDescription InformationRequired
ActionstringCorresponding API command name, the current API is UpdateBucketStaticPageRule.Yes
PublicKeystringThe user’s public key can be obtained from Console Yes
SignaturestringUser signature generated based on public key and API command, see Signature AlgorithmYes

Request Parameters

Parameter NameTypeDescription InformationRequired
RegionstringRegion. See Region and Availability Zone ListYes
ProjectIdstringProject ID. Leave blank for the default project; sub-accounts must fill this in. Please refer to the GetProjectList APINo
BucketstringBucket NameYes
StatusstringEnable status (enable/disable, can only be enabled if a custom domain is bound)No
DefaultIndexstringDefault HomepageNo
SubDirRedirectstringIs subdirectory redirection enabledNo
RuleFor404string404 RuleNo
DefaultPage404stringDefault page for 404No

Response Field

Field NameTypeDescription InformationRequired
RetCodeintReturn status code. If it is 0, it means successful return. If it is not 0, it means failure.Yes
ActionstringOperation command name.Yes
MessagestringReturns an error message, providing detailed description when RetCode is non-zero.No

Example

Request Example

https://api.ucloud-global.com/?Action=UpdateBucketStaticPageRule &Region=cn-zj &Zone=cn-zj-01 &ProjectId=VKXDVtxD &Bucket=bmGYdESd &Status=MixZMOOG &DefaultIndex=UcYGDuHX &SubDirRedirect=oqAcAaFI &RuleFor404=IwSpWHzs &DefaultPage404=oxSvhzQy

Response Example

{ "Action": "UpdateBucketStaticPageRuleResponse", "RetCode": 0 }