Provides information about Linode Object Storage endpoints available to the user. For more information, see the Linode APIv4 docs.
Example Usage
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,
};
}
import pulumi
import pulumi_linode as linode
test = linode.get_object_storage_endpoints(filters=[{
"name": "endpoint_type",
"values": ["E3"],
}])
pulumi.export("high-performance-obj-endpoint", test.endpoints[0].s3_endpoint)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := linode.GetObjectStorageEndpoints(ctx, &linode.GetObjectStorageEndpointsArgs{
Filters: []linode.GetObjectStorageEndpointsFilter{
{
Name: "endpoint_type",
Values: []string{
"E3",
},
},
},
}, nil)
if err != nil {
return err
}
ctx.Export("high-performance-obj-endpoint", test.Endpoints[0].S3Endpoint)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var test = Linode.GetObjectStorageEndpoints.Invoke(new()
{
Filters = new[]
{
new Linode.Inputs.GetObjectStorageEndpointsFilterInputArgs
{
Name = "endpoint_type",
Values = new[]
{
"E3",
},
},
},
});
return new Dictionary<string, object?>
{
["high-performance-obj-endpoint"] = test.Apply(getObjectStorageEndpointsResult => getObjectStorageEndpointsResult.Endpoints[0]?.S3Endpoint),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetObjectStorageEndpointsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = LinodeFunctions.getObjectStorageEndpoints(GetObjectStorageEndpointsArgs.builder()
.filters(GetObjectStorageEndpointsFilterArgs.builder()
.name("endpoint_type")
.values("E3")
.build())
.build());
ctx.export("high-performance-obj-endpoint", test.endpoints()[0].s3Endpoint());
}
}
variables:
test:
fn::invoke:
function: linode:getObjectStorageEndpoints
arguments:
filters:
- name: endpoint_type
values:
- E3
outputs:
high-performance-obj-endpoint: ${test.endpoints[0].s3Endpoint}
Get a list of all available endpoints of Linode Object Storage services.
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";
export = async () => {
const test = await linode.getObjectStorageEndpoints({});
return {
"available-endpoints": test.endpoints,
};
}
import pulumi
import pulumi_linode as linode
test = linode.get_object_storage_endpoints()
pulumi.export("available-endpoints", test.endpoints)
package main
import (
"github.com/pulumi/pulumi-linode/sdk/v5/go/linode"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
test, err := linode.GetObjectStorageEndpoints(ctx, &linode.GetObjectStorageEndpointsArgs{}, nil)
if err != nil {
return err
}
ctx.Export("available-endpoints", test.Endpoints)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Linode = Pulumi.Linode;
return await Deployment.RunAsync(() =>
{
var test = Linode.GetObjectStorageEndpoints.Invoke();
return new Dictionary<string, object?>
{
["available-endpoints"] = test.Apply(getObjectStorageEndpointsResult => getObjectStorageEndpointsResult.Endpoints),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.linode.LinodeFunctions;
import com.pulumi.linode.inputs.GetObjectStorageEndpointsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = LinodeFunctions.getObjectStorageEndpoints(GetObjectStorageEndpointsArgs.builder()
.build());
ctx.export("available-endpoints", test.endpoints());
}
}
variables:
test:
fn::invoke:
function: linode:getObjectStorageEndpoints
arguments: {}
outputs:
available-endpoints: ${test.endpoints}
Filterable Fields
endpoint_typeregions3_endpoint
Using getObjectStorageEndpoints
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getObjectStorageEndpoints(args: GetObjectStorageEndpointsArgs, opts?: InvokeOptions): Promise<GetObjectStorageEndpointsResult>
function getObjectStorageEndpointsOutput(args: GetObjectStorageEndpointsOutputArgs, opts?: InvokeOptions): Output<GetObjectStorageEndpointsResult>def get_object_storage_endpoints(filters: Optional[Sequence[GetObjectStorageEndpointsFilter]] = None,
order: Optional[str] = None,
order_by: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetObjectStorageEndpointsResult
def get_object_storage_endpoints_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetObjectStorageEndpointsFilterArgs]]]] = None,
order: Optional[pulumi.Input[str]] = None,
order_by: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetObjectStorageEndpointsResult]func GetObjectStorageEndpoints(ctx *Context, args *GetObjectStorageEndpointsArgs, opts ...InvokeOption) (*GetObjectStorageEndpointsResult, error)
func GetObjectStorageEndpointsOutput(ctx *Context, args *GetObjectStorageEndpointsOutputArgs, opts ...InvokeOption) GetObjectStorageEndpointsResultOutput> Note: This function is named GetObjectStorageEndpoints in the Go SDK.
public static class GetObjectStorageEndpoints
{
public static Task<GetObjectStorageEndpointsResult> InvokeAsync(GetObjectStorageEndpointsArgs args, InvokeOptions? opts = null)
public static Output<GetObjectStorageEndpointsResult> Invoke(GetObjectStorageEndpointsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetObjectStorageEndpointsResult> getObjectStorageEndpoints(GetObjectStorageEndpointsArgs args, InvokeOptions options)
public static Output<GetObjectStorageEndpointsResult> getObjectStorageEndpoints(GetObjectStorageEndpointsArgs args, InvokeOptions options)
fn::invoke:
function: linode:index/getObjectStorageEndpoints:getObjectStorageEndpoints
arguments:
# arguments dictionaryThe following arguments are supported:
- Filters
List<Get
Object Storage Endpoints Filter> - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- Filters
[]Get
Object Storage Endpoints Filter - Order string
- The order in which results should be returned. (
asc,desc; defaultasc) - Order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
List<Get
Object Storage Endpoints Filter> - order String
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By String - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Get
Object Storage Endpoints Filter[] - order string
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By string - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters
Sequence[Get
Object Storage Endpoints Filter] - order str
- The order in which results should be returned. (
asc,desc; defaultasc) - order_
by str - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
- filters List<Property Map>
- order String
- The order in which results should be returned. (
asc,desc; defaultasc) - order
By String - The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
getObjectStorageEndpoints Result
The following output properties are available:
- endpoints List<Property Map>
- id String
- filters List<Property Map>
- order String
- order
By String
Supporting Types
GetObjectStorageEndpointsEndpoint
- Endpoint
Type string - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - Region string
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- S3Endpoint string
- Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
- Endpoint
Type string - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - Region string
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- S3Endpoint string
- Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
- endpoint
Type String - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - region String
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- s3Endpoint String
- Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
- endpoint
Type string - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - region string
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- s3Endpoint string
- Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
- endpoint_
type str - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - region str
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- s3_
endpoint str - Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
- endpoint
Type String - The type of
s3_endpointavailable to the activeuser. See Endpoint types for more information. - region String
- The Akamai cloud computing region, represented by its slug value. The list regions API is available to see all regions available.
- s3Endpoint String
- Your s3 endpoint URL, based on the
endpoint_typeandregion. Output as null if you haven't assigned an endpoint for your user in this region with the specific endpoint type.
GetObjectStorageEndpointsFilter
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values List<string>
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- Name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- Values []string
- A list of values for the filter to allow. These values should all be in string form.
- Match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
- name string
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values string[]
- A list of values for the filter to allow. These values should all be in string form.
- match
By string - The method to match the field by. (
exact,regex,substring; defaultexact)
- name str
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values Sequence[str]
- A list of values for the filter to allow. These values should all be in string form.
- match_
by str - The method to match the field by. (
exact,regex,substring; defaultexact)
- name String
- The name of the field to filter by. See the Filterable Fields section for a complete list of filterable fields.
- values List<String>
- A list of values for the filter to allow. These values should all be in string form.
- match
By String - The method to match the field by. (
exact,regex,substring; defaultexact)
Package Details
- Repository
- Linode pulumi/pulumi-linode
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
linodeTerraform Provider.
