Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 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 GetMediaAsset(ctx *Context, args *GetMediaAssetArgs, opts ...InvokeOption) (*GetMediaAssetResult, error)
func GetMediaAssetOutput(ctx *Context, args *GetMediaAssetOutputArgs, opts ...InvokeOption) GetMediaAssetResultOutput> Note: This function is named GetMediaAsset 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:
- Media
Asset stringId  - Unique MediaAsset identifier
 
- Media
Asset stringId  - Unique MediaAsset identifier
 
- media
Asset StringId  - Unique MediaAsset identifier
 
- media
Asset stringId  - Unique MediaAsset identifier
 
- media_
asset_ strid  - Unique MediaAsset identifier
 
- media
Asset 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.
 - Compartment
Id 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"} - Display
Name 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.
 - Is
Lock boolOverride  - Locks
List<Get
Media Asset Lock>  - Locks associated with this resource.
 - Master
Media stringAsset Id  - The ID of the senior most asset from which this asset is derived.
 - Media
Asset stringId  - 
List<Get
Media Asset Media Asset Tag>  - List of tags for the MediaAsset.
 - Media
Workflow stringJob Id  - The ID of the MediaWorkflowJob used to produce this asset.
 - Metadatas
List<Get
Media 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.
 - Object
Etag string - eTag of the underlying object storage object.
 - Parent
Media stringAsset Id  - The ID of the parent asset from which this asset is derived.
 - Segment
Range stringEnd Index  - The end index of video segment files.
 - Segment
Range stringStart Index  - The start index for video segment files.
 - Source
Media stringWorkflow Id  - The ID of the MediaWorkflow used to produce this asset.
 - Source
Media 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"} - Time
Created string - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - Time
Updated 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.
 - Compartment
Id 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"} - Display
Name 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.
 - Is
Lock boolOverride  - Locks
[]Get
Media Asset Lock  - Locks associated with this resource.
 - Master
Media stringAsset Id  - The ID of the senior most asset from which this asset is derived.
 - Media
Asset stringId  - 
[]Get
Media Asset Media Asset Tag  - List of tags for the MediaAsset.
 - Media
Workflow stringJob Id  - The ID of the MediaWorkflowJob used to produce this asset.
 - Metadatas
[]Get
Media 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.
 - Object
Etag string - eTag of the underlying object storage object.
 - Parent
Media stringAsset Id  - The ID of the parent asset from which this asset is derived.
 - Segment
Range stringEnd Index  - The end index of video segment files.
 - Segment
Range stringStart Index  - The start index for video segment files.
 - Source
Media stringWorkflow Id  - The ID of the MediaWorkflow used to produce this asset.
 - Source
Media 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"} - Time
Created string - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - Time
Updated 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.
 - compartment
Id 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"} - display
Name 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.
 - is
Lock BooleanOverride  - locks
List<Get
Media Asset Lock>  - Locks associated with this resource.
 - master
Media StringAsset Id  - The ID of the senior most asset from which this asset is derived.
 - media
Asset StringId  - 
List<Get
Media Asset Media Asset Tag>  - List of tags for the MediaAsset.
 - media
Workflow StringJob Id  - The ID of the MediaWorkflowJob used to produce this asset.
 - metadatas
List<Get
Media 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.
 - object
Etag String - eTag of the underlying object storage object.
 - parent
Media StringAsset Id  - The ID of the parent asset from which this asset is derived.
 - segment
Range StringEnd Index  - The end index of video segment files.
 - segment
Range StringStart Index  - The start index for video segment files.
 - source
Media StringWorkflow Id  - The ID of the MediaWorkflow used to produce this asset.
 - source
Media 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"} - time
Created String - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - time
Updated 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.
 - compartment
Id 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"} - display
Name 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.
 - is
Lock booleanOverride  - locks
Get
Media Asset Lock[]  - Locks associated with this resource.
 - master
Media stringAsset Id  - The ID of the senior most asset from which this asset is derived.
 - media
Asset stringId  - 
Get
Media Asset Media Asset Tag[]  - List of tags for the MediaAsset.
 - media
Workflow stringJob Id  - The ID of the MediaWorkflowJob used to produce this asset.
 - metadatas
Get
Media 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.
 - object
Etag string - eTag of the underlying object storage object.
 - parent
Media stringAsset Id  - The ID of the parent asset from which this asset is derived.
 - segment
Range stringEnd Index  - The end index of video segment files.
 - segment
Range stringStart Index  - The start index for video segment files.
 - source
Media stringWorkflow Id  - The ID of the MediaWorkflow used to produce this asset.
 - source
Media 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"} - time
Created string - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - time
Updated 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[mediaservices.
Get Media 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[mediaservices.
Get Media 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[mediaservices.
Get Media 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.
 - compartment
Id 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"} - display
Name 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.
 - is
Lock BooleanOverride  - locks List<Property Map>
 - Locks associated with this resource.
 - master
Media StringAsset Id  - The ID of the senior most asset from which this asset is derived.
 - media
Asset StringId  - List<Property Map>
 - List of tags for the MediaAsset.
 - media
Workflow 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.
 - object
Etag String - eTag of the underlying object storage object.
 - parent
Media StringAsset Id  - The ID of the parent asset from which this asset is derived.
 - segment
Range StringEnd Index  - The end index of video segment files.
 - segment
Range StringStart Index  - The start index for video segment files.
 - source
Media StringWorkflow Id  - The ID of the MediaWorkflow used to produce this asset.
 - source
Media 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"} - time
Created String - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - time
Updated String - The time when the MediaAsset was updated. An RFC3339 formatted datetime string.
 - type String
 - The type of the media asset.
 
Supporting Types
GetMediaAssetLock   
- Compartment
Id 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.
 - Time
Created string - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - Type string
 - The type of the media asset.
 
- Compartment
Id 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.
 - Time
Created string - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - Type string
 - The type of the media asset.
 
- compartment
Id 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.
 - time
Created String - The time when the MediaAsset was created. An RFC3339 formatted datetime string.
 - type String
 - The type of the media asset.
 
- compartment
Id 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.
 - time
Created 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.
 
- compartment
Id 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.
 - time
Created 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.