Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ContainerEngine.getClusterWorkloadMappings
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
This data source provides the list of Cluster Workload Mappings in Oracle Cloud Infrastructure Container Engine service.
List workloadMappings for a provisioned cluster.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testClusterWorkloadMappings = oci.ContainerEngine.getClusterWorkloadMappings({
clusterId: testCluster.id,
});
import pulumi
import pulumi_oci as oci
test_cluster_workload_mappings = oci.ContainerEngine.get_cluster_workload_mappings(cluster_id=test_cluster["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerEngine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ContainerEngine.GetClusterWorkloadMappings(ctx, &containerengine.GetClusterWorkloadMappingsArgs{
ClusterId: testCluster.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 testClusterWorkloadMappings = Oci.ContainerEngine.GetClusterWorkloadMappings.Invoke(new()
{
ClusterId = testCluster.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ContainerEngine.ContainerEngineFunctions;
import com.pulumi.oci.ContainerEngine.inputs.GetClusterWorkloadMappingsArgs;
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 testClusterWorkloadMappings = ContainerEngineFunctions.getClusterWorkloadMappings(GetClusterWorkloadMappingsArgs.builder()
.clusterId(testCluster.id())
.build());
}
}
variables:
testClusterWorkloadMappings:
fn::invoke:
Function: oci:ContainerEngine:getClusterWorkloadMappings
Arguments:
clusterId: ${testCluster.id}
Using getClusterWorkloadMappings
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 getClusterWorkloadMappings(args: GetClusterWorkloadMappingsArgs, opts?: InvokeOptions): Promise<GetClusterWorkloadMappingsResult>
function getClusterWorkloadMappingsOutput(args: GetClusterWorkloadMappingsOutputArgs, opts?: InvokeOptions): Output<GetClusterWorkloadMappingsResult>
def get_cluster_workload_mappings(cluster_id: Optional[str] = None,
filters: Optional[Sequence[_containerengine.GetClusterWorkloadMappingsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetClusterWorkloadMappingsResult
def get_cluster_workload_mappings_output(cluster_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_containerengine.GetClusterWorkloadMappingsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetClusterWorkloadMappingsResult]
func GetClusterWorkloadMappings(ctx *Context, args *GetClusterWorkloadMappingsArgs, opts ...InvokeOption) (*GetClusterWorkloadMappingsResult, error)
func GetClusterWorkloadMappingsOutput(ctx *Context, args *GetClusterWorkloadMappingsOutputArgs, opts ...InvokeOption) GetClusterWorkloadMappingsResultOutput
> Note: This function is named GetClusterWorkloadMappings
in the Go SDK.
public static class GetClusterWorkloadMappings
{
public static Task<GetClusterWorkloadMappingsResult> InvokeAsync(GetClusterWorkloadMappingsArgs args, InvokeOptions? opts = null)
public static Output<GetClusterWorkloadMappingsResult> Invoke(GetClusterWorkloadMappingsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetClusterWorkloadMappingsResult> getClusterWorkloadMappings(GetClusterWorkloadMappingsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ContainerEngine/getClusterWorkloadMappings:getClusterWorkloadMappings
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - The OCID of the cluster.
- Filters
List<Get
Cluster Workload Mappings Filter>
- Cluster
Id string - The OCID of the cluster.
- Filters
[]Get
Cluster Workload Mappings Filter
- cluster
Id String - The OCID of the cluster.
- filters
List<Get
Cluster Workload Mappings Filter>
- cluster
Id string - The OCID of the cluster.
- filters
Get
Cluster Workload Mappings Filter[]
- cluster_
id str - The OCID of the cluster.
- filters
Sequence[containerengine.
Get Cluster Workload Mappings Filter]
- cluster
Id String - The OCID of the cluster.
- filters List<Property Map>
getClusterWorkloadMappings Result
The following output properties are available:
- Cluster
Id string - The OCID of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Workload
Mappings List<GetCluster Workload Mappings Workload Mapping> - The list of workload_mappings.
- Filters
List<Get
Cluster Workload Mappings Filter>
- Cluster
Id string - The OCID of the cluster.
- Id string
- The provider-assigned unique ID for this managed resource.
- Workload
Mappings []GetCluster Workload Mappings Workload Mapping - The list of workload_mappings.
- Filters
[]Get
Cluster Workload Mappings Filter
- cluster
Id String - The OCID of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- workload
Mappings List<GetCluster Workload Mappings Workload Mapping> - The list of workload_mappings.
- filters
List<Get
Cluster Workload Mappings Filter>
- cluster
Id string - The OCID of the cluster.
- id string
- The provider-assigned unique ID for this managed resource.
- workload
Mappings GetCluster Workload Mappings Workload Mapping[] - The list of workload_mappings.
- filters
Get
Cluster Workload Mappings Filter[]
- cluster_
id str - The OCID of the cluster.
- id str
- The provider-assigned unique ID for this managed resource.
- workload_
mappings Sequence[containerengine.Get Cluster Workload Mappings Workload Mapping] - The list of workload_mappings.
- filters
Sequence[containerengine.
Get Cluster Workload Mappings Filter]
- cluster
Id String - The OCID of the cluster.
- id String
- The provider-assigned unique ID for this managed resource.
- workload
Mappings List<Property Map> - The list of workload_mappings.
- filters List<Property Map>
Supporting Types
GetClusterWorkloadMappingsFilter
GetClusterWorkloadMappingsWorkloadMapping
- Cluster
Id string - The OCID of the cluster.
- Dictionary<string, object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Dictionary<string, object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The ocid of the workloadMapping.
- Mapped
Compartment stringId - The OCID of the mapped customer compartment.
- Mapped
Tenancy stringId - The OCID of the mapped customer tenancy.
- Namespace string
- The namespace of the workloadMapping.
- State string
- The state of the workloadMapping.
- Time
Created string - The time the cluster was created.
- Cluster
Id string - The OCID of the cluster.
- map[string]interface{}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- map[string]interface{}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- Id string
- The ocid of the workloadMapping.
- Mapped
Compartment stringId - The OCID of the mapped customer compartment.
- Mapped
Tenancy stringId - The OCID of the mapped customer tenancy.
- Namespace string
- The namespace of the workloadMapping.
- State string
- The state of the workloadMapping.
- Time
Created string - The time the cluster was created.
- cluster
Id String - The OCID of the cluster.
- Map<String,Object>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<String,Object>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The ocid of the workloadMapping.
- mapped
Compartment StringId - The OCID of the mapped customer compartment.
- mapped
Tenancy StringId - The OCID of the mapped customer tenancy.
- namespace String
- The namespace of the workloadMapping.
- state String
- The state of the workloadMapping.
- time
Created String - The time the cluster was created.
- cluster
Id string - The OCID of the cluster.
- {[key: string]: any}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- {[key: string]: any}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id string
- The ocid of the workloadMapping.
- mapped
Compartment stringId - The OCID of the mapped customer compartment.
- mapped
Tenancy stringId - The OCID of the mapped customer tenancy.
- namespace string
- The namespace of the workloadMapping.
- state string
- The state of the workloadMapping.
- time
Created string - The time the cluster was created.
- cluster_
id str - The OCID of the cluster.
- Mapping[str, Any]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Mapping[str, Any]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id str
- The ocid of the workloadMapping.
- mapped_
compartment_ strid - The OCID of the mapped customer compartment.
- mapped_
tenancy_ strid - The OCID of the mapped customer tenancy.
- namespace str
- The namespace of the workloadMapping.
- state str
- The state of the workloadMapping.
- time_
created str - The time the cluster was created.
- cluster
Id String - The OCID of the cluster.
- Map<Any>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Map<Any>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example:
{"Department": "Finance"}
- id String
- The ocid of the workloadMapping.
- mapped
Compartment StringId - The OCID of the mapped customer compartment.
- mapped
Tenancy StringId - The OCID of the mapped customer tenancy.
- namespace String
- The namespace of the workloadMapping.
- state String
- The state of the workloadMapping.
- time
Created String - The time the cluster was created.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi