1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. MediaServices
  5. getMediaAsset
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.MediaServices.getMediaAsset

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    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: oci_media_services_media_asset.test_media_asset.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_media_asset = oci.MediaServices.get_media_asset(media_asset_id=oci_media_services_media_asset["test_media_asset"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/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: oci_media_services_media_asset.Test_media_asset.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 = oci_media_services_media_asset.Test_media_asset.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(oci_media_services_media_asset.test_media_asset().id())
                .build());
    
        }
    }
    
    variables:
      testMediaAsset:
        fn::invoke:
          Function: oci:MediaServices:getMediaAsset
          Arguments:
            mediaAssetId: ${oci_media_services_media_asset.test_media_asset.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:MediaServices/getMediaAsset:getMediaAsset
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MediaAssetId string
    Unique MediaAsset identifier
    MediaAssetId string
    Unique MediaAsset identifier
    mediaAssetId String
    Unique MediaAsset identifier
    mediaAssetId string
    Unique MediaAsset identifier
    media_asset_id str
    Unique MediaAsset identifier
    mediaAssetId String
    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.
    DefinedTags Dictionary<string, object>
    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.
    FreeformTags Dictionary<string, object>
    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.
    IsLockOverride bool
    Locks List<GetMediaAssetLock>
    Locks associated with this resource.
    MasterMediaAssetId string
    The ID of the senior most asset from which this asset is derived.
    MediaAssetId string
    MediaAssetTags List<GetMediaAssetMediaAssetTag>
    List of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas List<GetMediaAssetMetadata>
    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.
    ParentMediaAssetId string
    The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index of video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    State string
    The current state of the MediaAsset.
    SystemTags Dictionary<string, object>
    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.
    DefinedTags map[string]interface{}
    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.
    FreeformTags map[string]interface{}
    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.
    IsLockOverride bool
    Locks []GetMediaAssetLock
    Locks associated with this resource.
    MasterMediaAssetId string
    The ID of the senior most asset from which this asset is derived.
    MediaAssetId string
    MediaAssetTags []GetMediaAssetMediaAssetTag
    List of tags for the MediaAsset.
    MediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    Metadatas []GetMediaAssetMetadata
    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.
    ParentMediaAssetId string
    The ID of the parent asset from which this asset is derived.
    SegmentRangeEndIndex string
    The end index of video segment files.
    SegmentRangeStartIndex string
    The start index for video segment files.
    SourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    SourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    State string
    The current state of the MediaAsset.
    SystemTags map[string]interface{}
    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.
    definedTags Map<String,Object>
    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.
    freeformTags Map<String,Object>
    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.
    isLockOverride Boolean
    locks List<GetMediaAssetLock>
    Locks associated with this resource.
    masterMediaAssetId String
    The ID of the senior most asset from which this asset is derived.
    mediaAssetId String
    mediaAssetTags List<GetMediaAssetMediaAssetTag>
    List of tags for the MediaAsset.
    mediaWorkflowJobId String
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas List<GetMediaAssetMetadata>
    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.
    parentMediaAssetId String
    The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index of video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.
    state String
    The current state of the MediaAsset.
    systemTags Map<String,Object>
    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.
    definedTags {[key: string]: any}
    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.
    freeformTags {[key: string]: any}
    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.
    isLockOverride boolean
    locks GetMediaAssetLock[]
    Locks associated with this resource.
    masterMediaAssetId string
    The ID of the senior most asset from which this asset is derived.
    mediaAssetId string
    mediaAssetTags GetMediaAssetMediaAssetTag[]
    List of tags for the MediaAsset.
    mediaWorkflowJobId string
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas GetMediaAssetMetadata[]
    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.
    parentMediaAssetId string
    The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex string
    The end index of video segment files.
    segmentRangeStartIndex string
    The start index for video segment files.
    sourceMediaWorkflowId string
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion string
    The version of the MediaWorkflow used to produce this asset.
    state string
    The current state of the MediaAsset.
    systemTags {[key: string]: any}
    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.
    defined_tags Mapping[str, Any]
    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.
    freeform_tags Mapping[str, Any]
    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_override bool
    locks Sequence[mediaservices.GetMediaAssetLock]
    Locks associated with this resource.
    master_media_asset_id str
    The ID of the senior most asset from which this asset is derived.
    media_asset_id str
    media_asset_tags Sequence[mediaservices.GetMediaAssetMediaAssetTag]
    List of tags for the MediaAsset.
    media_workflow_job_id str
    The ID of the MediaWorkflowJob used to produce this asset.
    metadatas Sequence[mediaservices.GetMediaAssetMetadata]
    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_asset_id str
    The ID of the parent asset from which this asset is derived.
    segment_range_end_index str
    The end index of video segment files.
    segment_range_start_index str
    The start index for video segment files.
    source_media_workflow_id str
    The ID of the MediaWorkflow used to produce this asset.
    source_media_workflow_version str
    The version of the MediaWorkflow used to produce this asset.
    state str
    The current state of the MediaAsset.
    system_tags Mapping[str, Any]
    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.
    definedTags Map<Any>
    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.
    freeformTags Map<Any>
    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.
    isLockOverride Boolean
    locks List<Property Map>
    Locks associated with this resource.
    masterMediaAssetId String
    The ID of the senior most asset from which this asset is derived.
    mediaAssetId String
    mediaAssetTags List<Property Map>
    List of tags for the MediaAsset.
    mediaWorkflowJobId String
    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.
    parentMediaAssetId String
    The ID of the parent asset from which this asset is derived.
    segmentRangeEndIndex String
    The end index of video segment files.
    segmentRangeStartIndex String
    The start index for video segment files.
    sourceMediaWorkflowId String
    The ID of the MediaWorkflow used to produce this asset.
    sourceMediaWorkflowVersion String
    The version of the MediaWorkflow used to produce this asset.
    state String
    The current state of the MediaAsset.
    systemTags Map<Any>
    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.
    RelatedResourceId 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.
    RelatedResourceId 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.
    relatedResourceId 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.
    relatedResourceId 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.
    related_resource_id 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.
    relatedResourceId 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

    Type string
    The type of the media asset.
    Value string
    Tag of the MediaAsset.
    Type string
    The type of the media asset.
    Value string
    Tag of the MediaAsset.
    type String
    The type of the media asset.
    value String
    Tag of the MediaAsset.
    type string
    The type of the media asset.
    value string
    Tag of the MediaAsset.
    type str
    The type of the media asset.
    value str
    Tag of the MediaAsset.
    type String
    The type of the media asset.
    value String
    Tag of the MediaAsset.

    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi