Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.MediaServices.getMediaAsset
Explore with Pulumi AI
This data source provides details about a specific Media Asset resource in Oracle Cloud Infrastructure Media Services service.
Gets a MediaAsset by identifier.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testMediaAsset = oci.MediaServices.getMediaAsset({
    mediaAssetId: testMediaAssetOciMediaServicesMediaAsset.id,
});
import pulumi
import pulumi_oci as oci
test_media_asset = oci.MediaServices.get_media_asset(media_asset_id=test_media_asset_oci_media_services_media_asset["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/mediaservices"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mediaservices.GetMediaAsset(ctx, &mediaservices.GetMediaAssetArgs{
			MediaAssetId: testMediaAssetOciMediaServicesMediaAsset.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testMediaAsset = Oci.MediaServices.GetMediaAsset.Invoke(new()
    {
        MediaAssetId = testMediaAssetOciMediaServicesMediaAsset.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.MediaServices.MediaServicesFunctions;
import com.pulumi.oci.MediaServices.inputs.GetMediaAssetArgs;
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 testMediaAsset = MediaServicesFunctions.getMediaAsset(GetMediaAssetArgs.builder()
            .mediaAssetId(testMediaAssetOciMediaServicesMediaAsset.id())
            .build());
    }
}
variables:
  testMediaAsset:
    fn::invoke:
      function: oci:MediaServices:getMediaAsset
      arguments:
        mediaAssetId: ${testMediaAssetOciMediaServicesMediaAsset.id}
Using getMediaAsset
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 getMediaAsset(args: GetMediaAssetArgs, opts?: InvokeOptions): Promise<GetMediaAssetResult>
function getMediaAssetOutput(args: GetMediaAssetOutputArgs, opts?: InvokeOptions): Output<GetMediaAssetResult>def get_media_asset(media_asset_id: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetMediaAssetResult
def get_media_asset_output(media_asset_id: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetMediaAssetResult]func LookupMediaAsset(ctx *Context, args *LookupMediaAssetArgs, opts ...InvokeOption) (*LookupMediaAssetResult, error)
func LookupMediaAssetOutput(ctx *Context, args *LookupMediaAssetOutputArgs, opts ...InvokeOption) LookupMediaAssetResultOutput> Note: This function is named LookupMediaAsset in the Go SDK.
public static class GetMediaAsset 
{
    public static Task<GetMediaAssetResult> InvokeAsync(GetMediaAssetArgs args, InvokeOptions? opts = null)
    public static Output<GetMediaAssetResult> Invoke(GetMediaAssetInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMediaAssetResult> getMediaAsset(GetMediaAssetArgs args, InvokeOptions options)
public static Output<GetMediaAssetResult> getMediaAsset(GetMediaAssetArgs args, InvokeOptions options)
fn::invoke:
  function: oci:MediaServices/getMediaAsset:getMediaAsset
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MediaAsset stringId 
- Unique MediaAsset identifier
- MediaAsset stringId 
- Unique MediaAsset identifier
- mediaAsset StringId 
- Unique MediaAsset identifier
- mediaAsset stringId 
- Unique MediaAsset identifier
- media_asset_ strid 
- Unique MediaAsset identifier
- mediaAsset StringId 
- Unique MediaAsset identifier
getMediaAsset Result
The following output properties are available:
- Bucket string
- The name of the object storage bucket where this represented asset is located.
- CompartmentId string
- The compartment ID of the lock.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- IsLock boolOverride 
- Locks
List<GetMedia Asset Lock> 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- The ID of the senior most asset from which this asset is derived.
- MediaAsset stringId 
- 
List<GetMedia Asset Media Asset Tag> 
- List of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
List<GetMedia Asset Metadata> 
- JSON string containing the technial metadata for the media asset.
- Namespace string
- The object storage namespace where this asset is located.
- Object string
- The object storage object name that identifies this asset.
- ObjectEtag string
- eTag of the underlying object storage object.
- ParentMedia stringAsset Id 
- The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index of video segment files.
- SegmentRange stringStart Index 
- The start index for video segment files.
- SourceMedia stringWorkflow Id 
- The ID of the MediaWorkflow used to produce this asset.
- SourceMedia stringWorkflow Version 
- The version of the MediaWorkflow used to produce this asset.
- State string
- The current state of the MediaAsset.
- Dictionary<string, string>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- Type string
- The type of the media asset.
- Bucket string
- The name of the object storage bucket where this represented asset is located.
- CompartmentId string
- The compartment ID of the lock.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- Id string
- Unique identifier that is immutable on creation.
- IsLock boolOverride 
- Locks
[]GetMedia Asset Lock 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- The ID of the senior most asset from which this asset is derived.
- MediaAsset stringId 
- 
[]GetMedia Asset Media Asset Tag 
- List of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
[]GetMedia Asset Metadata 
- JSON string containing the technial metadata for the media asset.
- Namespace string
- The object storage namespace where this asset is located.
- Object string
- The object storage object name that identifies this asset.
- ObjectEtag string
- eTag of the underlying object storage object.
- ParentMedia stringAsset Id 
- The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index of video segment files.
- SegmentRange stringStart Index 
- The start index for video segment files.
- SourceMedia stringWorkflow Id 
- The ID of the MediaWorkflow used to produce this asset.
- SourceMedia stringWorkflow Version 
- The version of the MediaWorkflow used to produce this asset.
- State string
- The current state of the MediaAsset.
- map[string]string
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- TimeUpdated string
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- Type string
- The type of the media asset.
- bucket String
- The name of the object storage bucket where this represented asset is located.
- compartmentId String
- The compartment ID of the lock.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- isLock BooleanOverride 
- locks
List<GetMedia Asset Lock> 
- Locks associated with this resource.
- masterMedia StringAsset Id 
- The ID of the senior most asset from which this asset is derived.
- mediaAsset StringId 
- 
List<GetMedia Asset Media Asset Tag> 
- List of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
List<GetMedia Asset Metadata> 
- JSON string containing the technial metadata for the media asset.
- namespace String
- The object storage namespace where this asset is located.
- object String
- The object storage object name that identifies this asset.
- objectEtag String
- eTag of the underlying object storage object.
- parentMedia StringAsset Id 
- The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index of video segment files.
- segmentRange StringStart Index 
- The start index for video segment files.
- sourceMedia StringWorkflow Id 
- The ID of the MediaWorkflow used to produce this asset.
- sourceMedia StringWorkflow Version 
- The version of the MediaWorkflow used to produce this asset.
- state String
- The current state of the MediaAsset.
- Map<String,String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- type String
- The type of the media asset.
- bucket string
- The name of the object storage bucket where this represented asset is located.
- compartmentId string
- The compartment ID of the lock.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id string
- Unique identifier that is immutable on creation.
- isLock booleanOverride 
- locks
GetMedia Asset Lock[] 
- Locks associated with this resource.
- masterMedia stringAsset Id 
- The ID of the senior most asset from which this asset is derived.
- mediaAsset stringId 
- 
GetMedia Asset Media Asset Tag[] 
- List of tags for the MediaAsset.
- mediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
GetMedia Asset Metadata[] 
- JSON string containing the technial metadata for the media asset.
- namespace string
- The object storage namespace where this asset is located.
- object string
- The object storage object name that identifies this asset.
- objectEtag string
- eTag of the underlying object storage object.
- parentMedia stringAsset Id 
- The ID of the parent asset from which this asset is derived.
- segmentRange stringEnd Index 
- The end index of video segment files.
- segmentRange stringStart Index 
- The start index for video segment files.
- sourceMedia stringWorkflow Id 
- The ID of the MediaWorkflow used to produce this asset.
- sourceMedia stringWorkflow Version 
- The version of the MediaWorkflow used to produce this asset.
- state string
- The current state of the MediaAsset.
- {[key: string]: string}
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- timeUpdated string
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- type string
- The type of the media asset.
- bucket str
- The name of the object storage bucket where this represented asset is located.
- compartment_id str
- The compartment ID of the lock.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id str
- Unique identifier that is immutable on creation.
- is_lock_ booloverride 
- locks
Sequence[GetMedia Asset Lock] 
- Locks associated with this resource.
- master_media_ strasset_ id 
- The ID of the senior most asset from which this asset is derived.
- media_asset_ strid 
- 
Sequence[GetMedia Asset Media Asset Tag] 
- List of tags for the MediaAsset.
- media_workflow_ strjob_ id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
Sequence[GetMedia Asset Metadata] 
- JSON string containing the technial metadata for the media asset.
- namespace str
- The object storage namespace where this asset is located.
- object str
- The object storage object name that identifies this asset.
- object_etag str
- eTag of the underlying object storage object.
- parent_media_ strasset_ id 
- The ID of the parent asset from which this asset is derived.
- segment_range_ strend_ index 
- The end index of video segment files.
- segment_range_ strstart_ index 
- The start index for video segment files.
- source_media_ strworkflow_ id 
- The ID of the MediaWorkflow used to produce this asset.
- source_media_ strworkflow_ version 
- The version of the MediaWorkflow used to produce this asset.
- state str
- The current state of the MediaAsset.
- Mapping[str, str]
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- time_updated str
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- type str
- The type of the media asset.
- bucket String
- The name of the object storage bucket where this represented asset is located.
- compartmentId String
- The compartment ID of the lock.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- id String
- Unique identifier that is immutable on creation.
- isLock BooleanOverride 
- locks List<Property Map>
- Locks associated with this resource.
- masterMedia StringAsset Id 
- The ID of the senior most asset from which this asset is derived.
- mediaAsset StringId 
- List<Property Map>
- List of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas List<Property Map>
- JSON string containing the technial metadata for the media asset.
- namespace String
- The object storage namespace where this asset is located.
- object String
- The object storage object name that identifies this asset.
- objectEtag String
- eTag of the underlying object storage object.
- parentMedia StringAsset Id 
- The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index of video segment files.
- segmentRange StringStart Index 
- The start index for video segment files.
- sourceMedia StringWorkflow Id 
- The ID of the MediaWorkflow used to produce this asset.
- sourceMedia StringWorkflow Version 
- The version of the MediaWorkflow used to produce this asset.
- state String
- The current state of the MediaAsset.
- Map<String>
- Usage of system tag keys. These predefined keys are scoped to namespaces. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- timeUpdated String
- The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
- type String
- The type of the media asset.
Supporting Types
GetMediaAssetLock   
- CompartmentId string
- The compartment ID of the lock.
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- TimeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- Type string
- The type of the media asset.
- CompartmentId string
- The compartment ID of the lock.
- Message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- TimeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- Type string
- The type of the media asset.
- compartmentId String
- The compartment ID of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- timeCreated String
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- type String
- The type of the media asset.
- compartmentId string
- The compartment ID of the lock.
- message string
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- string
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- timeCreated string
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- type string
- The type of the media asset.
- compartment_id str
- The compartment ID of the lock.
- message str
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- str
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- time_created str
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- type str
- The type of the media asset.
- compartmentId String
- The compartment ID of the lock.
- message String
- A message added by the creator of the lock. This is typically used to give an indication of why the resource is locked.
- String
- The ID of the resource that is locking this resource. Indicates that deleting this resource will remove the lock.
- timeCreated String
- The time when the MediaAsset was created. An RFC3339 formatted datetime string.
- type String
- The type of the media asset.
GetMediaAssetMediaAssetTag     
GetMediaAssetMetadata   
- Metadata string
- JSON string containing the technial metadata for the media asset.
- Metadata string
- JSON string containing the technial metadata for the media asset.
- metadata String
- JSON string containing the technial metadata for the media asset.
- metadata string
- JSON string containing the technial metadata for the media asset.
- metadata str
- JSON string containing the technial metadata for the media asset.
- metadata String
- JSON string containing the technial metadata for the media asset.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.