mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-25 12:44:07 +01:00
605 lines
27 KiB
HTML
605 lines
27 KiB
HTML
<!DOCTYPE html>
|
|
<html class="writer-html5" lang="en" >
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><link rel="canonical" href="http://byron.github.io/google-apis-rs/google-monitoring3-cli/services_create/" />
|
|
<link rel="shortcut icon" href="../img/favicon.ico" />
|
|
<title>Create - Monitoring v5.0.4+20240225</title>
|
|
<link rel="stylesheet" href="../css/theme.css" />
|
|
<link rel="stylesheet" href="../css/theme_extra.css" />
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/github.min.css" />
|
|
|
|
<script>
|
|
// Current page data
|
|
var mkdocs_page_name = "Create";
|
|
var mkdocs_page_input_path = "services_create.md";
|
|
var mkdocs_page_url = "/google-apis-rs/google-monitoring3-cli/services_create/";
|
|
</script>
|
|
|
|
<script src="../js/jquery-3.6.0.min.js" defer></script>
|
|
<!--[if lt IE 9]>
|
|
<script src="../js/html5shiv.min.js"></script>
|
|
<![endif]-->
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/highlight.min.js"></script>
|
|
<script>hljs.initHighlightingOnLoad();</script>
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
|
|
<div class="wy-side-scroll">
|
|
<div class="wy-side-nav-search">
|
|
<a href=".." class="icon icon-home"> Monitoring v5.0.4+20240225
|
|
</a><div role="search">
|
|
<form id ="rtd-search-form" class="wy-form" action="../search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" title="Type search term here" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="..">Home</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Folders</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../folders_time-series-list/">Time Series List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Organizations</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../organizations_time-series-list/">Time Series List</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Projects</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_alert-policies-create/">Alert Policies Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_alert-policies-delete/">Alert Policies Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_alert-policies-get/">Alert Policies Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_alert-policies-list/">Alert Policies List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_alert-policies-patch/">Alert Policies Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_collectd-time-series-create/">Collectd Time Series Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-create/">Groups Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-delete/">Groups Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-get/">Groups Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-list/">Groups List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-members-list/">Groups Members List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_groups-update/">Groups Update</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_metric-descriptors-create/">Metric Descriptors Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_metric-descriptors-delete/">Metric Descriptors Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_metric-descriptors-get/">Metric Descriptors Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_metric-descriptors-list/">Metric Descriptors List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_monitored-resource-descriptors-get/">Monitored Resource Descriptors Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_monitored-resource-descriptors-list/">Monitored Resource Descriptors List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channel-descriptors-get/">Notification Channel Descriptors Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channel-descriptors-list/">Notification Channel Descriptors List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-create/">Notification Channels Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-delete/">Notification Channels Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-get/">Notification Channels Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-get-verification-code/">Notification Channels Get Verification Code</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-list/">Notification Channels List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-patch/">Notification Channels Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-send-verification-code/">Notification Channels Send Verification Code</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_notification-channels-verify/">Notification Channels Verify</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_snoozes-create/">Snoozes Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_snoozes-get/">Snoozes Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_snoozes-list/">Snoozes List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_snoozes-patch/">Snoozes Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_time-series-create/">Time Series Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_time-series-create-service/">Time Series Create Service</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_time-series-list/">Time Series List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_time-series-query/">Time Series Query</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_uptime-check-configs-create/">Uptime Check Configs Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_uptime-check-configs-delete/">Uptime Check Configs Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_uptime-check-configs-get/">Uptime Check Configs Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_uptime-check-configs-list/">Uptime Check Configs List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../projects_uptime-check-configs-patch/">Uptime Check Configs Patch</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Services</span></p>
|
|
<ul class="current">
|
|
<li class="toctree-l1 current"><a class="reference internal current" href="./">Create</a>
|
|
<ul class="current">
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_delete/">Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_get/">Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_list/">List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_patch/">Patch</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_service-level-objectives-create/">Service Level Objectives Create</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_service-level-objectives-delete/">Service Level Objectives Delete</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_service-level-objectives-get/">Service Level Objectives Get</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_service-level-objectives-list/">Service Level Objectives List</a>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="../services_service-level-objectives-patch/">Service Level Objectives Patch</a>
|
|
</li>
|
|
</ul>
|
|
<p class="caption"><span class="caption-text">Uptime Check Ips</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="../uptime-check-ips_list/">List</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
|
|
<nav class="wy-nav-top" role="navigation" aria-label="Mobile navigation menu">
|
|
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
|
|
<a href="..">Monitoring v5.0.4+20240225</a>
|
|
|
|
</nav>
|
|
<div class="wy-nav-content">
|
|
<div class="rst-content"><div role="navigation" aria-label="breadcrumbs navigation">
|
|
<ul class="wy-breadcrumbs">
|
|
<li><a href=".." class="icon icon-home" alt="Docs"></a> »</li>
|
|
<li>Services »</li>
|
|
<li>Create</li>
|
|
<li class="wy-breadcrumbs-aside">
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/monitoring3-cli/edit/master/docs/services_create.md"
|
|
class="icon icon-github"> Edit on GitHub</a>
|
|
</li>
|
|
</ul>
|
|
<hr/>
|
|
</div>
|
|
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
|
|
<div class="section" itemprop="articleBody">
|
|
|
|
<p>Create a Service.</p>
|
|
<h1 id="scopes">Scopes</h1>
|
|
<p>You will need authorization for at least one of the following scopes to make a valid call:</p>
|
|
<ul>
|
|
<li><em>https://www.googleapis.com/auth/cloud-platform</em></li>
|
|
<li><em>https://www.googleapis.com/auth/monitoring</em></li>
|
|
</ul>
|
|
<p>If unset, the scope for this method defaults to <em>https://www.googleapis.com/auth/cloud-platform</em>.
|
|
You can set the scope for this method like this: <code>monitoring3 --scope <scope> services create ...</code></p>
|
|
<h1 id="required-scalar-argument">Required Scalar Argument</h1>
|
|
<ul>
|
|
<li><strong><parent></strong> <em>(string)</em><ul>
|
|
<li>Required. Resource name (https://cloud.google.com/monitoring/api/v3#project_name) of the parent Metrics Scope. The format is: projects/[PROJECT_ID_OR_NUMBER] </li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="required-request-value">Required Request Value</h1>
|
|
<p>The request value is a data-structure with various fields. Each field may be a simple scalar or another data-structure.
|
|
In the latter case it is advised to set the field-cursor to the data-structure's field to specify values more concisely.</p>
|
|
<p>For example, a structure like this:</p>
|
|
<pre><code>Service:
|
|
app-engine:
|
|
module-id: string
|
|
basic-service:
|
|
service-labels: { string: string }
|
|
service-type: string
|
|
cloud-endpoints:
|
|
service: string
|
|
cloud-run:
|
|
location: string
|
|
service-name: string
|
|
cluster-istio:
|
|
cluster-name: string
|
|
location: string
|
|
service-name: string
|
|
service-namespace: string
|
|
display-name: string
|
|
gke-namespace:
|
|
cluster-name: string
|
|
location: string
|
|
namespace-name: string
|
|
project-id: string
|
|
gke-service:
|
|
cluster-name: string
|
|
location: string
|
|
namespace-name: string
|
|
project-id: string
|
|
service-name: string
|
|
gke-workload:
|
|
cluster-name: string
|
|
location: string
|
|
namespace-name: string
|
|
project-id: string
|
|
top-level-controller-name: string
|
|
top-level-controller-type: string
|
|
istio-canonical-service:
|
|
canonical-service: string
|
|
canonical-service-namespace: string
|
|
mesh-uid: string
|
|
mesh-istio:
|
|
mesh-uid: string
|
|
service-name: string
|
|
service-namespace: string
|
|
name: string
|
|
telemetry:
|
|
resource-name: string
|
|
user-labels: { string: string }
|
|
|
|
</code></pre>
|
|
<p>can be set completely with the following arguments which are assumed to be executed in the given order. Note how the cursor position is adjusted to the respective structures, allowing simple field names to be used most of the time.</p>
|
|
<ul>
|
|
<li>
|
|
<p><code>-r .app-engine module-id=dolores</code></p>
|
|
<ul>
|
|
<li>The ID of the App Engine module underlying this service. Corresponds to the module_id resource label in the gae_app monitored resource (https://cloud.google.com/monitoring/api/resources#tag_gae_app).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..basic-service service-labels=key=erat</code></p>
|
|
<ul>
|
|
<li>Labels that specify the resource that emits the monitoring data which is used for SLO reporting of this Service. Documentation and valid values for given service types here (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>service-type=accusam</code></p>
|
|
<ul>
|
|
<li>The type of service that this basic service defines, e.g. APP_ENGINE service type. Documentation and valid values here (https://cloud.google.com/stackdriver/docs/solutions/slo-monitoring/api/api-structures#basic-svc-w-basic-sli).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..cloud-endpoints service=sea</code></p>
|
|
<ul>
|
|
<li>The name of the Cloud Endpoints service underlying this service. Corresponds to the service resource label in the api monitored resource (https://cloud.google.com/monitoring/api/resources#tag_api).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..cloud-run location=takimata</code></p>
|
|
<ul>
|
|
<li>The location the service is run. Corresponds to the location resource label in the cloud_run_revision monitored resource (https://cloud.google.com/monitoring/api/resources#tag_cloud_run_revision).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>service-name=lorem</code></p>
|
|
<ul>
|
|
<li>The name of the Cloud Run service. Corresponds to the service_name resource label in the cloud_run_revision monitored resource (https://cloud.google.com/monitoring/api/resources#tag_cloud_run_revision).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..cluster-istio cluster-name=et</code></p>
|
|
<ul>
|
|
<li>The name of the Kubernetes cluster in which this Istio service is defined. Corresponds to the cluster_name resource label in k8s_cluster resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location=at</code><ul>
|
|
<li>The location of the Kubernetes cluster in which this Istio service is defined. Corresponds to the location resource label in k8s_cluster resources.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>service-name=dolor</code><ul>
|
|
<li>The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>service-namespace=et</code></p>
|
|
<ul>
|
|
<li>The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace metric label in Istio metrics.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. display-name=sit</code></p>
|
|
<ul>
|
|
<li>Name used for UI elements listing this Service.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>gke-namespace cluster-name=erat</code><ul>
|
|
<li>The name of the parent cluster.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location=sea</code><ul>
|
|
<li>The location of the parent cluster. This may be a zone or region.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>namespace-name=nonumy</code><ul>
|
|
<li>The name of this namespace.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>project-id=et</code></p>
|
|
<ul>
|
|
<li>Output only. The project this resource lives in. For legacy services migrated from the Custom type, this may be a distinct project from the one parenting the service itself.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..gke-service cluster-name=gubergren</code></p>
|
|
<ul>
|
|
<li>The name of the parent cluster.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location=justo</code><ul>
|
|
<li>The location of the parent cluster. This may be a zone or region.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>namespace-name=sea</code><ul>
|
|
<li>The name of the parent namespace.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>project-id=consetetur</code><ul>
|
|
<li>Output only. The project this resource lives in. For legacy services migrated from the Custom type, this may be a distinct project from the one parenting the service itself.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>service-name=sit</code></p>
|
|
<ul>
|
|
<li>The name of this service.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..gke-workload cluster-name=aliquyam</code></p>
|
|
<ul>
|
|
<li>The name of the parent cluster.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>location=eos</code><ul>
|
|
<li>The location of the parent cluster. This may be a zone or region.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>namespace-name=at</code><ul>
|
|
<li>The name of the parent namespace.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>project-id=dolores</code><ul>
|
|
<li>Output only. The project this resource lives in. For legacy services migrated from the Custom type, this may be a distinct project from the one parenting the service itself.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>top-level-controller-name=consetetur</code><ul>
|
|
<li>The name of this workload.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>top-level-controller-type=gubergren</code></p>
|
|
<ul>
|
|
<li>The type of this workload (for example, "Deployment" or "DaemonSet")</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..istio-canonical-service canonical-service=dolor</code></p>
|
|
<ul>
|
|
<li>The name of the canonical service underlying this service. Corresponds to the destination_canonical_service_name metric label in label in Istio metrics (https://cloud.google.com/monitoring/api/metrics_istio).</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>canonical-service-namespace=aliquyam</code><ul>
|
|
<li>The namespace of the canonical service underlying this service. Corresponds to the destination_canonical_service_namespace metric label in Istio metrics (https://cloud.google.com/monitoring/api/metrics_istio).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>mesh-uid=no</code></p>
|
|
<ul>
|
|
<li>Identifier for the Istio mesh in which this canonical service is defined. Corresponds to the mesh_uid metric label in Istio metrics (https://cloud.google.com/monitoring/api/metrics_istio).</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>..mesh-istio mesh-uid=amet.</code></p>
|
|
<ul>
|
|
<li>Identifier for the mesh in which this Istio service is defined. Corresponds to the mesh_uid metric label in Istio metrics.</li>
|
|
</ul>
|
|
</li>
|
|
<li><code>service-name=ipsum</code><ul>
|
|
<li>The name of the Istio service underlying this service. Corresponds to the destination_service_name metric label in Istio metrics.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>service-namespace=lorem</code></p>
|
|
<ul>
|
|
<li>The namespace of the Istio service underlying this service. Corresponds to the destination_service_namespace metric label in Istio metrics.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. name=accusam</code></p>
|
|
<ul>
|
|
<li>Resource name for this Service. The format is: projects/[PROJECT_ID_OR_NUMBER]/services/[SERVICE_ID] </li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>telemetry resource-name=gubergren</code></p>
|
|
<ul>
|
|
<li>The full name of the resource that defines this service. Formatted as described in https://cloud.google.com/apis/design/resource_names.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><code>.. user-labels=key=sadipscing</code></p>
|
|
<ul>
|
|
<li>Labels which have been used to annotate the service. Label keys must start with a letter. Label keys and values may contain lowercase letters, numbers, underscores, and dashes. Label keys and values have a maximum length of 63 characters, and must be less than 128 bytes in size. Up to 64 label entries may be stored. For labels which do not have a semantic value, the empty string may be supplied for the label value.</li>
|
|
<li>the value will be associated with the given <code>key</code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h3 id="about-cursors">About Cursors</h3>
|
|
<p>The cursor position is key to comfortably set complex nested structures. The following rules apply:</p>
|
|
<ul>
|
|
<li>The cursor position is always set relative to the current one, unless the field name starts with the <code>.</code> character. Fields can be nested such as in <code>-r f.s.o</code> .</li>
|
|
<li>The cursor position is set relative to the top-level structure if it starts with <code>.</code>, e.g. <code>-r .s.s</code></li>
|
|
<li>You can also set nested fields without setting the cursor explicitly. For example, to set a value relative to the current cursor position, you would specify <code>-r struct.sub_struct=bar</code>.</li>
|
|
<li>You can move the cursor one level up by using <code>..</code>. Each additional <code>.</code> moves it up one additional level. E.g. <code>...</code> would go three levels up.</li>
|
|
</ul>
|
|
<h1 id="optional-output-flags">Optional Output Flags</h1>
|
|
<p>The method's return value a JSON encoded structure, which will be written to standard output by default.</p>
|
|
<ul>
|
|
<li><strong>-o out</strong><ul>
|
|
<li><em>out</em> specifies the <em>destination</em> to which to write the server's result to.
|
|
It will be a JSON-encoded structure.
|
|
The <em>destination</em> may be <code>-</code> to indicate standard output, or a filepath that is to contain the received bytes.
|
|
If unset, it defaults to standard output.</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-method-properties">Optional Method Properties</h1>
|
|
<p>You may set the following properties to further configure the call. Please note that <code>-p</code> is followed by one
|
|
or more key-value-pairs, and is called like this <code>-p k1=v1 k2=v2</code> even though the listing below repeats the
|
|
<code>-p</code> for completeness.</p>
|
|
<ul>
|
|
<li><strong>-p service-id=string</strong><ul>
|
|
<li>Optional. The Service id to use for this Service. If omitted, an id will be generated instead. Must match the pattern [a-z0-9-]+</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<h1 id="optional-general-properties">Optional General Properties</h1>
|
|
<p>The following properties can configure any call, and are not specific to this method.</p>
|
|
<ul>
|
|
<li>
|
|
<p><strong>-p $-xgafv=string</strong></p>
|
|
<ul>
|
|
<li>V1 error format.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p access-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth access token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p alt=string</strong></p>
|
|
<ul>
|
|
<li>Data format for response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p callback=string</strong></p>
|
|
<ul>
|
|
<li>JSONP</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p fields=string</strong></p>
|
|
<ul>
|
|
<li>Selector specifying which fields to include in a partial response.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p key=string</strong></p>
|
|
<ul>
|
|
<li>API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p oauth-token=string</strong></p>
|
|
<ul>
|
|
<li>OAuth 2.0 token for the current user.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p pretty-print=boolean</strong></p>
|
|
<ul>
|
|
<li>Returns response with indentations and line breaks.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p quota-user=string</strong></p>
|
|
<ul>
|
|
<li>Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-type=string</strong></p>
|
|
<ul>
|
|
<li>Legacy upload protocol for media (e.g. "media", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
<li>
|
|
<p><strong>-p upload-protocol=string</strong></p>
|
|
<ul>
|
|
<li>Upload protocol for media (e.g. "raw", "multipart").</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div><footer>
|
|
<div class="rst-footer-buttons" role="navigation" aria-label="Footer Navigation">
|
|
<a href="../projects_uptime-check-configs-patch/" class="btn btn-neutral float-left" title="Uptime Check Configs Patch"><span class="icon icon-circle-arrow-left"></span> Previous</a>
|
|
<a href="../services_delete/" class="btn btn-neutral float-right" title="Delete">Next <span class="icon icon-circle-arrow-right"></span></a>
|
|
</div>
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<!-- Copyright etc -->
|
|
<p>Copyright © 2015-2020, `Sebastian Thiel`</p>
|
|
</div>
|
|
|
|
Built with <a href="https://www.mkdocs.org/">MkDocs</a> using a <a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
|
|
<div class="rst-versions" role="note" aria-label="Versions">
|
|
<span class="rst-current-version" data-toggle="rst-current-version">
|
|
|
|
<span>
|
|
<a href="https://github.com/Byron/google-apis-rs/tree/main/gen/monitoring3-cli" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
|
|
</span>
|
|
|
|
|
|
<span><a href="../projects_uptime-check-configs-patch/" style="color: #fcfcfc">« Previous</a></span>
|
|
|
|
|
|
<span><a href="../services_delete/" style="color: #fcfcfc">Next »</a></span>
|
|
|
|
</span>
|
|
</div>
|
|
<script>var base_url = '..';</script>
|
|
<script src="../js/theme_extra.js" defer></script>
|
|
<script src="../js/theme.js" defer></script>
|
|
<script src="../search/main.js" defer></script>
|
|
<script defer>
|
|
window.onload = function () {
|
|
SphinxRtdTheme.Navigation.enable(true);
|
|
};
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|