blob: 879c01af3d0a083dd1f46b8f8609c42958783678 [file] [log] [blame]
yoshi-code-bot227f8c92021-05-26 00:34:03 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="osconfig_v1alpha.html">OS Config API</a> . <a href="osconfig_v1alpha.projects.html">projects</a> . <a href="osconfig_v1alpha.projects.locations.html">locations</a> . <a href="osconfig_v1alpha.projects.locations.instanceOSPoliciesCompliances.html">instanceOSPoliciesCompliances</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
81 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Get OS policies compliance data for the specified Compute Engine VM instance.</p>
83<p class="toc_element">
84 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
85<p class="firstline">List OS policies compliance data for all Compute Engine VM instances in the specified zone.</p>
86<p class="toc_element">
87 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
88<p class="firstline">Retrieves the next page of results.</p>
89<h3>Method Details</h3>
90<div class="method">
91 <code class="details" id="close">close()</code>
92 <pre>Close httplib2 connections.</pre>
93</div>
94
95<div class="method">
96 <code class="details" id="get">get(name, x__xgafv=None)</code>
97 <pre>Get OS policies compliance data for the specified Compute Engine VM instance.
98
99Args:
100 name: string, Required. API resource name for instance OS policies compliance resource. Format: `projects/{project}/locations/{location}/instanceOSPoliciesCompliances/{instance}` For `{project}`, either Compute Engine project-number or project-id can be provided. For `{instance}`, either Compute Engine VM instance-id or instance-name can be provided. (required)
101 x__xgafv: string, V1 error format.
102 Allowed values
103 1 - v1 error format
104 2 - v2 error format
105
106Returns:
107 An object of the form:
108
yoshi-code-bot4c9ccb02021-05-27 00:38:02 -0700109 { # This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time. A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM. You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy. For more information, see [View compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
yoshi-code-bot227f8c92021-05-26 00:34:03 -0700110 &quot;detailedState&quot;: &quot;A String&quot;, # Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
111 &quot;detailedStateReason&quot;: &quot;A String&quot;, # Output only. The reason for the `detailed_state` of the VM (if any).
112 &quot;instance&quot;: &quot;A String&quot;, # Output only. The Compute Engine VM instance name.
113 &quot;lastComplianceCheckTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last compliance check for the VM.
114 &quot;lastComplianceRunId&quot;: &quot;A String&quot;, # Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
115 &quot;name&quot;: &quot;A String&quot;, # Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
116 &quot;osPolicyCompliances&quot;: [ # Output only. Compliance data for each `OSPolicy` that is applied to the VM.
117 { # Compliance data for an OS policy
118 &quot;osPolicyAssignment&quot;: &quot;A String&quot;, # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
119 &quot;osPolicyId&quot;: &quot;A String&quot;, # The OS policy id
120 &quot;osPolicyResourceCompliances&quot;: [ # Compliance data for each `OSPolicyResource` that is applied to the VM.
121 { # Compliance data for an OS policy resource.
122 &quot;configSteps&quot;: [ # Ordered list of configuration steps taken by the agent for the OS policy resource.
123 { # Step performed by the OS Config agent for configuring an `OSPolicyResource` to its desired state.
124 &quot;outcome&quot;: &quot;A String&quot;, # Outcome of the configuration step.
125 &quot;type&quot;: &quot;A String&quot;, # Configuration step type.
126 },
127 ],
yoshi-code-bot4c9ccb02021-05-27 00:38:02 -0700128 &quot;execResourceOutput&quot;: { # ExecResource specific output. # ExecResource specific output.
129 &quot;enforcementOutput&quot;: &quot;A String&quot;, # Output from Enforcement phase output file (if run). Output size is limited to 100K bytes.
130 },
yoshi-code-bot227f8c92021-05-26 00:34:03 -0700131 &quot;osPolicyResourceId&quot;: &quot;A String&quot;, # The id of the OS policy resource.
132 &quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy resource.
133 },
134 ],
135 &quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy.
136 },
137 ],
138 &quot;state&quot;: &quot;A String&quot;, # Output only. Compliance state of the VM.
139}</pre>
140</div>
141
142<div class="method">
143 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
144 <pre>List OS policies compliance data for all Compute Engine VM instances in the specified zone.
145
146Args:
147 parent: string, Required. The parent resource name. Format: `projects/{project}/locations/{location}` For `{project}`, either Compute Engine project-number or project-id can be provided. (required)
148 filter: string, If provided, this field specifies the criteria that must be met by a `InstanceOSPoliciesCompliance` API resource to be included in the response.
149 pageSize: integer, The maximum number of results to return.
150 pageToken: string, A pagination token returned from a previous call to `ListInstanceOSPoliciesCompliances` that indicates where this listing should continue from.
151 x__xgafv: string, V1 error format.
152 Allowed values
153 1 - v1 error format
154 2 - v2 error format
155
156Returns:
157 An object of the form:
158
159 { # A response message for listing OS policies compliance data for all Compute Engine VMs in the given location.
160 &quot;instanceOsPoliciesCompliances&quot;: [ # List of instance OS policies compliance objects.
yoshi-code-bot4c9ccb02021-05-27 00:38:02 -0700161 { # This API resource represents the OS policies compliance data for a Compute Engine virtual machine (VM) instance at a given point in time. A Compute Engine VM can have multiple OS policy assignments, and each assignment can have multiple OS policies. As a result, multiple OS policies could be applied to a single VM. You can use this API resource to determine both the compliance state of your VM as well as the compliance state of an individual OS policy. For more information, see [View compliance](https://cloud.google.com/compute/docs/os-configuration-management/view-compliance).
yoshi-code-bot227f8c92021-05-26 00:34:03 -0700162 &quot;detailedState&quot;: &quot;A String&quot;, # Output only. Detailed compliance state of the VM. This field is populated only when compliance state is `UNKNOWN`. It may contain one of the following values: * `no-compliance-data`: Compliance data is not available for this VM. * `no-agent-detected`: OS Config agent is not detected for this VM. * `config-not-supported-by-agent`: The version of the OS Config agent running on this VM does not support configuration management. * `inactive`: VM is not running. * `internal-service-errors`: There were internal service errors encountered while enforcing compliance. * `agent-errors`: OS config agent encountered errors while enforcing compliance.
163 &quot;detailedStateReason&quot;: &quot;A String&quot;, # Output only. The reason for the `detailed_state` of the VM (if any).
164 &quot;instance&quot;: &quot;A String&quot;, # Output only. The Compute Engine VM instance name.
165 &quot;lastComplianceCheckTime&quot;: &quot;A String&quot;, # Output only. Timestamp of the last compliance check for the VM.
166 &quot;lastComplianceRunId&quot;: &quot;A String&quot;, # Output only. Unique identifier for the last compliance run. This id will be logged by the OS config agent during a compliance run and can be used for debugging and tracing purpose.
167 &quot;name&quot;: &quot;A String&quot;, # Output only. The `InstanceOSPoliciesCompliance` API resource name. Format: `projects/{project_number}/locations/{location}/instanceOSPoliciesCompliances/{instance_id}`
168 &quot;osPolicyCompliances&quot;: [ # Output only. Compliance data for each `OSPolicy` that is applied to the VM.
169 { # Compliance data for an OS policy
170 &quot;osPolicyAssignment&quot;: &quot;A String&quot;, # Reference to the `OSPolicyAssignment` API resource that the `OSPolicy` belongs to. Format: `projects/{project_number}/locations/{location}/osPolicyAssignments/{os_policy_assignment_id@revision_id}`
171 &quot;osPolicyId&quot;: &quot;A String&quot;, # The OS policy id
172 &quot;osPolicyResourceCompliances&quot;: [ # Compliance data for each `OSPolicyResource` that is applied to the VM.
173 { # Compliance data for an OS policy resource.
174 &quot;configSteps&quot;: [ # Ordered list of configuration steps taken by the agent for the OS policy resource.
175 { # Step performed by the OS Config agent for configuring an `OSPolicyResource` to its desired state.
176 &quot;outcome&quot;: &quot;A String&quot;, # Outcome of the configuration step.
177 &quot;type&quot;: &quot;A String&quot;, # Configuration step type.
178 },
179 ],
yoshi-code-bot4c9ccb02021-05-27 00:38:02 -0700180 &quot;execResourceOutput&quot;: { # ExecResource specific output. # ExecResource specific output.
181 &quot;enforcementOutput&quot;: &quot;A String&quot;, # Output from Enforcement phase output file (if run). Output size is limited to 100K bytes.
182 },
yoshi-code-bot227f8c92021-05-26 00:34:03 -0700183 &quot;osPolicyResourceId&quot;: &quot;A String&quot;, # The id of the OS policy resource.
184 &quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy resource.
185 },
186 ],
187 &quot;state&quot;: &quot;A String&quot;, # Compliance state of the OS policy.
188 },
189 ],
190 &quot;state&quot;: &quot;A String&quot;, # Output only. Compliance state of the VM.
191 },
192 ],
193 &quot;nextPageToken&quot;: &quot;A String&quot;, # The pagination token to retrieve the next page of instance OS policies compliance objects.
194}</pre>
195</div>
196
197<div class="method">
198 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
199 <pre>Retrieves the next page of results.
200
201Args:
202 previous_request: The request for the previous page. (required)
203 previous_response: The response from the request for the previous page. (required)
204
205Returns:
206 A request object that you can call &#x27;execute()&#x27; on to request the next
207 page. Returns None if there are no more items in the collection.
208 </pre>
209</div>
210
211</body></html>