Reference documentation and code samples for the Google Container Analysis v1 API class ContainerAnalysis.
Retrieves analysis results of Cloud components such as Docker container
images. The Container Analysis API is an implementation of the
Grafeas API.
Analysis results are stored as a series of occurrences. An Occurrence
contains information about a specific analysis instance on a resource. An
occurrence refers to a Note. A note contains details describing the
analysis and is generally stored in a separate project, called a Provider.
Multiple occurrences can refer to the same note.
For example, an SSL vulnerability could affect multiple images. In this case,
there would be one note for the vulnerability and an occurrence for each
image with the vulnerability referring to that note.
public static void BindService(ServiceBinderBase serviceBinder, ContainerAnalysis.ContainerAnalysisBase serviceImpl)
Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[[["\u003cp\u003eThis documentation page covers the \u003ccode\u003eContainerAnalysis\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.DevTools.ContainerAnalysis.V1\u003c/code\u003e namespace, focusing on the Google Container Analysis v1 API for retrieving analysis results of cloud components.\u003c/p\u003e\n"],["\u003cp\u003eThe Container Analysis API, which is an implementation of the Grafeas API, stores analysis results as a series of occurrences, each referring to a note that contains the details of the analysis.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eContainerAnalysis\u003c/code\u003e class offers static methods, \u003ccode\u003eBindService\u003c/code\u003e, that allow for the creation of a service definition or registering service methods, which is essential for server-side handling logic.\u003c/p\u003e\n"],["\u003cp\u003eThe latest documented version of ContainerAnalysis is 3.7.0, with multiple previous versions also available ranging down to version 2.2.0.\u003c/p\u003e\n"]]],[],null,["# Google Container Analysis v1 API - Class ContainerAnalysis (3.10.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.10.0 (latest)](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/latest/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.8.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.7.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.6.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.5.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.4.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.3.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.2.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.1.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/3.0.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/2.4.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/2.3.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/2.2.0/Google.Cloud.DevTools.ContainerAnalysis.V1.ContainerAnalysis) \n\n public static class ContainerAnalysis\n\nReference documentation and code samples for the Google Container Analysis v1 API class ContainerAnalysis.\n\nRetrieves analysis results of Cloud components such as Docker container\nimages. The Container Analysis API is an implementation of the\n[Grafeas](https://grafeas.io) API.\n\nAnalysis results are stored as a series of occurrences. An `Occurrence`\ncontains information about a specific analysis instance on a resource. An\noccurrence refers to a `Note`. A note contains details describing the\nanalysis and is generally stored in a separate project, called a `Provider`.\nMultiple occurrences can refer to the same note.\n\nFor example, an SSL vulnerability could affect multiple images. In this case,\nthere would be one note for the vulnerability and an occurrence for each\nimage with the vulnerability referring to that note. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ContainerAnalysis \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.DevTools.ContainerAnalysis.V1](/dotnet/docs/reference/Google.Cloud.DevTools.ContainerAnalysis.V1/latest/Google.Cloud.DevTools.ContainerAnalysis.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DevTools.ContainerAnalysis.V1.dll\n\nMethods\n-------\n\n### BindService(ContainerAnalysisBase)\n\n public static ServerServiceDefinition BindService(ContainerAnalysis.ContainerAnalysisBase serviceImpl)\n\nCreates service definition that can be registered with a server\n\n### BindService(ServiceBinderBase, ContainerAnalysisBase)\n\n public static void BindService(ServiceBinderBase serviceBinder, ContainerAnalysis.ContainerAnalysisBase serviceImpl)\n\nRegister service method with a service binder with or without implementation. Useful when customizing the service binding logic.\nNote: this method is part of an experimental API that can change or be removed without any prior notice."]]