Hapus Prosedur Tersimpan
Operasi Delete Stored Procedure
menghapus prosedur tersimpan yang ada dalam koleksi.
Minta
Metode | Meminta URI | Deskripsi |
---|---|---|
DELETE | https://{databaseaccount}.documents.azure.com/dbs/{db-id}/colls/{coll-id}/sprocs/{sproc-id} |
Perhatikan bahwa {databaseaccount} adalah nama akun Azure Cosmos DB yang dibuat di bawah langganan Anda. |
Header
Lihat Header permintaan Rest Azure Cosmos DB umum untuk header yang digunakan oleh semua permintaan Cosmos DB.
Isi
Tidak ada.
Respons
Header
Lihat Header respons Rest Azure Cosmos DB umum untuk header yang dikembalikan oleh semua respons Cosmos DB.
Kode status
Tabel berikut mencantumkan kode status umum yang dikembalikan oleh operasi ini. Untuk daftar lengkap kode status, lihat Kode Status HTTP.
Kode status HTTP | Deskripsi |
---|---|
204 Tidak Ada Konten | Operasi hapus berhasil. |
404 Tidak Ditemukan | Prosedur tersimpan yang akan dihapus bukan lagi sumber daya, yaitu sumber daya sudah dihapus. |
Isi
Tidak ada.
Contoh
DELETE https://contosomarketing.documents.azure.com/dbs/volcanodb/colls/volcano1/sprocs/sproc_hello_world HTTP/1.1
x-ms-session-token: 30
x-ms-date: Wed, 09 Dec 2015 17:29:07 GMT
authorization: type%3dmaster%26ver%3d1.0%26sig%3ddo9F4P8aStQ9gzkwX7oxIP%2bYfaaAcWbGTpUJLbsKKTs%3d
Cache-Control: no-cache
User-Agent: contoso/1.0
x-ms-version: 2015-08-06
Accept: application/json
Host: contosomarketing.documents.azure.com
Cookie: x-ms-session-token=30
Content-Length: 0
Connection: Keep-Alive
HTTP/1.1 204 No Content
Cache-Control: no-store, no-cache
Pragma: no-cache
Content-Length: 0
Content-Type: application/json
Content-Location: https://contosomarketing.documents.azure.com/dbs/volcanodb/colls/volcano1/sprocs/sproc_hello_world
Server: Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000
x-ms-last-state-change-utc: Sun, 29 Nov 2015 19:20:18.154 GMT
x-ms-resource-quota: storedProcedures=25;
x-ms-resource-usage: storedProcedures=0;
x-ms-alt-content-path: dbs/volcanodb/colls/volcano1
x-ms-content-path: Sl8fALN4sw4=
x-ms-session-token: 31
x-ms-request-charge: 4.95
x-ms-activity-id: 0817ae40-4d11-4e13-8fa8-4bdce474dfcc
Set-Cookie: x-ms-session-token=31; Domain=contosomarketing.documents.azure.com; Path=/dbs/volcanodb/colls/volcano1
Date: Wed, 09 Dec 2015 17:29:06 GMT