oci.MediaServices.MediaAsset
Explore with Pulumi AI
This resource provides the Media Asset resource in Oracle Cloud Infrastructure Media Services service.
Creates a new MediaAsset.
Create MediaAsset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MediaAsset(name: string, args: MediaAssetArgs, opts?: CustomResourceOptions);@overload
def MediaAsset(resource_name: str,
               args: MediaAssetArgs,
               opts: Optional[ResourceOptions] = None)
@overload
def MediaAsset(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               type: Optional[str] = None,
               compartment_id: Optional[str] = None,
               metadatas: Optional[Sequence[MediaAssetMetadataArgs]] = None,
               namespace: Optional[str] = None,
               freeform_tags: Optional[Mapping[str, str]] = None,
               is_lock_override: Optional[bool] = None,
               locks: Optional[Sequence[MediaAssetLockArgs]] = None,
               master_media_asset_id: Optional[str] = None,
               media_asset_tags: Optional[Sequence[MediaAssetMediaAssetTagArgs]] = None,
               media_workflow_job_id: Optional[str] = None,
               bucket: Optional[str] = None,
               display_name: Optional[str] = None,
               object: Optional[str] = None,
               object_etag: Optional[str] = None,
               parent_media_asset_id: Optional[str] = None,
               segment_range_end_index: Optional[str] = None,
               segment_range_start_index: Optional[str] = None,
               source_media_workflow_id: Optional[str] = None,
               source_media_workflow_version: Optional[str] = None,
               defined_tags: Optional[Mapping[str, str]] = None)func NewMediaAsset(ctx *Context, name string, args MediaAssetArgs, opts ...ResourceOption) (*MediaAsset, error)public MediaAsset(string name, MediaAssetArgs args, CustomResourceOptions? opts = null)
