UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

108 lines 4.65 kB
"use strict"; // *** 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.getCockpitSourceOutput = exports.getCockpitSource = 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", * }); * ``` */ /** @deprecated scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource */ function getCockpitSource(args, opts) { pulumi.log.warn("getCockpitSource is deprecated: scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getCockpitSource:getCockpitSource", { "id": args.id, "name": args.name, "origin": args.origin, "projectId": args.projectId, "region": args.region, "type": args.type, }, opts); } exports.getCockpitSource = getCockpitSource; /** * 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", * }); * ``` */ /** @deprecated scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource */ function getCockpitSourceOutput(args, opts) { pulumi.log.warn("getCockpitSource is deprecated: scaleway.index/getcockpitsource.getCockpitSource has been deprecated in favor of scaleway.observability/getsource.getSource"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getCockpitSource:getCockpitSource", { "id": args.id, "name": args.name, "origin": args.origin, "projectId": args.projectId, "region": args.region, "type": args.type, }, opts); } exports.getCockpitSourceOutput = getCockpitSourceOutput; //# sourceMappingURL=getCockpitSource.js.map