@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
104 lines • 3.93 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSourceOutput = exports.getSource = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* The `scaleway.observability.Source` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
*
* Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
*
* ## Example Usage
*
* ### Retrieve a specific data source by ID
*
* The following example retrieves a Cockpit data source by its unique ID.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const example = scaleway.observability.getSource({
* id: "fr-par/11111111-1111-1111-1111-111111111111",
* });
* ```
*
* ### Retrieve a data source by filters
*
* You can also retrieve a data source by specifying filtering criteria such as `name`, `type`, and `origin`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const filtered = scaleway.observability.getSource({
* projectId: "11111111-1111-1111-1111-111111111111",
* region: "fr-par",
* name: "my-data-source",
* });
* ```
*/
function getSource(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:observability/getSource:getSource", {
"id": args.id,
"name": args.name,
"origin": args.origin,
"projectId": args.projectId,
"region": args.region,
"type": args.type,
}, opts);
}
exports.getSource = getSource;
/**
* The `scaleway.observability.Source` data source allows you to retrieve information about a specific [data source](https://www.scaleway.com/en/docs/observability/cockpit/concepts/#data-sources) in Scaleway's Cockpit.
*
* Refer to Cockpit's [product documentation](https://www.scaleway.com/en/docs/observability/cockpit/concepts/) and [API documentation](https://www.scaleway.com/en/developers/api/cockpit/regional-api) for more information.
*
* ## Example Usage
*
* ### Retrieve a specific data source by ID
*
* The following example retrieves a Cockpit data source by its unique ID.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const example = scaleway.observability.getSource({
* id: "fr-par/11111111-1111-1111-1111-111111111111",
* });
* ```
*
* ### Retrieve a data source by filters
*
* You can also retrieve a data source by specifying filtering criteria such as `name`, `type`, and `origin`.
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumiverse/scaleway";
*
* const filtered = scaleway.observability.getSource({
* projectId: "11111111-1111-1111-1111-111111111111",
* region: "fr-par",
* name: "my-data-source",
* });
* ```
*/
function getSourceOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:observability/getSource:getSource", {
"id": args.id,
"name": args.name,
"origin": args.origin,
"projectId": args.projectId,
"region": args.region,
"type": args.type,
}, opts);
}
exports.getSourceOutput = getSourceOutput;
//# sourceMappingURL=getSource.js.map