blob: f583b4bc74ce429269ba778f0776e6887303a9af [file] [log] [blame]
Bu Sun Kim65020912020-05-20 12:08:20 -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="cloudasset_v1p1beta1.html">Cloud Asset API</a> . <a href="cloudasset_v1p1beta1.resources.html">resources</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#searchAll">searchAll(scope, orderBy=None, pageToken=None, assetTypes=None, query=None, pageSize=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Searches all the resources within a given accessible CRM scope</p>
Bu Sun Kim65020912020-05-20 12:08:20 -070080<p class="toc_element">
81 <code><a href="#searchAll_next">searchAll_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<h3>Method Details</h3>
84<div class="method">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085 <code class="details" id="searchAll">searchAll(scope, orderBy=None, pageToken=None, assetTypes=None, query=None, pageSize=None, x__xgafv=None)</code>
86 <pre>Searches all the resources within a given accessible CRM scope
87(project/folder/organization). This RPC gives callers especially
88administrators the ability to search all the resources within a scope, even
89if they don&#x27;t have `.get` permission of all the resources. Callers should
90have `cloud.assets.SearchAllResources` permission on the requested scope,
91otherwise the request will be rejected.
Bu Sun Kim65020912020-05-20 12:08:20 -070092
93Args:
94 scope: string, Required. The relative name of an asset. The search is limited to the resources
95within the `scope`. The allowed value must be:
Bu Sun Kimd059ad82020-07-22 17:02:09 -070096
Bu Sun Kim65020912020-05-20 12:08:20 -070097* Organization number (such as &quot;organizations/123&quot;)
98* Folder number(such as &quot;folders/1234&quot;)
99* Project number (such as &quot;projects/12345&quot;)
100* Project id (such as &quot;projects/abc&quot;) (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700101 orderBy: string, Optional. A comma separated list of fields specifying the sorting order of the
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700102results. The default order is ascending. Add ` DESC` after the field name
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700103to indicate descending order. Redundant space characters are ignored. For
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104example, ` location DESC , name `.
Bu Sun Kim65020912020-05-20 12:08:20 -0700105 pageToken: string, Optional. If present, then retrieve the next batch of results from the preceding call
106to this method. `page_token` must be the value of `next_page_token` from
107the previous response. The values of all other method parameters, must be
108identical to those in the previous call.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700109 assetTypes: string, Optional. A list of asset types that this request searches for. If empty, it will
110search all the supported asset types. (repeated)
111 query: string, Optional. The query statement.
Bu Sun Kim65020912020-05-20 12:08:20 -0700112 pageSize: integer, Optional. The page size for search result pagination. Page size is capped at 500 even
113if a larger value is given. If set to zero, server will pick an appropriate
114default. Returned results may be fewer than requested. When this happens,
115there could be more results as long as `next_page_token` is returned.
Bu Sun Kim65020912020-05-20 12:08:20 -0700116 x__xgafv: string, V1 error format.
117 Allowed values
118 1 - v1 error format
119 2 - v2 error format
120
121Returns:
122 An object of the form:
123
124 { # Search all resources response.
Bu Sun Kim65020912020-05-20 12:08:20 -0700125 &quot;results&quot;: [ # A list of resource that match the search query.
126 { # The standard metadata of a cloud resource.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 &quot;networkTags&quot;: [ # Network tags associated with this resource. Like labels, network tags are a
128 # type of annotations used to group GCP resources. See [Labelling GCP
129 # resources](lhttps://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
130 # for more information.
131 &quot;A String&quot;,
132 ],
133 &quot;description&quot;: &quot;A String&quot;, # One or more paragraphs of text description of this resource. Maximum length
134 # could be up to 1M bytes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700135 &quot;additionalAttributes&quot;: [ # Additional searchable attributes of this resource.
136 # Informational only. The exact set of attributes is subject to change.
137 # For example: project id, DNS name etc.
138 &quot;A String&quot;,
139 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700140 &quot;project&quot;: &quot;A String&quot;, # The project that this resource belongs to, in the form of
141 # `projects/{project_number}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700142 &quot;displayName&quot;: &quot;A String&quot;, # The display name of this resource.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700143 &quot;labels&quot;: { # Labels associated with this resource. See [Labelling and grouping GCP
144 # resources](https://cloud.google.com/blog/products/gcp/labelling-and-grouping-your-google-cloud-platform-resources)
145 # for more information.
146 &quot;a_key&quot;: &quot;A String&quot;,
147 },
148 &quot;name&quot;: &quot;A String&quot;, # The full resource name. For example:
149 # `//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`.
150 # See [Resource
151 # Names](https://cloud.google.com/apis/design/resource_names#full_resource_name)
152 # for more information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700153 &quot;location&quot;: &quot;A String&quot;, # Location can be &quot;global&quot;, regional like &quot;us-east1&quot;, or zonal like
154 # &quot;us-west1-b&quot;.
155 &quot;assetType&quot;: &quot;A String&quot;, # The type of this resource.
156 # For example: &quot;compute.googleapis.com/Disk&quot;.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 },
158 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700159 &quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more results than those appearing in this response, then
160 # `next_page_token` is included. To get the next set of results, call this
161 # method again using the value of `next_page_token` as `page_token`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700162 }</pre>
163</div>
164
165<div class="method">
166 <code class="details" id="searchAll_next">searchAll_next(previous_request, previous_response)</code>
167 <pre>Retrieves the next page of results.
168
169Args:
170 previous_request: The request for the previous page. (required)
171 previous_response: The response from the request for the previous page. (required)
172
173Returns:
174 A request object that you can call &#x27;execute()&#x27; on to request the next
175 page. Returns None if there are no more items in the collection.
176 </pre>
177</div>
178
179</body></html>