@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
64 lines • 2.41 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRouterStatusOutput = exports.getRouterStatus = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Get a Cloud Router's status within GCE from its name and region. This data source exposes the
* routes learned by a Cloud Router via BGP peers.
*
* For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details)
* and
* [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_router = gcp.compute.getRouterStatus({
* name: "myrouter",
* });
* ```
*/
function getRouterStatus(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("gcp:compute/getRouterStatus:getRouterStatus", {
"name": args.name,
"project": args.project,
"region": args.region,
}, opts);
}
exports.getRouterStatus = getRouterStatus;
/**
* Get a Cloud Router's status within GCE from its name and region. This data source exposes the
* routes learned by a Cloud Router via BGP peers.
*
* For more information see [the official documentation](https://cloud.google.com/network-connectivity/docs/router/how-to/viewing-router-details)
* and
* [API](https://cloud.google.com/compute/docs/reference/rest/v1/routers/getRouterStatus).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const my_router = gcp.compute.getRouterStatus({
* name: "myrouter",
* });
* ```
*/
function getRouterStatusOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("gcp:compute/getRouterStatus:getRouterStatus", {
"name": args.name,
"project": args.project,
"region": args.region,
}, opts);
}
exports.getRouterStatusOutput = getRouterStatusOutput;
//# sourceMappingURL=getRouterStatus.js.map