UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

107 lines 4.68 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! *** var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true, get: function() { return m[k]; } }; } Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; })); var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { Object.defineProperty(o, "default", { enumerable: true, value: v }); }) : function(o, v) { o["default"] = v; }); var __importStar = (this && this.__importStar) || function (mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); __setModuleDefault(result, mod); return result; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.getScimTokenOutput = exports.getScimToken = void 0; const pulumi = __importStar(require("@pulumi/pulumi")); const utilities = __importStar(require("../utilities")); /** * Get information about a SCIM token. * * SCIM (System for Cross-domain Identity Management) tokens are used to authenticate API requests to SCIM endpoints for user provisioning and management. * * This data source allows you to retrieve information about an existing SCIM token, including its creation and expiration dates. Note that the bearer token is only available at creation time and cannot be retrieved through this data source. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * //## Get information about a SCIM token * // First, enable SCIM for your organization * const mainScim = new scaleway.iam.Scim("main", {organizationId: "11111111-1111-1111-1111-111111111111"}); * // Create a SCIM token (or use an existing one) * const mainScimToken = new scaleway.iam.ScimToken("main", { * scimId: mainScim.id, * organizationId: "11111111-1111-1111-1111-111111111111", * }); * // Get information about the SCIM token * const main = scaleway.iam.getScimTokenOutput({ * scimId: mainScim.id, * tokenId: mainScimToken.id, * organizationId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getScimToken(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:iam/getScimToken:getScimToken", { "organizationId": args.organizationId, "scimId": args.scimId, "tokenId": args.tokenId, }, opts); } exports.getScimToken = getScimToken; /** * Get information about a SCIM token. * * SCIM (System for Cross-domain Identity Management) tokens are used to authenticate API requests to SCIM endpoints for user provisioning and management. * * This data source allows you to retrieve information about an existing SCIM token, including its creation and expiration dates. Note that the bearer token is only available at creation time and cannot be retrieved through this data source. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * //## Get information about a SCIM token * // First, enable SCIM for your organization * const mainScim = new scaleway.iam.Scim("main", {organizationId: "11111111-1111-1111-1111-111111111111"}); * // Create a SCIM token (or use an existing one) * const mainScimToken = new scaleway.iam.ScimToken("main", { * scimId: mainScim.id, * organizationId: "11111111-1111-1111-1111-111111111111", * }); * // Get information about the SCIM token * const main = scaleway.iam.getScimTokenOutput({ * scimId: mainScim.id, * tokenId: mainScimToken.id, * organizationId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ function getScimTokenOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:iam/getScimToken:getScimToken", { "organizationId": args.organizationId, "scimId": args.scimId, "tokenId": args.tokenId, }, opts); } exports.getScimTokenOutput = getScimTokenOutput; //# sourceMappingURL=getScimToken.js.map