All Products
Search
Document Center

Function Compute:DeleteAlias

Last Updated:Jun 02, 2023

Deletes an alias.

Authorization information

There is currently no authorization information disclosed in the API.

Request syntax

DELETE /2021-04-06/services/{serviceName}/aliases/{aliasName}

Request parameters

ParameterTypeRequiredDescriptionExample
serviceNamestringYes

$.parameters[8].schema.enumValueTitles

demo-service
aliasNamestringYes

Deletes an alias.

test
If-MatchstringNo

{"name":"DeleteAlias","product":"FC-Open","version":"2021-04-06","path":"/2021-04-06/services/{serviceName}/aliases/{aliasName}","deprecated":0,"method":"DELETE","protocol":"HTTP|HTTPS","hidden":0,"timeout":10000,"parameter_type":"Single","params":"[{"name":"serviceName","position":"Path","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"The name of the service.","description":"The name of the service.","example":"demo-service"},{"name":"aliasName","position":"Path","required":true,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","title":"The name of the alias.","description":"The name of the alias.","example":"test"},{"name":"If-Match","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"If the ETag specified in the request matches the ETag value of the object, OSS transmits the object and returns 200 OK. If the ETag specified in the request does not match the ETag value of the object, OSS returns 412 Precondition Failed. \nThe ETag value of a resource is used to check whether the resource has changed. You can check data integrity by using the ETag value. \nDefault value: null","example":"e19d5cd5af0378da05f63f891c7467af"},{"name":"X-Fc-Account-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The ID of your Alibaba Cloud account. ","example":"188077086902****"},{"name":"X-Fc-Date","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The time when Function Compute API is called. ","example":"2020-12-1210:00:00"},{"name":"X-Fc-Trace-Id","position":"Header","required":false,"checkBlank":false,"visibility":"Public","deprecated":false,"type":"String","description":"The trace ID of the invocation request of Function Compute. ","example":"r9s89isisi****"}]","response_headers":"[]","response":"{}","errors":"{}"}

e19d5cd5af0378da05f63f891c7467af
X-Fc-Account-IdstringNo

139490

188077086902****
X-Fc-DatestringNo

Xiaoqi

Wed, 11 May 2022 09:00:00 GMT

Response parameters

ParameterTypeDescriptionExample
The current API has no return parameters

Examples

Sample success responses

JSONformat

{}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
    Added Input Parameters: X-Fc-Code-Checksum
    Added Input Parameters: X-Fc-Log-Type
    Added Input Parameters: X-Fc-Invocation-Type
    Added Input Parameters: X-Fc-Date
    Added Input Parameters: X-Fc-Trace-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    Added Input Parameters: X-Fc-Account-Id
2021-06-29The input parameters of the API operation change.
Change itemChange content
Input ParametersThe input parameters of the API operation change.
    delete Input Parameters: X-Fc-Account-Id