Obtaining the Custom Domain Names of a Bucket
Function
This API obtains the custom domain names of a bucket.
Restrictions
- To use this API, you must be the bucket owner or have the required permission (obs:bucket:GetBucketCustomDomain in IAM or GetBucketCustomDomain in a bucket policy). For details, see Introduction to OBS Access Control, IAM Custom Policies, and Creating a Custom Bucket Policy.
- To learn about the mappings between OBS regions and endpoints, see Regions and Endpoints.
Method
ObsClient.getBucketCustomDomain(params)
Request Parameters
| Parameter | Type | Mandatory (Yes/No) | Description |
|---|---|---|---|
| Bucket | String | Yes | Explanation: Bucket name. Restrictions:
Default value: None |
Responses
| Parameter | Type | Description |
| Status | number | Explanation: HTTP status code returned by the OBS server. Value range: A status code is a group of digits indicating the status of a response. It ranges from 2xx (indicating successes) to 4xx or 5xx (indicating errors). For details, see Status Codes. |
| Code | string | Explanation: Error code returned by the OBS server. |
| Message | string | Explanation: Error description returned by the OBS server. |
| HostId | string | Explanation: Request server ID returned by the OBS server. |
| RequestId | string | Explanation: Request ID returned by the OBS server. |
| Id2 | string | Explanation: Request ID2 returned by the OBS server. |
| Indicator | string | Explanation: Error code details returned by the OBS server. |
| Parameter | Type | Description |
|---|---|---|
| Domains | Domains | Yes Explanation: QoS configuration of the bucket. Value range: For details, see Table 4. Default value: None |
| Parameter | Type | Description |
|---|---|---|
| DomainName | str | Explanation: Custom domain name. Value range: The value can contain 0 to 256 characters. |
| Value | str | Explanation: Time when a custom domain name was created. Value range:
|
| CertificateId | str | Explanation: ID of the certificate bound to the custom domain name. Value range: The value must contain 16 characters. |
| CertName | str | Explanation: Name of the certificate bound to the custom domain name. Value range: The value can contain 3 to 63 characters. |
| CertificateType | str | Explanation: Type of the certificate bound to the custom domain name. Value range:
|
| ExpiredTime | str | Explanation: If the certificate type is server or server_sm, the expiration time of the certificate bound to the custom domain name is returned. Value range: The value must be a UTC time that complies with the ISO 8601 standard. Example: 2018-01-01T00:00:00.000Z |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot