Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.ServiceCatalog.getServiceCatalogAssociations
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 Service Catalog Associations in Oracle Cloud Infrastructure Service Catalog service.
Lists all the resource associations for a specific service catalog.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testServiceCatalogAssociations = oci.ServiceCatalog.getServiceCatalogAssociations({
entityId: testEntity.id,
entityType: serviceCatalogAssociationEntityType,
serviceCatalogAssociationId: testServiceCatalogAssociation.id,
serviceCatalogId: testServiceCatalog.id,
});
import pulumi
import pulumi_oci as oci
test_service_catalog_associations = oci.ServiceCatalog.get_service_catalog_associations(entity_id=test_entity["id"],
entity_type=service_catalog_association_entity_type,
service_catalog_association_id=test_service_catalog_association["id"],
service_catalog_id=test_service_catalog["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/ServiceCatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ServiceCatalog.GetServiceCatalogAssociations(ctx, &servicecatalog.GetServiceCatalogAssociationsArgs{
EntityId: pulumi.StringRef(testEntity.Id),
EntityType: pulumi.StringRef(serviceCatalogAssociationEntityType),
ServiceCatalogAssociationId: pulumi.StringRef(testServiceCatalogAssociation.Id),
ServiceCatalogId: pulumi.StringRef(testServiceCatalog.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 testServiceCatalogAssociations = Oci.ServiceCatalog.GetServiceCatalogAssociations.Invoke(new()
{
EntityId = testEntity.Id,
EntityType = serviceCatalogAssociationEntityType,
ServiceCatalogAssociationId = testServiceCatalogAssociation.Id,
ServiceCatalogId = testServiceCatalog.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ServiceCatalog.ServiceCatalogFunctions;
import com.pulumi.oci.ServiceCatalog.inputs.GetServiceCatalogAssociationsArgs;
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 testServiceCatalogAssociations = ServiceCatalogFunctions.getServiceCatalogAssociations(GetServiceCatalogAssociationsArgs.builder()
.entityId(testEntity.id())
.entityType(serviceCatalogAssociationEntityType)
.serviceCatalogAssociationId(testServiceCatalogAssociation.id())
.serviceCatalogId(testServiceCatalog.id())
.build());
}
}
variables:
testServiceCatalogAssociations:
fn::invoke:
Function: oci:ServiceCatalog:getServiceCatalogAssociations
Arguments:
entityId: ${testEntity.id}
entityType: ${serviceCatalogAssociationEntityType}
serviceCatalogAssociationId: ${testServiceCatalogAssociation.id}
serviceCatalogId: ${testServiceCatalog.id}
Using getServiceCatalogAssociations
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 getServiceCatalogAssociations(args: GetServiceCatalogAssociationsArgs, opts?: InvokeOptions): Promise<GetServiceCatalogAssociationsResult>
function getServiceCatalogAssociationsOutput(args: GetServiceCatalogAssociationsOutputArgs, opts?: InvokeOptions): Output<GetServiceCatalogAssociationsResult>
def get_service_catalog_associations(entity_id: Optional[str] = None,
entity_type: Optional[str] = None,
filters: Optional[Sequence[_servicecatalog.GetServiceCatalogAssociationsFilter]] = None,
service_catalog_association_id: Optional[str] = None,
service_catalog_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceCatalogAssociationsResult
def get_service_catalog_associations_output(entity_id: Optional[pulumi.Input[str]] = None,
entity_type: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_servicecatalog.GetServiceCatalogAssociationsFilterArgs]]]] = None,
service_catalog_association_id: Optional[pulumi.Input[str]] = None,
service_catalog_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceCatalogAssociationsResult]
func GetServiceCatalogAssociations(ctx *Context, args *GetServiceCatalogAssociationsArgs, opts ...InvokeOption) (*GetServiceCatalogAssociationsResult, error)
func GetServiceCatalogAssociationsOutput(ctx *Context, args *GetServiceCatalogAssociationsOutputArgs, opts ...InvokeOption) GetServiceCatalogAssociationsResultOutput
> Note: This function is named GetServiceCatalogAssociations
in the Go SDK.
public static class GetServiceCatalogAssociations
{
public static Task<GetServiceCatalogAssociationsResult> InvokeAsync(GetServiceCatalogAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetServiceCatalogAssociationsResult> Invoke(GetServiceCatalogAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceCatalogAssociationsResult> getServiceCatalogAssociations(GetServiceCatalogAssociationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:ServiceCatalog/getServiceCatalogAssociations:getServiceCatalogAssociations
arguments:
# arguments dictionary
The following arguments are supported:
- Entity
Id string - The unique identifier of the entity associated with service catalog.
- Entity
Type string - The type of the application in the service catalog.
- Filters
List<Get
Service Catalog Associations Filter> - Service
Catalog stringAssociation Id - The unique identifier for the service catalog association.
- Service
Catalog stringId - The unique identifier for the service catalog.
- Entity
Id string - The unique identifier of the entity associated with service catalog.
- Entity
Type string - The type of the application in the service catalog.
- Filters
[]Get
Service Catalog Associations Filter - Service
Catalog stringAssociation Id - The unique identifier for the service catalog association.
- Service
Catalog stringId - The unique identifier for the service catalog.
- entity
Id String - The unique identifier of the entity associated with service catalog.
- entity
Type String - The type of the application in the service catalog.
- filters
List<Get
Associations Filter> - service
Catalog StringAssociation Id - The unique identifier for the service catalog association.
- service
Catalog StringId - The unique identifier for the service catalog.
- entity
Id string - The unique identifier of the entity associated with service catalog.
- entity
Type string - The type of the application in the service catalog.
- filters
Get
Service Catalog Associations Filter[] - service
Catalog stringAssociation Id - The unique identifier for the service catalog association.
- service
Catalog stringId - The unique identifier for the service catalog.
- entity_
id str - The unique identifier of the entity associated with service catalog.
- entity_
type str - The type of the application in the service catalog.
- filters
Sequence[servicecatalog.
Get Service Catalog Associations Filter] - service_
catalog_ strassociation_ id - The unique identifier for the service catalog association.
- service_
catalog_ strid - The unique identifier for the service catalog.
- entity
Id String - The unique identifier of the entity associated with service catalog.
- entity
Type String - The type of the application in the service catalog.
- filters List<Property Map>
- service
Catalog StringAssociation Id - The unique identifier for the service catalog association.
- service
Catalog StringId - The unique identifier for the service catalog.
getServiceCatalogAssociations Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Catalog List<GetAssociation Collections Service Catalog Associations Service Catalog Association Collection> - The list of service_catalog_association_collection.
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Entity
Type string - The type of the entity that is associated with the service catalog.
- Filters
List<Get
Service Catalog Associations Filter> - Service
Catalog stringAssociation Id - Service
Catalog stringId - Identifier of the service catalog.
- Id string
- The provider-assigned unique ID for this managed resource.
- Service
Catalog []GetAssociation Collections Service Catalog Associations Service Catalog Association Collection - The list of service_catalog_association_collection.
- Entity
Id string - Identifier of the entity being associated with service catalog.
- Entity
Type string - The type of the entity that is associated with the service catalog.
- Filters
[]Get
Service Catalog Associations Filter - Service
Catalog stringAssociation Id - Service
Catalog stringId - Identifier of the service catalog.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Catalog List<GetAssociation Collections Associations Association Collection> - The list of service_catalog_association_collection.
- entity
Id String - Identifier of the entity being associated with service catalog.
- entity
Type String - The type of the entity that is associated with the service catalog.
- filters
List<Get
Associations Filter> - service
Catalog StringAssociation Id - service
Catalog StringId - Identifier of the service catalog.
- id string
- The provider-assigned unique ID for this managed resource.
- service
Catalog GetAssociation Collections Service Catalog Associations Service Catalog Association Collection[] - The list of service_catalog_association_collection.
- entity
Id string - Identifier of the entity being associated with service catalog.
- entity
Type string - The type of the entity that is associated with the service catalog.
- filters
Get
Service Catalog Associations Filter[] - service
Catalog stringAssociation Id - service
Catalog stringId - Identifier of the service catalog.
- id str
- The provider-assigned unique ID for this managed resource.
- service_
catalog_ Sequence[servicecatalog.association_ collections Get Service Catalog Associations Service Catalog Association Collection] - The list of service_catalog_association_collection.
- entity_
id str - Identifier of the entity being associated with service catalog.
- entity_
type str - The type of the entity that is associated with the service catalog.
- filters
Sequence[servicecatalog.
Get Service Catalog Associations Filter] - service_
catalog_ strassociation_ id - service_
catalog_ strid - Identifier of the service catalog.
- id String
- The provider-assigned unique ID for this managed resource.
- service
Catalog List<Property Map>Association Collections - The list of service_catalog_association_collection.
- entity
Id String - Identifier of the entity being associated with service catalog.
- entity
Type String - The type of the entity that is associated with the service catalog.
- filters List<Property Map>
- service
Catalog StringAssociation Id - service
Catalog StringId - Identifier of the service catalog.
Supporting Types
GetServiceCatalogAssociationsFilter
GetServiceCatalogAssociationsServiceCatalogAssociationCollection
GetServiceCatalogAssociationsServiceCatalogAssociationCollectionItem
- Entity
Id string - The unique identifier of the entity associated with service catalog.
- Entity
Type string - The type of the application in the service catalog.
- Id string
- Identifier of the association.
- Service
Catalog stringId - The unique identifier for the service catalog.
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- Entity
Id string - The unique identifier of the entity associated with service catalog.
- Entity
Type string - The type of the application in the service catalog.
- Id string
- Identifier of the association.
- Service
Catalog stringId - The unique identifier for the service catalog.
- Time
Created string - Timestamp of when the resource was associated with service catalog.
- entity
Id String - The unique identifier of the entity associated with service catalog.
- entity
Type String - The type of the application in the service catalog.
- id String
- Identifier of the association.
- service
Catalog StringId - The unique identifier for the service catalog.
- time
Created String - Timestamp of when the resource was associated with service catalog.
- entity
Id string - The unique identifier of the entity associated with service catalog.
- entity
Type string - The type of the application in the service catalog.
- id string
- Identifier of the association.
- service
Catalog stringId - The unique identifier for the service catalog.
- time
Created string - Timestamp of when the resource was associated with service catalog.
- entity_
id str - The unique identifier of the entity associated with service catalog.
- entity_
type str - The type of the application in the service catalog.
- id str
- Identifier of the association.
- service_
catalog_ strid - The unique identifier for the service catalog.
- time_
created str - Timestamp of when the resource was associated with service catalog.
- entity
Id String - The unique identifier of the entity associated with service catalog.
- entity
Type String - The type of the application in the service catalog.
- id String
- Identifier of the association.
- service
Catalog StringId - The unique identifier for the service catalog.
- time
Created String - Timestamp of when the resource was associated with service catalog.
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