সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
সতর্কতা কেন্দ্র API আপনাকে আপনার ডোমেনকে প্রভাবিত করে এমন সতর্কতাগুলি পরিচালনা করতে দেয়৷ একটি সতর্কতা হল একটি সম্ভাব্য নিরাপত্তা সমস্যার একটি সতর্কতা যা Google সনাক্ত করেছে৷ সতর্কতা নিম্নলিখিত তথ্য অন্তর্ভুক্ত:
যে সূত্র থেকে সতর্কতাটি এসেছে।
সতর্কতার নাম।
সময় এই সতর্কতা ঘটেছে.
এই সতর্কতার সাথে যুক্ত নির্দিষ্ট ডেটা।
ডোমেন প্রশাসকরা Google অ্যাডমিন কনসোল থেকে ম্যানুয়ালি সতর্কতাগুলি দেখতে এবং পরিচালনা করতে পারেন৷ অ্যালার্ট সেন্টার এপিআই আপনাকে অ্যালার্ট ডেটা এবং সতর্ক প্রতিক্রিয়া পুনরুদ্ধার করতে অ্যাপ তৈরি করতে দেয়। এপিআই বিদ্যমান সতর্কতার জন্য নতুন সতর্কতা প্রতিক্রিয়া তৈরি করতে পারে।
উদাহরণস্বরূপ, একটি মনিটরিং অ্যাপ একটি ডোমেনের জন্য সাম্প্রতিকতম সতর্কতাগুলি পুনরুদ্ধার করতে, সেগুলিকে অগ্রাধিকার দিতে এবং তারপরে আপনার সংস্থার সদস্যদের অবহিত করতে সতর্কতা কেন্দ্র API ব্যবহার করতে পারে৷ আপনার টিম সতর্কতার প্রতিক্রিয়া জানানোর পরে, অ্যাপটি তাদের ফলাফলের উপর ভিত্তি করে সতর্কতার সাথে প্রতিক্রিয়া সংযুক্ত করতে পারে।
একবার আপনার অ্যাপের একটি ক্লাউড প্রকল্প আছে যা পূর্বশর্তগুলি পূরণ করে এবং সঠিকভাবে অনুমোদিত হলে, এটি সতর্কতা কেন্দ্র API REST অনুরোধ করতে পারে৷ উপলব্ধ ক্লায়েন্ট লাইব্রেরি ব্যবহার করার সময় API অনুরোধ করা সহজ।
নিম্নলিখিত উদাহরণ দেখায় কিভাবে API ব্যবহার করে উপলব্ধ সতর্কতা তালিকাভুক্ত করা যায়:
জাভা
// First, authorize the API and create a client to make requests with.URLserviceAccountUrl=AuthUtils.class.getResource("/client_secret.json");GoogleCredentialscredentials=ServiceAccountCredentials.fromStream(serviceAccountUrl.openStream()).createDelegated("admin@xxxx.com").createScoped(Collections.singleton("https://www.googleapis.com/auth/apps.alerts"));ApacheHttpTransporttransport=newApacheHttpTransport();HttpCredentialsAdapteradapter=newHttpCredentialsAdapter(credentials);AlertCenteralertCenter=newAlertCenter.Builder(transport,newJacksonFactory(),adapter).setApplicationName("Alert Center client").build();// List alerts in pages, printing each alert discovered.StringpageToken=null;do{ListAlertsResponselistResponse=service.alerts().list().setPageToken(pageToken).setPageSize(20).execute();if(listResponse.getAlerts()!=null){for(Alertalert:listResponse.getAlerts()){System.out.println(alert);}}pageToken=listResponse.getNextPageToken();}while(pageToken!=null);
[null,null,["2025-08-29 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# Overview\n\nThe Alert Center API lets you manage *alerts* affecting your domain.\nAn alert is a warning of a potential security issue that Google has detected.\nAlerts include the following information:\n\n- Source that the alert originated from.\n- Name of the alert.\n- Time this alert happened.\n- Specific data associated with this alert.\n\nDomain administrators can see and manage alerts manually from the\n[Google Admin console](https://support.google.com/a/topic/2413312). The\nAlert Center API lets apps you build retrieve alert data and alert feedback. The\nAPI can also create new alert feedback for existing alerts.\n\nFor example, a monitoring app could use the Alert Center API to retrieve the\nmost recent alerts for a domain, prioritize them, and then notify members\nof your organization. After your team responds to the alert, the app could then\nattach feedback to the alert based on their findings.\n\nUse Alert Center API\n--------------------\n\n| **Note:** The current version of this API (v1beta1) is available to all Google Workspace customers.\n\nBefore using the Alert Center API you need to set up\n[a new Cloud Platform project and enable Alert Center API](/workspace/admin/alertcenter/guides/prerequisites).\nYour project must use a [service account](/identity/protocols/OAuth2ServiceAccount)\nwhen accessing the API.\n\nOnce your app has a Cloud project that meets the prerequisites and is properly\n[authorized](/workspace/admin/alertcenter/guides/authorizing), it can make\nAlert Center API REST requests. Making API requests is easier when using the\navailable [client libraries](/workspace/admin/alertcenter/guides/libraries).\n\nThe following example shows how to list available alerts using the API: \n\n### Java\n\n```java\n// First, authorize the API and create a client to make requests with.\nURL serviceAccountUrl = AuthUtils.class.getResource(\"/client_secret.json\");\nGoogleCredentials credentials = ServiceAccountCredentials\n .fromStream(serviceAccountUrl.openStream())\n .createDelegated(\"admin@xxxx.com\")\n .createScoped(Collections.singleton(\"https://www.googleapis.com/auth/apps.alerts\"));\nApacheHttpTransport transport = new ApacheHttpTransport();\nHttpCredentialsAdapter adapter = new HttpCredentialsAdapter(credentials);\nAlertCenter alertCenter = new AlertCenter.Builder(transport, new JacksonFactory(), adapter)\n .setApplicationName(\"Alert Center client\")\n .build();\n\n// List alerts in pages, printing each alert discovered.\nString pageToken = null;\ndo {\n ListAlertsResponse listResponse = service.alerts().list().setPageToken(pageToken)\n .setPageSize(20).execute();\n if (listResponse.getAlerts() != null) {\n for (Alert alert : listResponse.getAlerts()) {\n System.out.println(alert);\n }\n }\n pageToken = listResponse.getNextPageToken();\n} while (pageToken != null);\n \n```"]]