https://pulumi.com logo
Title
d

damp-truck-25843

05/09/2022, 1:32 PM
Hi there! I was looking through Pulumi APIs (java, mostly) and I’m struggling to find an alternative to TFs datasource techniques, can someone point me to a doc that I might be missing? We have a use case when apps running in a particular cloud region must have an access to cloud services through internal network (call it “Service Gateway”. In TF, we use special datasource that can give an IP address (for all regional services, or to a particular one).
here’s exactly what i need:
data "oci_core_services" "all_oci_services" {
  filter {
    name   = "name"
    values = ["All .* Services In Oracle Services Network"]
    regex  = true
  }
}
b

billowy-army-68599

05/09/2022, 1:40 PM
@damp-truck-25843 all data sources are in the format `get<Something`: https://www.pulumi.com/registry/packages/oci/api-docs/core/getservices/ There's also
getSomethingOutput
which returns an output
looks like the java SDK doesn't have the output form of those functions yet, so it'll be
getServices
d

damp-truck-25843

05/09/2022, 1:53 PM
thanks!