1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. SoftwareSourceChangeAvailabilityManagement
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement

Explore with Pulumi AI

This resource provides the Software Source Change Availability Management resource in Oracle Cloud Infrastructure Os Management Hub service.

Updates the availability for a list of specified software sources.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testSoftwareSourceChangeAvailabilityManagement = new oci.osmanagementhub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", {softwareSourceAvailabilities: [{
    softwareSourceId: testSoftwareSource.id,
    availability: softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability,
    availabilityAtOci: softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci,
}]});
Copy
import pulumi
import pulumi_oci as oci

test_software_source_change_availability_management = oci.os_management_hub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", software_source_availabilities=[{
    "software_source_id": test_software_source["id"],
    "availability": software_source_change_availability_management_software_source_availabilities_availability,
    "availability_at_oci": software_source_change_availability_management_software_source_availabilities_availability_at_oci,
}])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.NewSoftwareSourceChangeAvailabilityManagement(ctx, "test_software_source_change_availability_management", &osmanagementhub.SoftwareSourceChangeAvailabilityManagementArgs{
			SoftwareSourceAvailabilities: osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArray{
				&osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs{
					SoftwareSourceId:  pulumi.Any(testSoftwareSource.Id),
					Availability:      pulumi.Any(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability),
					AvailabilityAtOci: pulumi.Any(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testSoftwareSourceChangeAvailabilityManagement = new Oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement("test_software_source_change_availability_management", new()
    {
        SoftwareSourceAvailabilities = new[]
        {
            new Oci.OsManagementHub.Inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
            {
                SoftwareSourceId = testSoftwareSource.Id,
                Availability = softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability,
                AvailabilityAtOci = softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci,
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement;
import com.pulumi.oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagementArgs;
import com.pulumi.oci.OsManagementHub.inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs;
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) {
        var testSoftwareSourceChangeAvailabilityManagement = new SoftwareSourceChangeAvailabilityManagement("testSoftwareSourceChangeAvailabilityManagement", SoftwareSourceChangeAvailabilityManagementArgs.builder()
            .softwareSourceAvailabilities(SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs.builder()
                .softwareSourceId(testSoftwareSource.id())
                .availability(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability)
                .availabilityAtOci(softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci)
                .build())
            .build());

    }
}
Copy
resources:
  testSoftwareSourceChangeAvailabilityManagement:
    type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
    name: test_software_source_change_availability_management
    properties:
      softwareSourceAvailabilities:
        - softwareSourceId: ${testSoftwareSource.id}
          availability: ${softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailability}
          availabilityAtOci: ${softwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilitiesAvailabilityAtOci}
Copy

Create SoftwareSourceChangeAvailabilityManagement Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SoftwareSourceChangeAvailabilityManagement(name: string, args: SoftwareSourceChangeAvailabilityManagementArgs, opts?: CustomResourceOptions);
@overload
def SoftwareSourceChangeAvailabilityManagement(resource_name: str,
                                               args: SoftwareSourceChangeAvailabilityManagementArgs,
                                               opts: Optional[ResourceOptions] = None)

@overload
def SoftwareSourceChangeAvailabilityManagement(resource_name: str,
                                               opts: Optional[ResourceOptions] = None,
                                               software_source_availabilities: Optional[Sequence[_osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]] = None)
func NewSoftwareSourceChangeAvailabilityManagement(ctx *Context, name string, args SoftwareSourceChangeAvailabilityManagementArgs, opts ...ResourceOption) (*SoftwareSourceChangeAvailabilityManagement, error)
public SoftwareSourceChangeAvailabilityManagement(string name, SoftwareSourceChangeAvailabilityManagementArgs args, CustomResourceOptions? opts = null)
public SoftwareSourceChangeAvailabilityManagement(String name, SoftwareSourceChangeAvailabilityManagementArgs args)
public SoftwareSourceChangeAvailabilityManagement(String name, SoftwareSourceChangeAvailabilityManagementArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SoftwareSourceChangeAvailabilityManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SoftwareSourceChangeAvailabilityManagementArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SoftwareSourceChangeAvailabilityManagementArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SoftwareSourceChangeAvailabilityManagementArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SoftwareSourceChangeAvailabilityManagementArgs
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 softwareSourceChangeAvailabilityManagementResource = new Oci.OsManagementHub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", new()
{
    SoftwareSourceAvailabilities = new[]
    {
        new Oci.OsManagementHub.Inputs.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
        {
            SoftwareSourceId = "string",
            Availability = "string",
            AvailabilityAtOci = "string",
        },
    },
});
Copy
example, err := OsManagementHub.NewSoftwareSourceChangeAvailabilityManagement(ctx, "softwareSourceChangeAvailabilityManagementResource", &OsManagementHub.SoftwareSourceChangeAvailabilityManagementArgs{
	SoftwareSourceAvailabilities: osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArray{
		&osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs{
			SoftwareSourceId:  pulumi.String("string"),
			Availability:      pulumi.String("string"),
			AvailabilityAtOci: pulumi.String("string"),
		},
	},
})
Copy
var softwareSourceChangeAvailabilityManagementResource = new SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", SoftwareSourceChangeAvailabilityManagementArgs.builder()
    .softwareSourceAvailabilities(SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs.builder()
        .softwareSourceId("string")
        .availability("string")
        .availabilityAtOci("string")
        .build())
    .build());
Copy
software_source_change_availability_management_resource = oci.os_management_hub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", software_source_availabilities=[{
    "software_source_id": "string",
    "availability": "string",
    "availability_at_oci": "string",
}])
Copy
const softwareSourceChangeAvailabilityManagementResource = new oci.osmanagementhub.SoftwareSourceChangeAvailabilityManagement("softwareSourceChangeAvailabilityManagementResource", {softwareSourceAvailabilities: [{
    softwareSourceId: "string",
    availability: "string",
    availabilityAtOci: "string",
}]});
Copy
type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement
properties:
    softwareSourceAvailabilities:
        - availability: string
          availabilityAtOci: string
          softwareSourceId: string
Copy

SoftwareSourceChangeAvailabilityManagement 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 SoftwareSourceChangeAvailabilityManagement resource accepts the following input properties:

SoftwareSourceAvailabilities
This property is required.
Changes to this property will trigger replacement.
List<SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability>
List of vendor software sources and their availability statuses.
SoftwareSourceAvailabilities
This property is required.
Changes to this property will trigger replacement.
[]SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities
This property is required.
Changes to this property will trigger replacement.
List<SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability>
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities
This property is required.
Changes to this property will trigger replacement.
SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability[]
List of vendor software sources and their availability statuses.
software_source_availabilities
This property is required.
Changes to this property will trigger replacement.
Sequence[osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities
This property is required.
Changes to this property will trigger replacement.
List<Property Map>
List of vendor software sources and their availability statuses.

Outputs

All input properties are implicitly available as output properties. Additionally, the SoftwareSourceChangeAvailabilityManagement resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SoftwareSourceChangeAvailabilityManagement Resource

Get an existing SoftwareSourceChangeAvailabilityManagement 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?: SoftwareSourceChangeAvailabilityManagementState, opts?: CustomResourceOptions): SoftwareSourceChangeAvailabilityManagement
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        software_source_availabilities: Optional[Sequence[_osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]] = None) -> SoftwareSourceChangeAvailabilityManagement
func GetSoftwareSourceChangeAvailabilityManagement(ctx *Context, name string, id IDInput, state *SoftwareSourceChangeAvailabilityManagementState, opts ...ResourceOption) (*SoftwareSourceChangeAvailabilityManagement, error)
public static SoftwareSourceChangeAvailabilityManagement Get(string name, Input<string> id, SoftwareSourceChangeAvailabilityManagementState? state, CustomResourceOptions? opts = null)
public static SoftwareSourceChangeAvailabilityManagement get(String name, Output<String> id, SoftwareSourceChangeAvailabilityManagementState state, CustomResourceOptions options)
resources:  _:    type: oci:OsManagementHub:SoftwareSourceChangeAvailabilityManagement    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
SoftwareSourceAvailabilities Changes to this property will trigger replacement. List<SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability>
List of vendor software sources and their availability statuses.
SoftwareSourceAvailabilities Changes to this property will trigger replacement. []SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities Changes to this property will trigger replacement. List<SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability>
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities Changes to this property will trigger replacement. SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability[]
List of vendor software sources and their availability statuses.
software_source_availabilities Changes to this property will trigger replacement. Sequence[osmanagementhub.SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs]
List of vendor software sources and their availability statuses.
softwareSourceAvailabilities Changes to this property will trigger replacement. List<Property Map>
List of vendor software sources and their availability statuses.

Supporting Types

SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailability
, SoftwareSourceChangeAvailabilityManagementSoftwareSourceAvailabilityArgs

SoftwareSourceId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the vendor software source.

** 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

Availability Changes to this property will trigger replacement. string
Availability of the software source to instances in private data centers or third-party clouds.
AvailabilityAtOci Changes to this property will trigger replacement. string
Availability of the software source to Oracle Cloud Infrastructure instances.
SoftwareSourceId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the vendor software source.

** 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

Availability Changes to this property will trigger replacement. string
Availability of the software source to instances in private data centers or third-party clouds.
AvailabilityAtOci Changes to this property will trigger replacement. string
Availability of the software source to Oracle Cloud Infrastructure instances.
softwareSourceId
This property is required.
Changes to this property will trigger replacement.
String

The OCID of the vendor software source.

** 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

availability Changes to this property will trigger replacement. String
Availability of the software source to instances in private data centers or third-party clouds.
availabilityAtOci Changes to this property will trigger replacement. String
Availability of the software source to Oracle Cloud Infrastructure instances.
softwareSourceId
This property is required.
Changes to this property will trigger replacement.
string

The OCID of the vendor software source.

** 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

availability Changes to this property will trigger replacement. string
Availability of the software source to instances in private data centers or third-party clouds.
availabilityAtOci Changes to this property will trigger replacement. string
Availability of the software source to Oracle Cloud Infrastructure instances.
software_source_id
This property is required.
Changes to this property will trigger replacement.
str

The OCID of the vendor software source.

** 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

availability Changes to this property will trigger replacement. str
Availability of the software source to instances in private data centers or third-party clouds.
availability_at_oci Changes to this property will trigger replacement. str
Availability of the software source to Oracle Cloud Infrastructure instances.
softwareSourceId
This property is required.
Changes to this property will trigger replacement.
String

The OCID of the vendor software source.

** 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

availability Changes to this property will trigger replacement. String
Availability of the software source to instances in private data centers or third-party clouds.
availabilityAtOci Changes to this property will trigger replacement. String
Availability of the software source to Oracle Cloud Infrastructure instances.

Import

SoftwareSourceChangeAvailabilityManagement can be imported using the id, e.g.

$ pulumi import oci:OsManagementHub/softwareSourceChangeAvailabilityManagement:SoftwareSourceChangeAvailabilityManagement test_software_source_change_availability_management "id"
Copy

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 oci Terraform Provider.