Hapus Pengguna

Operasi Delete User menghapus pengguna yang sudah ada dalam database.

Minta

Metode Meminta URI Deskripsi
DELETE https://{databaseaccount}.documents.azure.com/dbs/{db-id}/users/{user-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 Pengguna yang akan dihapus tidak ditemukan.

Isi

Tidak ada.

Contoh

DELETE https://contosomarketing.documents.azure.com/dbs/volcanodb/users/another_user HTTP/1.1  
x-ms-date: Tue, 08 Dec 2015 19:54:15 GMT  
authorization: type%3dmaster%26ver%3d1.0%26sig%3d02AiXEjqafG01Xo%2fbKoK41ZuGbQRFeWwXBFlaB%2bQFIg%3d  
Cache-Control: no-cache  
User-Agent: contoso/1.0  
x-ms-version: 2015-08-06  
Accept: application/json  
Host: contosomarketing.documents.azure.com  
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/users/another_user  
Server: Microsoft-HTTPAPI/2.0  
Strict-Transport-Security: max-age=31536000  
x-ms-resource-quota: users=500000;  
x-ms-resource-usage: users=1;  
x-ms-alt-content-path: dbs/volcanodb  
x-ms-content-path: Sl8fAA==  
x-ms-session-token: 864  
x-ms-request-charge: 4.95  
x-ms-serviceversion: version=1.5.57.3  
x-ms-activity-id: 43377faf-90c3-421e-8c49-56a259a31167  
x-ms-gatewayversion: version=1.5.57.3  
Date: Tue, 08 Dec 2015 19:54:15 GMT  
  

Lihat juga