Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.FleetAppsManagement.getPatch
Explore with Pulumi AI
This data source provides details about a specific Patch resource in Oracle Cloud Infrastructure Fleet Apps Management service.
Gets a Patch by identifier
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testPatch = oci.FleetAppsManagement.getPatch({
    patchId: testPatchOciFleetAppsManagementPatch.id,
});
import pulumi
import pulumi_oci as oci
test_patch = oci.FleetAppsManagement.get_patch(patch_id=test_patch_oci_fleet_apps_management_patch["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/fleetappsmanagement"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fleetappsmanagement.GetPatch(ctx, &fleetappsmanagement.GetPatchArgs{
			PatchId: testPatchOciFleetAppsManagementPatch.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 testPatch = Oci.FleetAppsManagement.GetPatch.Invoke(new()
    {
        PatchId = testPatchOciFleetAppsManagementPatch.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetPatchArgs;
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 testPatch = FleetAppsManagementFunctions.getPatch(GetPatchArgs.builder()
            .patchId(testPatchOciFleetAppsManagementPatch.id())
            .build());
    }
}
variables:
  testPatch:
    fn::invoke:
      function: oci:FleetAppsManagement:getPatch
      arguments:
        patchId: ${testPatchOciFleetAppsManagementPatch.id}
Using getPatch
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 getPatch(args: GetPatchArgs, opts?: InvokeOptions): Promise<GetPatchResult>
function getPatchOutput(args: GetPatchOutputArgs, opts?: InvokeOptions): Output<GetPatchResult>def get_patch(patch_id: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetPatchResult
def get_patch_output(patch_id: Optional[pulumi.Input[str]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetPatchResult]func GetPatch(ctx *Context, args *GetPatchArgs, opts ...InvokeOption) (*GetPatchResult, error)
func GetPatchOutput(ctx *Context, args *GetPatchOutputArgs, opts ...InvokeOption) GetPatchResultOutput> Note: This function is named GetPatch in the Go SDK.
public static class GetPatch 
{
    public static Task<GetPatchResult> InvokeAsync(GetPatchArgs args, InvokeOptions? opts = null)
    public static Output<GetPatchResult> Invoke(GetPatchInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPatchResult> getPatch(GetPatchArgs args, InvokeOptions options)
public static Output<GetPatchResult> getPatch(GetPatchArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FleetAppsManagement/getPatch:getPatch
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PatchId string
- unique Patch identifier
- PatchId string
- unique Patch identifier
- patchId String
- unique Patch identifier
- patchId string
- unique Patch identifier
- patch_id str
- unique Patch identifier
- patchId String
- unique Patch identifier
getPatch Result
The following output properties are available:
- ArtifactDetails List<GetPatch Artifact Detail> 
- Patch artifact description and content details.
- CompartmentId string
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DependentPatches List<GetPatch Dependent Patch> 
- Dependent Patches for this patch.
- Description string
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Name string
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- PatchId string
- PatchTypes List<GetPatch Patch Type> 
- Patch Type
- Products
List<GetPatch Product> 
- Product
- ResourceRegion string
- Associated region
- Severity string
- Patch Severity.
- State string
- The current state of the Patch.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeReleased string
- Date when the patch was released.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- ArtifactDetails []GetPatch Artifact Detail 
- Patch artifact description and content details.
- CompartmentId string
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- DependentPatches []GetPatch Dependent Patch 
- Dependent Patches for this patch.
- Description string
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- LifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Name string
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- PatchId string
- PatchTypes []GetPatch Patch Type 
- Patch Type
- Products
[]GetPatch Product 
- Product
- ResourceRegion string
- Associated region
- Severity string
- Patch Severity.
- State string
- The current state of the Patch.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- TimeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- TimeReleased string
- Date when the patch was released.
- TimeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- Type string
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- artifactDetails List<GetPatch Artifact Detail> 
- Patch artifact description and content details.
- compartmentId String
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- dependentPatches List<GetPatch Dependent Patch> 
- Dependent Patches for this patch.
- description String
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- name String
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- patchId String
- patchTypes List<GetPatch Patch Type> 
- Patch Type
- products
List<GetPatch Product> 
- Product
- resourceRegion String
- Associated region
- severity String
- Patch Severity.
- state String
- The current state of the Patch.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeReleased String
- Date when the patch was released.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- artifactDetails GetPatch Artifact Detail[] 
- Patch artifact description and content details.
- compartmentId string
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- dependentPatches GetPatch Dependent Patch[] 
- Dependent Patches for this patch.
- description string
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- lifecycleDetails string
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- name string
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- patchId string
- patchTypes GetPatch Patch Type[] 
- Patch Type
- products
GetPatch Product[] 
- Product
- resourceRegion string
- Associated region
- severity string
- Patch Severity.
- state string
- The current state of the Patch.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated string
- The time this resource was created. An RFC3339 formatted datetime string.
- timeReleased string
- Date when the patch was released.
- timeUpdated string
- The time this resource was last updated. An RFC3339 formatted datetime string.
- type string
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- artifact_details Sequence[fleetappsmanagement.Get Patch Artifact Detail] 
- Patch artifact description and content details.
- compartment_id str
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- dependent_patches Sequence[fleetappsmanagement.Get Patch Dependent Patch] 
- Dependent Patches for this patch.
- description str
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- lifecycle_details str
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- name str
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- patch_id str
- patch_types Sequence[fleetappsmanagement.Get Patch Patch Type] 
- Patch Type
- products
Sequence[fleetappsmanagement.Get Patch Product] 
- Product
- resource_region str
- Associated region
- severity str
- Patch Severity.
- state str
- The current state of the Patch.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- time_created str
- The time this resource was created. An RFC3339 formatted datetime string.
- time_released str
- Date when the patch was released.
- time_updated str
- The time this resource was last updated. An RFC3339 formatted datetime string.
- type str
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
- artifactDetails List<Property Map>
- Patch artifact description and content details.
- compartmentId String
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
- dependentPatches List<Property Map>
- Dependent Patches for this patch.
- description String
- A user-friendly description. To provide some insight about the resource. 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
- The OCID of the resource.
- lifecycleDetails String
- A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- name String
- A user-friendly name. Should be unique within the tenancy, and cannot be changed after creation. Avoid entering confidential information.
- patchId String
- patchTypes List<Property Map>
- Patch Type
- products List<Property Map>
- Product
- resourceRegion String
- Associated region
- severity String
- Patch Severity.
- state String
- The current state of the Patch.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
- timeCreated String
- The time this resource was created. An RFC3339 formatted datetime string.
- timeReleased String
- Date when the patch was released.
- timeUpdated String
- The time this resource was last updated. An RFC3339 formatted datetime string.
- type String
- Provide information on who defined the patch. Example: For Custom Patches the value will be USER_DEFINED For Oracle Defined Patches the value will be ORACLE_DEFINED
Supporting Types
GetPatchArtifactDetail   
- Artifact
List<GetPatch Artifact Detail Artifact> 
- Patch artifact metadata Details which is common for all platforms.
- Artifacts
List<GetPatch Artifact Detail Artifact> 
- Artifacts.
- Category string
- Artifact category details.
- Artifact
[]GetPatch Artifact Detail Artifact 
- Patch artifact metadata Details which is common for all platforms.
- Artifacts
[]GetPatch Artifact Detail Artifact 
- Artifacts.
- Category string
- Artifact category details.
- artifact
List<GetPatch Artifact Detail Artifact> 
- Patch artifact metadata Details which is common for all platforms.
- artifacts
List<GetPatch Artifact Detail Artifact> 
- Artifacts.
- category String
- Artifact category details.
- artifact
GetPatch Artifact Detail Artifact[] 
- Patch artifact metadata Details which is common for all platforms.
- artifacts
GetPatch Artifact Detail Artifact[] 
- Artifacts.
- category string
- Artifact category details.
- artifact
Sequence[fleetappsmanagement.Get Patch Artifact Detail Artifact] 
- Patch artifact metadata Details which is common for all platforms.
- artifacts
Sequence[fleetappsmanagement.Get Patch Artifact Detail Artifact] 
- Artifacts.
- category str
- Artifact category details.
- artifact List<Property Map>
- Patch artifact metadata Details which is common for all platforms.
- artifacts List<Property Map>
- Artifacts.
- category String
- Artifact category details.
GetPatchArtifactDetailArtifact    
- Architecture string
- System architecture.
- Contents
List<GetPatch Artifact Detail Artifact Content> 
- Content Source details.
- OsType string
- The OS type the patch is applicable for.
- Architecture string
- System architecture.
- Contents
[]GetPatch Artifact Detail Artifact Content 
- Content Source details.
- OsType string
- The OS type the patch is applicable for.
- architecture String
- System architecture.
- contents
List<GetPatch Artifact Detail Artifact Content> 
- Content Source details.
- osType String
- The OS type the patch is applicable for.
- architecture string
- System architecture.
- contents
GetPatch Artifact Detail Artifact Content[] 
- Content Source details.
- osType string
- The OS type the patch is applicable for.
- architecture str
- System architecture.
- contents
Sequence[fleetappsmanagement.Get Patch Artifact Detail Artifact Content] 
- Content Source details.
- os_type str
- The OS type the patch is applicable for.
- architecture String
- System architecture.
- contents List<Property Map>
- Content Source details.
- osType String
- The OS type the patch is applicable for.
GetPatchArtifactDetailArtifactContent     
- Bucket string
- Bucket Name.
- Checksum string
- md5 checksum of the artifact.
- Namespace string
- Namespace.
- Object string
- Object Name.
- SourceType string
- Content Source type details.
- Bucket string
- Bucket Name.
- Checksum string
- md5 checksum of the artifact.
- Namespace string
- Namespace.
- Object string
- Object Name.
- SourceType string
- Content Source type details.
- bucket String
- Bucket Name.
- checksum String
- md5 checksum of the artifact.
- namespace String
- Namespace.
- object String
- Object Name.
- sourceType String
- Content Source type details.
- bucket string
- Bucket Name.
- checksum string
- md5 checksum of the artifact.
- namespace string
- Namespace.
- object string
- Object Name.
- sourceType string
- Content Source type details.
- bucket str
- Bucket Name.
- checksum str
- md5 checksum of the artifact.
- namespace str
- Namespace.
- object str
- Object Name.
- source_type str
- Content Source type details.
- bucket String
- Bucket Name.
- checksum String
- md5 checksum of the artifact.
- namespace String
- Namespace.
- object String
- Object Name.
- sourceType String
- Content Source type details.
GetPatchDependentPatch   
- Id string
- The OCID of the resource.
- Id string
- The OCID of the resource.
- id String
- The OCID of the resource.
- id string
- The OCID of the resource.
- id str
- The OCID of the resource.
- id String
- The OCID of the resource.
GetPatchPatchType   
- PlatformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- PlatformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- platformConfiguration StringId 
- PlatformConfiguration Id corresponding to the Product
- platformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- platform_configuration_ strid 
- PlatformConfiguration Id corresponding to the Product
- platformConfiguration StringId 
- PlatformConfiguration Id corresponding to the Product
GetPatchProduct  
- PlatformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- Version string
- product version.
- PlatformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- Version string
- product version.
- platformConfiguration StringId 
- PlatformConfiguration Id corresponding to the Product
- version String
- product version.
- platformConfiguration stringId 
- PlatformConfiguration Id corresponding to the Product
- version string
- product version.
- platform_configuration_ strid 
- PlatformConfiguration Id corresponding to the Product
- version str
- product version.
- platformConfiguration StringId 
- PlatformConfiguration Id corresponding to the Product
- version String
- product version.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.