Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
Oracle Cloud Infrastructure
I want to use the Pulumi Oracle Cloud Infrastructure package (oci) in my project.
## Provider details
- Package: oci
- Version: v4.11.0
- Publisher: Pulumi
- Source: pulumi
- Repository: https://github.com/pulumi/pulumi-oci
## Documentation
The Pulumi Cloud Registry API serves canonical, up-to-date docs for this package — including private packages and every published version. Send the "Accept: text/markdown" header for clean readable content, or "application/json" for structured data.
Start at the navigation tree, which cross-links to the readme, installation guide, and per-resource docs URL template:
- https://api.pulumi.com/api/registry/packages/pulumi/pulumi/oci/versions/latest/nav
Returns a summary by default. The full tree can be hundreds of kB for large providers, so prefer targeted search: append "?q=<query>&depth=full" to filter by resource/function title or token (for example "?q=bucket&depth=full"). Only request the full nav without a query if you actually need to enumerate every resource.
Other endpoints:
- Overview and getting started: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/oci/versions/latest/readme
- Installation and configuration: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/oci/versions/latest/installation
- Per-resource/function docs: https://api.pulumi.com/api/registry/packages/pulumi/pulumi/oci/versions/latest/docs/{token}?lang={lang}
Replace {token} with the percent-encoded token from the nav response (for example aws:s3/bucket:Bucket).
Replace {lang} with typescript, python, go, csharp, java, or yaml.
Fetch the installation endpoint above for the correct setup steps — install instructions vary between native providers, bridged Terraform providers, and component packages.
Help me get started using this provider. Show me a complete Pulumi program that provisions a common resource, including all necessary configuration and imports.
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
The Oracle Cloud Infrastructure (OCI) provider for Pulumi can be used to provision any of the resources available in OCI. The OCI provider must be configured with credentials to deploy and update resources in OCI.
Example
import * as oci from "@pulumi/oci";
const testUser = new oci.identity.User("testUser", {
compartmentId: _var.tenancy_ocid,
description: _var.user_description,
definedTags: {
"Operations.CostCenter": "42",
},
email: _var.user_email,
freeformTags: {
Department: "Finance",
},
});
import pulumi_oci as oci
test_user = oci.identity.User("testUser",
compartment_id=var["tenancy_ocid"],
description=var["user_description"],
defined_tags={
"Operations.CostCenter": "42",
},
email=var["user_email"],
freeform_tags={
"Department": "Finance",
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Identity.NewUser(ctx, "testUser", &Identity.UserArgs{
CompartmentId: pulumi.Any(_var.Tenancy_ocid),
Description: pulumi.Any(_var.User_description),
DefinedTags: pulumi.AnyMap{
"Operations.CostCenter": pulumi.Any("42"),
},
Email: pulumi.Any(_var.User_email),
FreeformTags: pulumi.AnyMap{
"Department": pulumi.Any("Finance"),
},
})
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 testUser = new Oci.Identity.User("testUser", new()
{
CompartmentId = @var.Tenancy_ocid,
Description = @var.User_description,
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Email = @var.User_email,
FreeformTags =
{
{ "Department", "Finance" },
},
});
});
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Identity.User;
import com.pulumi.oci.Identity.UserArgs;
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 testUser = new User("testUser", UserArgs.builder()
.compartmentId(var_.tenancy_ocid())
.description(var_.user_description())
.definedTags(Map.of("Operations.CostCenter", "42"))
.email(var_.user_email())
.freeformTags(Map.of("Department", "Finance"))
.build());
}
}
resources:
testUser:
type: oci:Identity:User
properties:
#Required
compartmentId: ${var.tenancy_ocid}
description: ${var.user_description}
#Optional
definedTags:
Operations.CostCenter: '42'
email: ${var.user_email}
freeformTags:
Department: Finance
Viewing docs for Oracle Cloud Infrastructure v4.11.0
published on Friday, May 15, 2026 by Pulumi
published on Friday, May 15, 2026 by Pulumi
