Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.Core.getCpes
Explore with Pulumi AI
This data source provides the list of Cpes in Oracle Cloud Infrastructure Core service.
Lists the customer-premises equipment objects (CPEs) in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testCpes = oci.Core.getCpes({
compartmentId: compartmentId,
});
import pulumi
import pulumi_oci as oci
test_cpes = oci.Core.get_cpes(compartment_id=compartment_id)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Core.GetCpes(ctx, &core.GetCpesArgs{
CompartmentId: compartmentId,
}, 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 testCpes = Oci.Core.GetCpes.Invoke(new()
{
CompartmentId = compartmentId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Core.CoreFunctions;
import com.pulumi.oci.Core.inputs.GetCpesArgs;
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 testCpes = CoreFunctions.getCpes(GetCpesArgs.builder()
.compartmentId(compartmentId)
.build());
}
}
variables:
testCpes:
fn::invoke:
Function: oci:Core:getCpes
Arguments:
compartmentId: ${compartmentId}
Using getCpes
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 getCpes(args: GetCpesArgs, opts?: InvokeOptions): Promise<GetCpesResult>
function getCpesOutput(args: GetCpesOutputArgs, opts?: InvokeOptions): Output<GetCpesResult>
def get_cpes(compartment_id: Optional[str] = None,
filters: Optional[Sequence[_core.GetCpesFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetCpesResult
def get_cpes_output(compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_core.GetCpesFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCpesResult]
func GetCpes(ctx *Context, args *GetCpesArgs, opts ...InvokeOption) (*GetCpesResult, error)
func GetCpesOutput(ctx *Context, args *GetCpesOutputArgs, opts ...InvokeOption) GetCpesResultOutput
> Note: This function is named GetCpes
in the Go SDK.
public static class GetCpes
{
public static Task<GetCpesResult> InvokeAsync(GetCpesArgs args, InvokeOptions? opts = null)
public static Output<GetCpesResult> Invoke(GetCpesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetCpesResult> getCpes(GetCpesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Core/getCpes:getCpes
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Filters
List<Get
Cpes Filter>
- Compartment
Id string - The OCID of the compartment.
- Filters
[]Get
Cpes Filter
- compartment
Id String - The OCID of the compartment.
- filters
List<Get
Cpes Filter>
- compartment
Id string - The OCID of the compartment.
- filters
Get
Cpes Filter[]
- compartment_
id str - The OCID of the compartment.
- filters
Sequence[core.
Get Cpes Filter]
- compartment
Id String - The OCID of the compartment.
- filters List<Property Map>
getCpes Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment containing the CPE.
- Cpes
List<Get
Cpes Cpe> - The list of cpes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Cpes Filter>
- Compartment
Id string - The OCID of the compartment containing the CPE.
- Cpes
[]Get
Cpes Cpe - The list of cpes.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Cpes Filter
- compartment
Id String - The OCID of the compartment containing the CPE.
- cpes
List<Get
Cpes Cpe> - The list of cpes.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Cpes Filter>
- compartment
Id string - The OCID of the compartment containing the CPE.
- cpes
Get
Cpes Cpe[] - The list of cpes.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Cpes Filter[]
- compartment_
id str - The OCID of the compartment containing the CPE.
- cpes
Sequence[core.
Get Cpes Cpe] - The list of cpes.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[core.
Get Cpes Filter]
- compartment
Id String - The OCID of the compartment containing the CPE.
- cpes List<Property Map>
- The list of cpes.
- id String
- The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
Supporting Types
GetCpesCpe
- Compartment
Id string - The OCID of the compartment.
- Cpe
Device stringShape Id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Dictionary<string, string>
- 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 CPE's Oracle ID (OCID).
- Ip
Address string - The public IP address of the on-premises router.
- Is
Private bool - Indicates whether this CPE is of type
private
or not. - Time
Created string - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- Compartment
Id string - The OCID of the compartment.
- Cpe
Device stringShape Id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- map[string]string
- 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 CPE's Oracle ID (OCID).
- Ip
Address string - The public IP address of the on-premises router.
- Is
Private bool - Indicates whether this CPE is of type
private
or not. - Time
Created string - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment.
- cpe
Device StringShape Id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String,String>
- 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 CPE's Oracle ID (OCID).
- ip
Address String - The public IP address of the on-premises router.
- is
Private Boolean - Indicates whether this CPE is of type
private
or not. - time
Created String - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id string - The OCID of the compartment.
- cpe
Device stringShape Id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- {[key: string]: string}
- 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 CPE's Oracle ID (OCID).
- ip
Address string - The public IP address of the on-premises router.
- is
Private boolean - Indicates whether this CPE is of type
private
or not. - time
Created string - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment_
id str - The OCID of the compartment.
- cpe_
device_ strshape_ id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Mapping[str, str]
- 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 CPE's Oracle ID (OCID).
- ip_
address str - The public IP address of the on-premises router.
- is_
private bool - Indicates whether this CPE is of type
private
or not. - time_
created str - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
- compartment
Id String - The OCID of the compartment.
- cpe
Device StringShape Id - The OCID of the CPE's device type. The Networking service maintains a general list of CPE device types (for example, Cisco ASA). For each type, Oracle provides CPE configuration content that can help a network engineer configure the CPE. The OCID uniquely identifies the type of device. To get the OCIDs for the device types on the list, see ListCpeDeviceShapes.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"Operations.CostCenter": "42"}
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- Map<String>
- 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 CPE's Oracle ID (OCID).
- ip
Address String - The public IP address of the on-premises router.
- is
Private Boolean - Indicates whether this CPE is of type
private
or not. - time
Created String - The date and time the CPE was created, in the format defined by RFC3339. Example:
2016-08-25T21:10:29.600Z
GetCpesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.