public MediaAsset(String name, MediaAssetArgs args)
public MediaAsset(String name, MediaAssetArgs args, CustomResourceOptions options)
type: oci:MediaServices:MediaAsset
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MediaAssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MediaAssetArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MediaAssetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MediaAssetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MediaAssetArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var mediaAssetResource = new Oci.MediaServices.MediaAsset("mediaAssetResource", new()
{
    Type = "string",
    CompartmentId = "string",
    Metadatas = new[]
    {
        new Oci.MediaServices.Inputs.MediaAssetMetadataArgs
        {
            Metadata = "string",
        },
    },
    Namespace = "string",
    FreeformTags = 
    {
        { "string", "string" },
    },
    IsLockOverride = false,
    Locks = new[]
    {
        new Oci.MediaServices.Inputs.MediaAssetLockArgs
        {
            CompartmentId = "string",
            Type = "string",
            Message = "string",
            RelatedResourceId = "string",
            TimeCreated = "string",
        },
    },
    MasterMediaAssetId = "string",
    MediaAssetTags = new[]
    {
        new Oci.MediaServices.Inputs.MediaAssetMediaAssetTagArgs
        {
            Value = "string",
            Type = "string",
        },
    },
    MediaWorkflowJobId = "string",
    Bucket = "string",
    DisplayName = "string",
    Object = "string",
    ObjectEtag = "string",
    ParentMediaAssetId = "string",
    SegmentRangeEndIndex = "string",
    SegmentRangeStartIndex = "string",
    SourceMediaWorkflowId = "string",
    SourceMediaWorkflowVersion = "string",
    DefinedTags = 
    {
        { "string", "string" },
    },
});
example, err := mediaservices.NewMediaAsset(ctx, "mediaAssetResource", &mediaservices.MediaAssetArgs{
	Type:          pulumi.String("string"),
	CompartmentId: pulumi.String("string"),
	Metadatas: mediaservices.MediaAssetMetadataArray{
		&mediaservices.MediaAssetMetadataArgs{
			Metadata: pulumi.String("string"),
		},
	},
	Namespace: pulumi.String("string"),
	FreeformTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	IsLockOverride: pulumi.Bool(false),
	Locks: mediaservices.MediaAssetLockArray{
		&mediaservices.MediaAssetLockArgs{
			CompartmentId:     pulumi.String("string"),
			Type:              pulumi.String("string"),
			Message:           pulumi.String("string"),
			RelatedResourceId: pulumi.String("string"),
			TimeCreated:       pulumi.String("string"),
		},
	},
	MasterMediaAssetId: pulumi.String("string"),
	MediaAssetTags: mediaservices.MediaAssetMediaAssetTagArray{
		&mediaservices.MediaAssetMediaAssetTagArgs{
			Value: pulumi.String("string"),
			Type:  pulumi.String("string"),
		},
	},
	MediaWorkflowJobId:         pulumi.String("string"),
	Bucket:                     pulumi.String("string"),
	DisplayName:                pulumi.String("string"),
	Object:                     pulumi.String("string"),
	ObjectEtag:                 pulumi.String("string"),
	ParentMediaAssetId:         pulumi.String("string"),
	SegmentRangeEndIndex:       pulumi.String("string"),
	SegmentRangeStartIndex:     pulumi.String("string"),
	SourceMediaWorkflowId:      pulumi.String("string"),
	SourceMediaWorkflowVersion: pulumi.String("string"),
	DefinedTags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var mediaAssetResource = new MediaAsset("mediaAssetResource", MediaAssetArgs.builder()
    .type("string")
    .compartmentId("string")
    .metadatas(MediaAssetMetadataArgs.builder()
        .metadata("string")
        .build())
    .namespace("string")
    .freeformTags(Map.of("string", "string"))
    .isLockOverride(false)
    .locks(MediaAssetLockArgs.builder()
        .compartmentId("string")
        .type("string")
        .message("string")
        .relatedResourceId("string")
        .timeCreated("string")
        .build())
    .masterMediaAssetId("string")
    .mediaAssetTags(MediaAssetMediaAssetTagArgs.builder()
        .value("string")
        .type("string")
        .build())
    .mediaWorkflowJobId("string")
    .bucket("string")
    .displayName("string")
    .object("string")
    .objectEtag("string")
    .parentMediaAssetId("string")
    .segmentRangeEndIndex("string")
    .segmentRangeStartIndex("string")
    .sourceMediaWorkflowId("string")
    .sourceMediaWorkflowVersion("string")
    .definedTags(Map.of("string", "string"))
    .build());
media_asset_resource = oci.media_services.MediaAsset("mediaAssetResource",
    type="string",
    compartment_id="string",
    metadatas=[{
        "metadata": "string",
    }],
    namespace="string",
    freeform_tags={
        "string": "string",
    },
    is_lock_override=False,
    locks=[{
        "compartment_id": "string",
        "type": "string",
        "message": "string",
        "related_resource_id": "string",
        "time_created": "string",
    }],
    master_media_asset_id="string",
    media_asset_tags=[{
        "value": "string",
        "type": "string",
    }],
    media_workflow_job_id="string",
    bucket="string",
    display_name="string",
    object="string",
    object_etag="string",
    parent_media_asset_id="string",
    segment_range_end_index="string",
    segment_range_start_index="string",
    source_media_workflow_id="string",
    source_media_workflow_version="string",
    defined_tags={
        "string": "string",
    })
const mediaAssetResource = new oci.mediaservices.MediaAsset("mediaAssetResource", {
    type: "string",
    compartmentId: "string",
    metadatas: [{
        metadata: "string",
    }],
    namespace: "string",
    freeformTags: {
        string: "string",
    },
    isLockOverride: false,
    locks: [{
        compartmentId: "string",
        type: "string",
        message: "string",
        relatedResourceId: "string",
        timeCreated: "string",
    }],
    masterMediaAssetId: "string",
    mediaAssetTags: [{
        value: "string",
        type: "string",
    }],
    mediaWorkflowJobId: "string",
    bucket: "string",
    displayName: "string",
    object: "string",
    objectEtag: "string",
    parentMediaAssetId: "string",
    segmentRangeEndIndex: "string",
    segmentRangeStartIndex: "string",
    sourceMediaWorkflowId: "string",
    sourceMediaWorkflowVersion: "string",
    definedTags: {
        string: "string",
    },
});
type: oci:MediaServices:MediaAsset
properties:
    bucket: string
    compartmentId: string
    definedTags:
        string: string
    displayName: string
    freeformTags:
        string: string
    isLockOverride: false
    locks:
        - compartmentId: string
          message: string
          relatedResourceId: string
          timeCreated: string
          type: string
    masterMediaAssetId: string
    mediaAssetTags:
        - type: string
          value: string
    mediaWorkflowJobId: string
    metadatas:
        - metadata: string
    namespace: string
    object: string
    objectEtag: string
    parentMediaAssetId: string
    segmentRangeEndIndex: string
    segmentRangeStartIndex: string
    sourceMediaWorkflowId: string
    sourceMediaWorkflowVersion: string
    type: string
MediaAsset Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The MediaAsset resource accepts the following input properties:
- CompartmentId string
- (Updatable) Compartment Identifier.
- Type string
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- Bucket string
- The name of the object storage bucket where this asset is located.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsLock boolOverride 
- Locks
List<MediaAsset Lock> 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
List<MediaAsset Media Asset Tag> 
- (Updatable) list of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
List<MediaAsset Metadata> 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index for 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.
- CompartmentId string
- (Updatable) Compartment Identifier.
- Type string
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- Bucket string
- The name of the object storage bucket where this asset is located.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsLock boolOverride 
- Locks
[]MediaAsset Lock Args 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
[]MediaAsset Media Asset Tag Args 
- (Updatable) list of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
[]MediaAsset Metadata Args 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index for 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.
- compartmentId String
- (Updatable) Compartment Identifier.
- type String
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket String
- The name of the object storage bucket where this asset is located.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock BooleanOverride 
- locks
List<MediaAsset Lock> 
- Locks associated with this resource.
- masterMedia StringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
List<MediaAsset Media Asset Tag> 
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
List<MediaAsset Metadata> 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index for 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.
- compartmentId string
- (Updatable) Compartment Identifier.
- type string
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket string
- The name of the object storage bucket where this asset is located.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock booleanOverride 
- locks
MediaAsset Lock[] 
- Locks associated with this resource.
- masterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
MediaAsset Media Asset Tag[] 
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
MediaAsset Metadata[] 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange stringEnd Index 
- The end index for 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.
- compartment_id str
- (Updatable) Compartment Identifier.
- type str
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket str
- The name of the object storage bucket where this asset is located.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- is_lock_ booloverride 
- locks
Sequence[MediaAsset Lock Args] 
- Locks associated with this resource.
- master_media_ strasset_ id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
Sequence[MediaAsset Media Asset Tag Args] 
- (Updatable) list of tags for the MediaAsset.
- media_workflow_ strjob_ id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
Sequence[MediaAsset Metadata Args] 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segment_range_ strend_ index 
- The end index for 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.
- compartmentId String
- (Updatable) Compartment Identifier.
- type String
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket String
- The name of the object storage bucket where this asset is located.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock BooleanOverride 
- locks List<Property Map>
- Locks associated with this resource.
- masterMedia StringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- List<Property Map>
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas List<Property Map>
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index for 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.
Outputs
All input properties are implicitly available as output properties. Additionally, the MediaAsset resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
- id string
- The provider-assigned unique ID for this managed resource.
- 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.
- id str
- The provider-assigned unique ID for this managed resource.
- 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.
- id String
- The provider-assigned unique ID for this managed resource.
- 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.
Look up Existing MediaAsset Resource
Get an existing MediaAsset resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MediaAssetState, opts?: CustomResourceOptions): MediaAsset@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        bucket: Optional[str] = None,
        compartment_id: Optional[str] = None,
        defined_tags: Optional[Mapping[str, str]] = None,
        display_name: Optional[str] = None,
        freeform_tags: Optional[Mapping[str, str]] = None,
        is_lock_override: Optional[bool] = None,
        locks: Optional[Sequence[MediaAssetLockArgs]] = None,
        master_media_asset_id: Optional[str] = None,
        media_asset_tags: Optional[Sequence[MediaAssetMediaAssetTagArgs]] = None,
        media_workflow_job_id: Optional[str] = None,
        metadatas: Optional[Sequence[MediaAssetMetadataArgs]] = None,
        namespace: Optional[str] = None,
        object: Optional[str] = None,
        object_etag: Optional[str] = None,
        parent_media_asset_id: Optional[str] = None,
        segment_range_end_index: Optional[str] = None,
        segment_range_start_index: Optional[str] = None,
        source_media_workflow_id: Optional[str] = None,
        source_media_workflow_version: Optional[str] = None,
        state: Optional[str] = None,
        system_tags: Optional[Mapping[str, str]] = None,
        time_created: Optional[str] = None,
        time_updated: Optional[str] = None,
        type: Optional[str] = None) -> MediaAssetfunc GetMediaAsset(ctx *Context, name string, id IDInput, state *MediaAssetState, opts ...ResourceOption) (*MediaAsset, error)public static MediaAsset Get(string name, Input<string> id, MediaAssetState? state, CustomResourceOptions? opts = null)public static MediaAsset get(String name, Output<String> id, MediaAssetState state, CustomResourceOptions options)resources:  _:    type: oci:MediaServices:MediaAsset    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Bucket string
