Obtaining the Latest Content Guard Disclaimer
Description
This API is used to obtain the content guard disclaimer of MaaS real-time inference. If moderation is set to false when you create an endpoint, you must sign the disclaimer of the latest version.
Constraints
This function is only supported in CN-Hong Kong.
URI
GET /v1/{project_id}/maas/compliance/agreements Parameter | Mandatory | Type | Description |
|---|---|---|---|
project-id | Yes | String | Definition: Project ID. For details about how to obtain the project ID, see Obtaining a Project ID and Name. Constraints: N/A. Range: N/A. Default Value: N/A. |
Request Parameters
Parameter | Mandatory | Type | Description |
|---|---|---|---|
X-Auth-Token | Yes | String | Definition: User token. The token can be obtained by calling the IAM API used to obtain a user token. The value of X-Subject-Token in the response header is the user token. For details, see Authentication. Constraints: N/A. Range: N/A. Default Value: N/A. |
Content-Type | Yes | String | Definition: Type of the message body. The value is fixed to application/json. Constraints: N/A. Range: N/A. Default Value: N/A. |
Parameter | Mandatory | Type | Description |
|---|---|---|---|
lang | Yes | String | Definition: Disclaimer language. Obtain the disclaimer in the required language. Constraints: N/A. Range:
Default Value: N/A. |
Response Parameters
Parameter | Type | Description |
|---|---|---|
id | String | Definition: ID. Range: N/A. |
agreement_id | String | Definition: ID of the disclaimer, which corresponds to the agreement_id parameter when you create or edit an endpoint. Range: N/A. |
agreement_data | String | Definition: Disclaimer content. Range: N/A. |
open_notice | String | Definition: Enables content guard notifications. Range: N/A. |
close_notice | String | Definition: Disables content guard notifications. Range: N/A. |
Parameter | Type | Description |
|---|---|---|
error_msg | String | Definition: Error description. Range: N/A. |
error_code | String | Definition: Error code, indicating the error type. Range: N/A. |
Request Example
GET
/v1/{project_id}/maas/compliance/agreements?lang={lang} Response Example
- Success response. Status code: 200.
{ "agreement_id": "4dd6b9f8-7e97-4f1c-8816-************", "agreement_data": "Create a disclaimer", "open_notice": "Huawei Cloud provides no warranties or guarantees regarding third-party models' outputs. It does not ensure their compliance, security, authenticity, accuracy, or completeness. These outputs do not represent Huawei Cloud's views.", "close_notice": "The company/individual hereby requests to disable content moderation due to business needs. The company/individual fully understands that Huawei Cloud will disable content moderation associated with the purchased MaaS platform. After the feature is disabled, Huawei Cloud will no longer provide any content moderation capability. |After Huawei Cloud disables content moderation, the company will independently conduct content moderation for all input and output content involved in the MaaS platform. The company will ensure that the model's input, output, and related usage behaviors comply with applicable laws and regulations, including but not limited to the Cybersecurity Law of the People's Republic of China , the Data Security Law of the People's Republic of China , the Interim Measures to Regulate Generative AI Services , and the Provisions on the Administration of Deep Synthesis in Internet Information Services. |The company will assume all responsibilities and adverse consequences arising from the disabling of content moderation, including but not limited to losses suffered by the company or its end users, as well as penalties imposed by regulatory authorities. If Huawei Cloud incurs any losses as a result, the company will be liable for compensation. |If the company's input or output content on the MaaS platform fails to comply with relevant laws and regulations, Huawei Cloud has the right to suspend or terminate the provision of services.", "id": 1 } - Error response. Status code: 400.
{ "error_msg": "Invalid token.", "error_code": "ModelArts.0104" }
Status Codes
For details, see Status Codes.
Error Codes
For details, see Error Codes.
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
