Deleting a Subscription

Description

  • API name

    Unsubscribe

  • Function

    Delete a specified subscription.

URI

  • URI format

    DELETE /v2/{project_id}/notifications/subscriptions/{subscription_urn}

  • Parameter description

    Parameter

    Mandatory

    Type

    Description

    project_id

    Yes

    String

    Project ID

    See Obtaining a Project ID.

    subscription_urn

    Yes

    String

    Unique resource ID of a topic. You can obtain it by referring to Querying Subscriptions.

Request

Example request

DELETE https://{SMN_Endpoint}/v2/{project_id}/notifications/subscriptions/urn:smn:regionId:762bdb3251034f268af0e395c53ea09b:test_topic_v1:2e778e84408e44058e6cbc6d3c377837

Response

  • Parameter description

    Parameter

    Type

    Description

    request_id

    String

    Request ID, which is unique

  • Example response

    {
        "request_id": "f3197b274a6b473a8007eed79e716c30"
    }
    

Returned Value

See Returned Value.

Error Codes

See Error Codes.