- The name of the object storage bucket where this asset is located.
- CompartmentId string
- (Updatable) Compartment Identifier.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsLock boolOverride 
- Locks
List<MediaAsset Lock> 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
List<MediaAsset Media Asset Tag> 
- (Updatable) list of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
List<MediaAsset Metadata> 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- Bucket string
- The name of the object storage bucket where this asset is located.
- CompartmentId string
- (Updatable) Compartment Identifier.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DisplayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- IsLock boolOverride 
- Locks
[]MediaAsset Lock Args 
- Locks associated with this resource.
- MasterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
[]MediaAsset Media Asset Tag Args 
- (Updatable) list of tags for the MediaAsset.
- MediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- Metadatas
[]MediaAsset Metadata Args 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- SegmentRange stringEnd Index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket String
- The name of the object storage bucket where this asset is located.
- compartmentId String
- (Updatable) Compartment Identifier.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock BooleanOverride 
- locks
List<MediaAsset Lock> 
- Locks associated with this resource.
- masterMedia StringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
List<MediaAsset Media Asset Tag> 
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
List<MediaAsset Metadata> 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket string
- The name of the object storage bucket where this asset is located.
- compartmentId string
- (Updatable) Compartment Identifier.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName string
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock booleanOverride 
- locks
MediaAsset Lock[] 
- Locks associated with this resource.
- masterMedia stringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
MediaAsset Media Asset Tag[] 
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow stringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
MediaAsset Metadata[] 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange stringEnd Index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket str
- The name of the object storage bucket where this asset is located.
- compartment_id str
- (Updatable) Compartment Identifier.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- display_name str
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- is_lock_ booloverride 
- locks
Sequence[MediaAsset Lock Args] 
- Locks associated with this resource.
- master_media_ strasset_ id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- 
Sequence[MediaAsset Media Asset Tag Args] 
- (Updatable) list of tags for the MediaAsset.
- media_workflow_ strjob_ id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas
Sequence[MediaAsset Metadata Args] 
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segment_range_ strend_ index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
- bucket String
- The name of the object storage bucket where this asset is located.
- compartmentId String
- (Updatable) Compartment Identifier.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- displayName String
- (Updatable) Display name for the Media Asset. Does not have to be unique. Avoid entering confidential information.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
- isLock BooleanOverride 
- locks List<Property Map>
- Locks associated with this resource.
- masterMedia StringAsset Id 
- (Updatable) The ID of the senior most asset from which this asset is derived.
- List<Property Map>
- (Updatable) list of tags for the MediaAsset.
- mediaWorkflow StringJob Id 
- The ID of the MediaWorkflowJob used to produce this asset.
- metadatas List<Property Map>
- (Updatable) List of Metadata.
- 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 
- (Updatable) The ID of the parent asset from which this asset is derived.
- segmentRange StringEnd Index 
- The end index for 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
- (Updatable) The type of the media asset. - ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values 
Supporting Types
MediaAssetLock, MediaAssetLockArgs      
- CompartmentId string
- (Updatable) The compartment ID of the lock.
- Type string
- Type 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
- When the lock was created.
- CompartmentId string
- (Updatable) The compartment ID of the lock.
- Type string
- Type 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
- When the lock was created.
- compartmentId String
- (Updatable) The compartment ID of the lock.
- type String
- Type 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
- When the lock was created.
- compartmentId string
- (Updatable) The compartment ID of the lock.
- type string
- Type 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
- When the lock was created.
- compartment_id str
- (Updatable) The compartment ID of the lock.
- type str
- Type 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
- When the lock was created.
- compartmentId String
- (Updatable) The compartment ID of the lock.
- type String
- Type 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
- When the lock was created.
MediaAssetMediaAssetTag, MediaAssetMediaAssetTagArgs          
MediaAssetMetadata, MediaAssetMetadataArgs      
- Metadata string
- (Updatable) JSON string containing the technial metadata for the media asset.
- Metadata string
- (Updatable) JSON string containing the technial metadata for the media asset.
- metadata String
- (Updatable) JSON string containing the technial metadata for the media asset.
- metadata string
- (Updatable) JSON string containing the technial metadata for the media asset.
- metadata str
- (Updatable) JSON string containing the technial metadata for the media asset.
- metadata String
- (Updatable) JSON string containing the technial metadata for the media asset.
Import
MediaAssets can be imported using the id, e.g.
$ pulumi import oci:MediaServices/mediaAsset:MediaAsset test_media_asset "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.