UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

124 lines 3.91 kB
"use strict"; // *** 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.getObjectStorageEndpointsOutput = exports.getObjectStorageEndpoints = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides information about Linode Object Storage endpoints available to the user. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-object-storage-endpoints). * * ## Example Usage * * Get an endpoint of E3 type (highest performance and capacity) of Linode Object Storage services: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const test = await linode.getObjectStorageEndpoints({ * filters: [{ * name: "endpoint_type", * values: ["E3"], * }], * }); * return { * "high-performance-obj-endpoint": test.endpoints?.[0]?.s3Endpoint, * }; * } * ``` * * Get a list of all available endpoints of Linode Object Storage services. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const test = await linode.getObjectStorageEndpoints({}); * return { * "available-endpoints": test.endpoints, * }; * } * ``` * * ## Filterable Fields * * * `endpointType` * * * `region` * * * `s3Endpoint` */ function getObjectStorageEndpoints(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("linode:index/getObjectStorageEndpoints:getObjectStorageEndpoints", { "endpoints": args.endpoints, "filters": args.filters, "order": args.order, "orderBy": args.orderBy, }, opts); } exports.getObjectStorageEndpoints = getObjectStorageEndpoints; /** * Provides information about Linode Object Storage endpoints available to the user. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-object-storage-endpoints). * * ## Example Usage * * Get an endpoint of E3 type (highest performance and capacity) of Linode Object Storage services: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const test = await linode.getObjectStorageEndpoints({ * filters: [{ * name: "endpoint_type", * values: ["E3"], * }], * }); * return { * "high-performance-obj-endpoint": test.endpoints?.[0]?.s3Endpoint, * }; * } * ``` * * Get a list of all available endpoints of Linode Object Storage services. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * export = async () => { * const test = await linode.getObjectStorageEndpoints({}); * return { * "available-endpoints": test.endpoints, * }; * } * ``` * * ## Filterable Fields * * * `endpointType` * * * `region` * * * `s3Endpoint` */ function getObjectStorageEndpointsOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("linode:index/getObjectStorageEndpoints:getObjectStorageEndpoints", { "endpoints": args.endpoints, "filters": args.filters, "order": args.order, "orderBy": args.orderBy, }, opts); } exports.getObjectStorageEndpointsOutput = getObjectStorageEndpointsOutput; //# sourceMappingURL=getObjectStorageEndpoints.js.map