1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getObsBucketObject
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getObsBucketObject

Explore with Pulumi AI

flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

Use this data source to get info of special FlexibleEngine obs object.

import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";

const object = flexibleengine.getObsBucketObject({
    bucket: "my-test-bucket",
    key: "new-key",
});
Copy
import pulumi
import pulumi_flexibleengine as flexibleengine

object = flexibleengine.get_obs_bucket_object(bucket="my-test-bucket",
    key="new-key")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := flexibleengine.LookupObsBucketObject(ctx, &flexibleengine.LookupObsBucketObjectArgs{
			Bucket: "my-test-bucket",
			Key:    "new-key",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;

return await Deployment.RunAsync(() => 
{
    var @object = Flexibleengine.GetObsBucketObject.Invoke(new()
    {
        Bucket = "my-test-bucket",
        Key = "new-key",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.FlexibleengineFunctions;
import com.pulumi.flexibleengine.inputs.GetObsBucketObjectArgs;
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 object = FlexibleengineFunctions.getObsBucketObject(GetObsBucketObjectArgs.builder()
            .bucket("my-test-bucket")
            .key("new-key")
            .build());

    }
}
Copy
variables:
  object:
    fn::invoke:
      function: flexibleengine:getObsBucketObject
      arguments:
        bucket: my-test-bucket
        key: new-key
Copy

Using getObsBucketObject

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 getObsBucketObject(args: GetObsBucketObjectArgs, opts?: InvokeOptions): Promise<GetObsBucketObjectResult>
function getObsBucketObjectOutput(args: GetObsBucketObjectOutputArgs, opts?: InvokeOptions): Output<GetObsBucketObjectResult>
Copy
def get_obs_bucket_object(bucket: Optional[str] = None,
                          id: Optional[str] = None,
                          key: Optional[str] = None,
                          region: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetObsBucketObjectResult
def get_obs_bucket_object_output(bucket: Optional[pulumi.Input[str]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          key: Optional[pulumi.Input[str]] = None,
                          region: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetObsBucketObjectResult]
Copy
func LookupObsBucketObject(ctx *Context, args *LookupObsBucketObjectArgs, opts ...InvokeOption) (*LookupObsBucketObjectResult, error)
func LookupObsBucketObjectOutput(ctx *Context, args *LookupObsBucketObjectOutputArgs, opts ...InvokeOption) LookupObsBucketObjectResultOutput
Copy

> Note: This function is named LookupObsBucketObject in the Go SDK.

public static class GetObsBucketObject 
{
    public static Task<GetObsBucketObjectResult> InvokeAsync(GetObsBucketObjectArgs args, InvokeOptions? opts = null)
    public static Output<GetObsBucketObjectResult> Invoke(GetObsBucketObjectInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetObsBucketObjectResult> getObsBucketObject(GetObsBucketObjectArgs args, InvokeOptions options)
public static Output<GetObsBucketObjectResult> getObsBucketObject(GetObsBucketObjectArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: flexibleengine:index/getObsBucketObject:getObsBucketObject
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Bucket This property is required. string
The name of the bucket to put the file in.
Key This property is required. string
The name of the object once it is in the bucket.
Id string
the key of the resource supplied above.
Region string
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.
Bucket This property is required. string
The name of the bucket to put the file in.
Key This property is required. string
The name of the object once it is in the bucket.
Id string
the key of the resource supplied above.
Region string
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.
bucket This property is required. String
The name of the bucket to put the file in.
key This property is required. String
The name of the object once it is in the bucket.
id String
the key of the resource supplied above.
region String
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.
bucket This property is required. string
The name of the bucket to put the file in.
key This property is required. string
The name of the object once it is in the bucket.
id string
the key of the resource supplied above.
region string
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.
bucket This property is required. str
The name of the bucket to put the file in.
key This property is required. str
The name of the object once it is in the bucket.
id str
the key of the resource supplied above.
region str
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.
bucket This property is required. String
The name of the bucket to put the file in.
key This property is required. String
The name of the object once it is in the bucket.
id String
the key of the resource supplied above.
region String
The region in which to obtain the OBS object. If omitted, the provider-level region will be used.

getObsBucketObject Result

The following output properties are available:

Body string
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
Bucket string
ContentType string
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
Etag string
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
Id string
the key of the resource supplied above.
Key string
Region string
Size double
the size of the object in bytes.
StorageClass string
specifies the storage class of the object.
VersionId string
a unique version ID value for the object, if bucket versioning is enabled.
Body string
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
Bucket string
ContentType string
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
Etag string
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
Id string
the key of the resource supplied above.
Key string
Region string
Size float64
the size of the object in bytes.
StorageClass string
specifies the storage class of the object.
VersionId string
a unique version ID value for the object, if bucket versioning is enabled.
body String
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
bucket String
contentType String
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
etag String
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
id String
the key of the resource supplied above.
key String
region String
size Double
the size of the object in bytes.
storageClass String
specifies the storage class of the object.
versionId String
a unique version ID value for the object, if bucket versioning is enabled.
body string
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
bucket string
contentType string
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
etag string
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
id string
the key of the resource supplied above.
key string
region string
size number
the size of the object in bytes.
storageClass string
specifies the storage class of the object.
versionId string
a unique version ID value for the object, if bucket versioning is enabled.
body str
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
bucket str
content_type str
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
etag str
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
id str
the key of the resource supplied above.
key str
region str
size float
the size of the object in bytes.
storage_class str
specifies the storage class of the object.
version_id str
a unique version ID value for the object, if bucket versioning is enabled.
body String
The content of an object which is available only for objects which have a human-readable Content-Type (text/* and application/json) and smaller than **64KB**. This is to prevent printing unsafe characters and potentially downloading large amount of data.
bucket String
contentType String
a standard MIME type describing the format of the object data, e.g. application/octet-stream. All Valid MIME Types are valid for this input.
etag String
the ETag generated for the object (an MD5 sum of the object content). When the object is encrypted on the server side, the ETag value is not the MD5 value of the object, but the unique identifier calculated through the server-side encryption.
id String
the key of the resource supplied above.
key String
region String
size Number
the size of the object in bytes.
storageClass String
specifies the storage class of the object.
versionId String
a unique version ID value for the object, if bucket versioning is enabled.

Package Details

Repository
flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
License
Notes
This Pulumi package is based on the flexibleengine Terraform Provider.
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud