लेबल की खास जानकारी
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
लेबल, आपकी ओर से तय किए गए मेटाडेटा होते हैं. इनसे उपयोगकर्ताओं को Google Drive में मौजूद फ़ाइलों को व्यवस्थित करने और खोजने में मदद मिलती है. साथ ही, फ़ाइलों पर नीति लागू करने में भी मदद मिलती है. Drive API की मदद से डेवलपर, फ़ाइलों और फ़ोल्डर पर लेबल लगा सकते हैं, लेबल फ़ील्ड की वैल्यू सेट कर सकते हैं, फ़ाइलों पर लेबल और फ़ील्ड की वैल्यू पढ़ सकते हैं. साथ ही, कस्टम लेबल टैक्सोनॉमी के ज़रिए तय किए गए मेटाडेटा शब्दों का इस्तेमाल करके फ़ाइलें खोज सकते हैं.
Drive के लेबल, फ़ाइलों और फ़ोल्डर में मेटाडेटा जोड़कर कारोबारी प्रक्रियाओं में मदद कर सकते हैं. लेबल का इस्तेमाल आम तौर पर इन कामों के लिए किया जाता है:
सूचना प्रशासन की रणनीति का पालन करने के लिए, कॉन्टेंट को कैटगरी में बांटें—संवेदनशील कॉन्टेंट या ऐसे डेटा की पहचान करने के लिए लेबल बनाएं जिसे खास तरीके से हैंडल करने की ज़रूरत है.
उदाहरण के लिए, "संवेदनशीलता" नाम का बैज वाला लेबल (रंग के हिसाब से कोड की गई वैल्यू वाला लेबल) बनाया जा सकता है. इसमें "टॉप सीक्रेट", "गोपनीय", और "सार्वजनिक" वैल्यू शामिल की जा सकती हैं.
Drive में मौजूद आइटम पर नीति लागू करना—Drive में मौजूद कॉन्टेंट को उसके पूरे लाइफ़साइकल के दौरान मैनेज करने के लिए लेबल बनाएं. साथ ही, यह पक्का करें कि वह आपके संगठन के रिकॉर्ड रखने के तरीकों का पालन करता हो. उदाहरण के लिए, डेटा लीक होने की रोकथाम (डीएलपी) से जुड़ी नीति को मैनेज करने के लिए लेबल का इस्तेमाल करें. इससे उपयोगकर्ता, "संवेदनशीलता" लेबल को "बेहद गोपनीय" पर सेट करके फ़ाइलें डाउनलोड नहीं कर पाएंगे.
फ़ाइलें व्यवस्थित करें और उन्हें ढूंढें—अपनी कंपनी के कॉन्टेंट को ज़्यादा से ज़्यादा लोगों तक पहुंचाने के लिए लेबल बनाएं. इससे आपके संगठन के लोग, लेबल और उनके फ़ील्ड के आधार पर आइटम ढूंढ पाएंगे. उदाहरण के लिए, "हस्ताक्षर की स्थिति" लेबल सेट को "हस्ताक्षर का इंतज़ार है" पर लागू करें. ऐसा उन सभी समझौतों के लिए करें जिन पर किसी खास तारीख तक हस्ताक्षर नहीं किए गए हैं. इसके बाद, Drive की खोज सुविधा इन समझौतों को तब दिखा सकती है, जब कोई व्यक्ति "हस्ताक्षर होना बाकी है" खोजेगा.
Drive में मौजूद कॉन्टेंट पर लेबल लगाने की सुविधा में इस्तेमाल होने वाली सामान्य शर्तों की सूची यहां दी गई है:
- लेबल
Drive फ़ाइल पर रखा गया स्ट्रक्चर्ड मेटाडेटा.
Drive के उपयोगकर्ता, फ़ाइलों के लिए लेबल असाइन कर सकते हैं और लेबल फ़ील्ड की वैल्यू सेट कर सकते हैं. लेबल में ये शामिल होते हैं:
- लेबल का नाम
- लेबल के संसाधन का नाम. लेबल आईडी, लेबल के नाम का हिस्सा होता है. अनुरोध के हिसाब से, नाम इनमें से किसी एक फ़ॉर्मैट में होता है:
labels/{id}
या labels/{id}@{revisionId}
. ज़्यादा जानकारी के लिए, यहां दिया गया लेबल में बदलाव सेक्शन देखें.
- लेबल आईडी
- लेबल के लिए, दुनिया भर में मान्य यूनीक आइडेंटिफ़ायर. आईडी, लेबल के नाम का हिस्सा होता है. हालांकि, नाम के उलट, यह बदलावों के बीच एक जैसा रहता है.
- फ़ील्ड
लेबल का कोई ऐसा कॉम्पोनेंट जिसे सेट किया जा सकता है. किसी लेबल में उससे जुड़े एक या उससे ज़्यादा फ़ील्ड हो सकते हैं. अगर फ़ील्ड को Google Drive Labels API में ListOptions
के साथ कॉन्फ़िगर किया गया है, तो सिलेक्शन और उपयोगकर्ता फ़ील्ड को एक से ज़्यादा वैल्यू के साथ सेट किया जा सकता है.
- फ़ील्ड टाइप
- फ़ील्ड से जुड़ी वैल्यू का डेटा टाइप. इसे पूर्णांक, तारीख की स्ट्रिंग, टेक्स्ट, उपयोगकर्ता या चुने गए विकल्प के तौर पर कॉन्फ़िगर किया जा सकता है. चुने गए टाइप से, Drive में मौजूद आइटम पर लागू होने वाली मान्य वैल्यू और खोज क्वेरी के लिए उपलब्ध विकल्प, दोनों पर असर पड़ता है.
- लेबल की अलग-अलग कैटगरी
कॉन्फ़िगर किए गए लेबल फ़ील्ड, उपयोगकर्ताओं के लिए उपलब्ध होते हैं. इनका इस्तेमाल Drive में मौजूद फ़ाइलों पर किया जा सकता है. Drive Labels API के ज़रिए इसे पढ़ा और लिखा जा सकता है. इसे लेबल स्कीमा भी कहा जाता है.
- लेबल में बदलाव
लेबल का कोई इंस्टेंस. जब भी कोई लेबल बनाया जाता है, अपडेट किया जाता है, पब्लिश किया जाता है या बंद किया जाता है, तब लेबल के वर्शन में बदलाव होता है.
- ड्राफ़्ट में किया गया बदलाव
- लेबल के मौजूदा ड्राफ़्ट इंस्टेंस का वर्शन नंबर. किसी लेबल में कई अपडेट किए जा सकते हैं. इससे, पब्लिश किए गए वर्शन पर कोई असर नहीं पड़ेगा. हालांकि, हर अपडेट के साथ ड्राफ़्ट वर्शन का नंबर बढ़ता जाएगा. ड्राफ़्ट लेबल की सुविधा की मदद से, लेबल अपडेट को पब्लिश करने से पहले टेस्ट किया जा सकता है.
- पब्लिश किया गया वर्शन
- किसी लेबल के पब्लिश किए गए वर्शन का संशोधन नंबर. पब्लिश किया गया लेबल, उपयोगकर्ताओं के लिए उपलब्ध लेबल का इंस्टेंस होता है.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-08-04 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-08-04 (UTC) को अपडेट किया गया."],[],[],null,["# Labels overview\n\n*Labels* are metadata that you define to help users organize, find, and apply\npolicy to files in Google Drive. The Drive API allows developers to\napply labels to files and folders, set label field values, read labels and field\nvalues on files, and search for files using metadata terms defined by the custom\nlabel taxonomy.\n\nDrive labels can support business processes by attaching metadata\nto files and folders. Common uses for labels are:\n\n- **Classify content to follow an information governance strategy**---Create a\n label to identify sensitive content or data that requires special handling.\n For example, you might create a badged label (a label with color-coded\n option values) titled \"Sensitivity\" with the values of \"Top Secret,\"\n \"Confidential,\" and \"Public.\"\n\n- **Apply policy to items in Drive**---Create labels to manage\n Drive content throughout its lifecycle and ensure it adheres\n to your organization's record keeping practices. For example, use labels to\n manage a data loss policy (DLP) whereby users can't download files with a\n \"Sensitivity\" label set to \"Top Secret\".\n\n- **Curate and find files**---Create labels to increase searchability of your\n company's content by letting people in your organization find items based on\n labels and their fields. For example, apply a \"Signature Status\" label set\n to \"Awaiting Signature\" to all contracts awaiting signature by a specific\n date. Drive search can then return these contracts when\n someone searches \"awaiting signature\".\n\nBelow is a list of common terms used by Drive labels:\n\n*Label*\n\n: Structured metadata placed on a Drive file.\n Drive users can assign labels and set label field values\n for files. Labels are composed of:\n\n *Label name*\n : The resource name of the label. The *label ID* is part of the\n Label name. Depending on the request, the name is in the form of either:\n `labels/{id}` or `labels/{id}@{revisionId}`. For more information, see\n [Label revision](#revision) below.\n\n *Label ID*\n : A globally unique identifier for the label. The ID is part of the\n label name, but unlike the name, it's consistent between revisions.\n\n*Field*\n\n: An individual typed, settable component of a label. A label can have zero or\n more fields associated with it. Selection and user fields can be set with\n multiple values if the field is configured with\n [`ListOptions`](/workspace/drive/labels/reference/rest/v2/labels#listoptions) in the\n [Google Drive Labels API](/workspace/drive/labels/guides/overview).\n\n *Field type*\n : The data type of the value associated with the *field*. Configurable as\n integer, dateString, text, user, or selection. The type chosen impacts\n both the valid values applicable to Drive items and the\n search query options available.\n\n*Label taxonomy*\n\n: The configured label fields available to users for application to\n Drive files. Readable and writable through the\n Drive Labels API. Also known as the label schema.\n\n*Label revision*\n\n: An instance of the label. Anytime a label is created, updated, published, or\n deprecated, the label revision increments.\n\n *Draft revision*\n : The revision number of the current draft instance of the label. You can\n make several updates to a label, each incrementing its draft revision\n number, without affecting the published revision. The ability to have\n draft labels lets you test label updates before publishing.\n\n *Published revision*\n : The revision number of the published version of a label. The published\n label is the instance of the label available to users.\n\nRelated topics\n--------------\n\n- To learn about using labels in Drive, see [Set a label field\n on a file](/workspace/drive/api/guides/set-label).\n- Learn more about the [Drive Labels API](/workspace/drive/labels/guides/overview)."]]