| 1 |
<html><body> |
| 2 |
<style> |
| 3 |
|
| 4 |
body, 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 |
|
| 15 |
body { |
| 16 |
font-size: 13px; |
| 17 |
padding: 1em; |
| 18 |
} |
| 19 |
|
| 20 |
h1 { |
| 21 |
font-size: 26px; |
| 22 |
margin-bottom: 1em; |
| 23 |
} |
| 24 |
|
| 25 |
h2 { |
| 26 |
font-size: 24px; |
| 27 |
margin-bottom: 1em; |
| 28 |
} |
| 29 |
|
| 30 |
h3 { |
| 31 |
font-size: 20px; |
| 32 |
margin-bottom: 1em; |
| 33 |
margin-top: 1em; |
| 34 |
} |
| 35 |
|
| 36 |
pre, code { |
| 37 |
line-height: 1.5; |
| 38 |
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 |
} |
| 40 |
|
| 41 |
pre { |
| 42 |
margin-top: 0.5em; |
| 43 |
} |
| 44 |
|
| 45 |
h1, h2, h3, p { |
| 46 |
font-family: Arial, sans serif; |
| 47 |
} |
| 48 |
|
| 49 |
h1, 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="workloadmanager_v1.html">Workload Manager API</a> . <a href="workloadmanager_v1.projects.html">projects</a> . <a href="workloadmanager_v1.projects.locations.html">locations</a> . <a href="workloadmanager_v1.projects.locations.workloadProfiles.html">workloadProfiles</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">Gets details of a single workload.</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 workloads</p> |
| 86 |
<p class="toc_element"> |
| 87 |
<code><a href="#list_next">list_next()</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>Gets details of a single workload. |
| 98 |
|
| 99 |
Args: |
| 100 |
name: string, Required. Name of the resource (required) |
| 101 |
x__xgafv: string, V1 error format. |
| 102 |
Allowed values |
| 103 |
1 - v1 error format |
| 104 |
2 - v2 error format |
| 105 |
|
| 106 |
Returns: |
| 107 |
An object of the form: |
| 108 |
|
| 109 |
{ # workload resource |
| 110 |
"application": { # The database layer # Optional. The application layer |
| 111 |
"applicationType": "A String", # the application layer |
| 112 |
"databaseType": "A String", # Optional. the database layer |
| 113 |
"instances": [ # Optional. instances in a layer |
| 114 |
{ # a vm instance |
| 115 |
"name": "A String", # Output only. name of the VM |
| 116 |
"region": "A String", # Output only. The location of the VM |
| 117 |
"status": "A String", # Output only. The state of the VM |
| 118 |
}, |
| 119 |
], |
| 120 |
"sid": "A String", # Output only. system identification of a layer |
| 121 |
}, |
| 122 |
"ascs": { # The database layer # Optional. The ascs layer |
| 123 |
"applicationType": "A String", # the application layer |
| 124 |
"databaseType": "A String", # Optional. the database layer |
| 125 |
"instances": [ # Optional. instances in a layer |
| 126 |
{ # a vm instance |
| 127 |
"name": "A String", # Output only. name of the VM |
| 128 |
"region": "A String", # Output only. The location of the VM |
| 129 |
"status": "A String", # Output only. The state of the VM |
| 130 |
}, |
| 131 |
], |
| 132 |
"sid": "A String", # Output only. system identification of a layer |
| 133 |
}, |
| 134 |
"database": { # The database layer # Optional. The database layer |
| 135 |
"applicationType": "A String", # the application layer |
| 136 |
"databaseType": "A String", # Optional. the database layer |
| 137 |
"instances": [ # Optional. instances in a layer |
| 138 |
{ # a vm instance |
| 139 |
"name": "A String", # Output only. name of the VM |
| 140 |
"region": "A String", # Output only. The location of the VM |
| 141 |
"status": "A String", # Output only. The state of the VM |
| 142 |
}, |
| 143 |
], |
| 144 |
"sid": "A String", # Output only. system identification of a layer |
| 145 |
}, |
| 146 |
"labels": { # Optional. such as name, description, version. More example can be found in deployment |
| 147 |
"a_key": "A String", |
| 148 |
}, |
| 149 |
"name": "A String", # Identifier. name of resource names have the form 'projects/{project_id}/workloads/{workload_id}' |
| 150 |
"refreshedTime": "A String", # Required. time when the workload data was refreshed |
| 151 |
"sapWorkload": { # The body of sap workload # The sap workload content |
| 152 |
"application": { # The component of sap workload # Output only. the acsc componment |
| 153 |
"haHosts": [ # A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA. |
| 154 |
"A String", |
| 155 |
], |
| 156 |
"resources": [ # Output only. resources in the component |
| 157 |
{ # The resource on GCP |
| 158 |
"kind": "A String", # Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. |
| 159 |
"name": "A String", # Output only. resource name |
| 160 |
}, |
| 161 |
], |
| 162 |
"sid": "A String", # Output only. sid is the sap component identificator |
| 163 |
"topologyType": "A String", # The detected topology of the component. |
| 164 |
}, |
| 165 |
"database": { # The component of sap workload # Output only. the database componment |
| 166 |
"haHosts": [ # A list of host URIs that are part of the HA configuration if present. An empty list indicates the component is not configured for HA. |
| 167 |
"A String", |
| 168 |
], |
| 169 |
"resources": [ # Output only. resources in the component |
| 170 |
{ # The resource on GCP |
| 171 |
"kind": "A String", # Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. |
| 172 |
"name": "A String", # Output only. resource name |
| 173 |
}, |
| 174 |
], |
| 175 |
"sid": "A String", # Output only. sid is the sap component identificator |
| 176 |
"topologyType": "A String", # The detected topology of the component. |
| 177 |
}, |
| 178 |
"metadata": { # Output only. The metadata for SAP workload. |
| 179 |
"a_key": "A String", |
| 180 |
}, |
| 181 |
}, |
| 182 |
"sqlserverWorkload": { # The body of sqlserver workload # The sqlserver workload content |
| 183 |
"ags": [ # Output only. The availability groups for sqlserver |
| 184 |
{ # The availability groups for sqlserver |
| 185 |
"databases": [ # Output only. The databases |
| 186 |
"A String", |
| 187 |
], |
| 188 |
"name": "A String", # Output only. The availability group name |
| 189 |
"primaryServer": "A String", # Output only. The primary server |
| 190 |
"secondaryServers": [ # Output only. The secondary servers |
| 191 |
"A String", |
| 192 |
], |
| 193 |
}, |
| 194 |
], |
| 195 |
"cluster": { # The cluster for sqlserver # Output only. The cluster for sqlserver |
| 196 |
"nodes": [ # Output only. The nodes |
| 197 |
"A String", |
| 198 |
], |
| 199 |
"witnessServer": "A String", # Output only. The witness server |
| 200 |
}, |
| 201 |
"databases": [ # Output only. The databases for sqlserver |
| 202 |
{ # The database for sqlserver |
| 203 |
"backupFile": "A String", # Output only. The backup file |
| 204 |
"backupSchedule": "A String", # Output only. The backup schedule |
| 205 |
"hostVm": "A String", # Output only. The host VM |
| 206 |
"name": "A String", # Output only. The database name |
| 207 |
}, |
| 208 |
], |
| 209 |
"loadBalancerServer": { # The load balancer for sqlserver # Output only. The load balancer for sqlserver |
| 210 |
"ip": "A String", # Output only. The IP address |
| 211 |
"vm": "A String", # Output only. The VM name |
| 212 |
}, |
| 213 |
}, |
| 214 |
"state": "A String", # Output only. [output only] the current state if a a workload |
| 215 |
"threeTierWorkload": { # The body of three tier workload # The 3 tier web app workload content |
| 216 |
"apiLayer": { # The API layer server # Output only. The API layer for three tier workload |
| 217 |
"name": "A String", # Output only. The api layer name |
| 218 |
"osVersion": "A String", # Output only. OS information |
| 219 |
"resources": [ # Output only. resources in the component |
| 220 |
{ # The resource on GCP |
| 221 |
"kind": "A String", # Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. |
| 222 |
"name": "A String", # Output only. resource name |
| 223 |
}, |
| 224 |
], |
| 225 |
}, |
| 226 |
"backend": { # The backend server # Output only. The backend for three tier workload |
| 227 |
"backupFile": "A String", # Output only. The backup file |
| 228 |
"backupSchedule": "A String", # Output only. The backup schedule |
| 229 |
"name": "A String", # Output only. The backend name |
| 230 |
"osVersion": "A String", # Output only. OS information |
| 231 |
"resources": [ # Output only. resources in the component |
| 232 |
{ # The resource on GCP |
| 233 |
"kind": "A String", # Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. |
| 234 |
"name": "A String", # Output only. resource name |
| 235 |
}, |
| 236 |
], |
| 237 |
}, |
| 238 |
"endpoint": "A String", # Output only. the workload endpoint |
| 239 |
"frontend": { # The front end server # Output only. The frontend for three tier workload |
| 240 |
"name": "A String", # Output only. The frontend name |
| 241 |
"osVersion": "A String", # Output only. OS information |
| 242 |
"resources": [ # Output only. resources in the component |
| 243 |
{ # The resource on GCP |
| 244 |
"kind": "A String", # Output only. ComputeInstance, ComputeDisk, VPC, Bare Metal server, etc. |
| 245 |
"name": "A String", # Output only. resource name |
| 246 |
}, |
| 247 |
], |
| 248 |
}, |
| 249 |
}, |
| 250 |
"workloadType": "A String", # Required. The type of the workload |
| 251 |
}</pre> |
| 252 |
</div> |
| 253 |
|
| 254 |
<div class="method"> |
| 255 |
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
| 256 |
<pre>List workloads |
| 257 |
|
| 258 |
Args: |
| 259 |
parent: string, Required. Parent value for ListWorkloadRequest (required) |
| 260 |
filter: string, Optional. Filtering results |
| 261 |
pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default. |
| 262 |
pageToken: string, Optional. A token identifying a page of results the server should return. |
| 263 |
x__xgafv: string, V1 error format. |
| 264 |
Allowed values |
| 265 |
1 - v1 error format |
| 266 |
2 - v2 error format |
| 267 |
|
| 268 |
Returns: |
| 269 |
An object of the form: |
| 270 |
|
| 271 |
{ # List workloadResponse returns a response with the list of workload overview |
| 272 |
"nextPageToken": "A String", # Output only. A token identifying a page of results the server should return |
| 273 |
"unreachable": [ # Locations that could not be reached. |
| 274 |
"A String", |
| 275 |
], |
| 276 |
"workloadOverviews": [ # Output only. The list of Workload Overview |
| 277 |
{ # a workload profile overview |
| 278 |
"sapWorkloadOverview": { # The overview of sap workload # The sap workload overview |
| 279 |
"appSid": "A String", # Output only. The application SID |
| 280 |
"dbSid": "A String", # Output only. The database SID |
| 281 |
"sapSystemId": "A String", # Output only. The UUID for a SAP workload |
| 282 |
}, |
| 283 |
"sqlserverWorkloadOverview": { # The overview of sqlserver workload # The sqlserver workload overview |
| 284 |
"availabilityGroup": [ # Output only. The availability groups |
| 285 |
"A String", |
| 286 |
], |
| 287 |
"sqlserverSystemId": "A String", # Output only. The UUID for a Sqlserver workload |
| 288 |
}, |
| 289 |
"threeTierWorkloadOverview": { # The overview of three tier workload # The three tier workload overview |
| 290 |
"threeTierSystemId": "A String", # Output only. The UUID for a three tier workload |
| 291 |
}, |
| 292 |
}, |
| 293 |
], |
| 294 |
}</pre> |
| 295 |
</div> |
| 296 |
|
| 297 |
<div class="method"> |
| 298 |
<code class="details" id="list_next">list_next()</code> |
| 299 |
<pre>Retrieves the next page of results. |
| 300 |
|
| 301 |
Args: |
| 302 |
previous_request: The request for the previous page. (required) |
| 303 |
previous_response: The response from the request for the previous page. (required) |
| 304 |
|
| 305 |
Returns: |
| 306 |
A request object that you can call 'execute()' on to request the next |
| 307 |
page. Returns None if there are no more items in the collection. |
| 308 |
</pre> |
| 309 |
</div> |
| 310 |
|
| 311 |
</body></html> |