delete_dataset_lifecycle_policy¶
- DatasetsApi.delete_dataset_lifecycle_policy(id, role_id, content_type=None, _request_timeout=None, _request_auth=None, _content_type=None, _headers=None, _host_index=0)¶
Delete lifecycle policy of dataset
Starts asynchronous deletion of the dataset S3 lifecycle policy via Step Functions. No request body. Caller needs datasets.manage role permission and any access on the dataset. Unsupported for some target locations and external datasets; rejected if policy missing or already transitioning.
- Parameters:
id (str) – Dataset ID whose lifecycle policy will be deleted. (required)
role_id (str) – Amorphic role ID used for authorization. (required)
content_type (str) – Optional for this no-body request; if sent, use application/json.
_request_timeout (int, tuple(int, int), optional) – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
_request_auth (dict, optional) – set to override the auth_settings for an a single request; this effectively ignores the authentication in the spec for a single request.
_content_type (str, Optional) – force content-type for the request.
_headers (dict, optional) – set to override the headers for a single request; this effectively ignores the headers in the spec for a single request.
_host_index (int, optional) – set to override the host_index for a single request; this effectively ignores the host_index in the spec for a single request.
- Return type:
- Returns:
Returns the result object.
Request and Response Examples¶
HTTP: PUT /datasets/{id}/delete-lifecycle-policy
Success (HTTP 200)¶
Lifecycle policy deletion started asynchronously.
Request / response example
{
"Message": "Deleting lifecycle policy of the dataset"
}
Errors¶
Documented error codes: IPV-1002, AUTH-1010, DS-1049, GE-1106, DS-1048, DS-1069.
HTTP 400
Validation/auth failure. Codes include IPV-1002, AUTH-1010, DS-1049 (unsupported target), GE-1106 (external), DS-1048 (busy), DS-1069 (no policy).
No lifecycle policy
{
"Message": "DS-1069 - Lifecycle policy does not exist for this dataset"
}
Not authorized
{
"Message": "AUTH-1010 - User is not authorized to perform this operation"
}
HTTP 500
Backend/generic failure.