Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.CertificatesManagement.getAssociations
Explore with Pulumi AI
This data source provides the list of Associations in Oracle Cloud Infrastructure Certificates Management service.
Lists all associations that match the query parameters.
Optionally, you can use the parameter FilterByAssociationIdQueryParam
to limit the result set to a single item that matches the specified association.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testAssociations = oci.CertificatesManagement.getAssociations({
associatedResourceId: testAssociatedResource.id,
associationId: testAssociation.id,
associationType: associationAssociationType,
certificatesResourceId: testCertificatesResource.id,
compartmentId: compartmentId,
name: associationName,
});
import pulumi
import pulumi_oci as oci
test_associations = oci.CertificatesManagement.get_associations(associated_resource_id=test_associated_resource["id"],
association_id=test_association["id"],
association_type=association_association_type,
certificates_resource_id=test_certificates_resource["id"],
compartment_id=compartment_id,
name=association_name)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CertificatesManagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := CertificatesManagement.GetAssociations(ctx, &certificatesmanagement.GetAssociationsArgs{
AssociatedResourceId: pulumi.StringRef(testAssociatedResource.Id),
AssociationId: pulumi.StringRef(testAssociation.Id),
AssociationType: pulumi.StringRef(associationAssociationType),
CertificatesResourceId: pulumi.StringRef(testCertificatesResource.Id),
CompartmentId: pulumi.StringRef(compartmentId),
Name: pulumi.StringRef(associationName),
}, 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 testAssociations = Oci.CertificatesManagement.GetAssociations.Invoke(new()
{
AssociatedResourceId = testAssociatedResource.Id,
AssociationId = testAssociation.Id,
AssociationType = associationAssociationType,
CertificatesResourceId = testCertificatesResource.Id,
CompartmentId = compartmentId,
Name = associationName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.CertificatesManagement.CertificatesManagementFunctions;
import com.pulumi.oci.CertificatesManagement.inputs.GetAssociationsArgs;
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 testAssociations = CertificatesManagementFunctions.getAssociations(GetAssociationsArgs.builder()
.associatedResourceId(testAssociatedResource.id())
.associationId(testAssociation.id())
.associationType(associationAssociationType)
.certificatesResourceId(testCertificatesResource.id())
.compartmentId(compartmentId)
.name(associationName)
.build());
}
}
variables:
testAssociations:
fn::invoke:
Function: oci:CertificatesManagement:getAssociations
Arguments:
associatedResourceId: ${testAssociatedResource.id}
associationId: ${testAssociation.id}
associationType: ${associationAssociationType}
certificatesResourceId: ${testCertificatesResource.id}
compartmentId: ${compartmentId}
name: ${associationName}
Using getAssociations
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 getAssociations(args: GetAssociationsArgs, opts?: InvokeOptions): Promise<GetAssociationsResult>
function getAssociationsOutput(args: GetAssociationsOutputArgs, opts?: InvokeOptions): Output<GetAssociationsResult>
def get_associations(associated_resource_id: Optional[str] = None,
association_id: Optional[str] = None,
association_type: Optional[str] = None,
certificates_resource_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[_certificatesmanagement.GetAssociationsFilter]] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAssociationsResult
def get_associations_output(associated_resource_id: Optional[pulumi.Input[str]] = None,
association_id: Optional[pulumi.Input[str]] = None,
association_type: Optional[pulumi.Input[str]] = None,
certificates_resource_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_certificatesmanagement.GetAssociationsFilterArgs]]]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAssociationsResult]
func GetAssociations(ctx *Context, args *GetAssociationsArgs, opts ...InvokeOption) (*GetAssociationsResult, error)
func GetAssociationsOutput(ctx *Context, args *GetAssociationsOutputArgs, opts ...InvokeOption) GetAssociationsResultOutput
> Note: This function is named GetAssociations
in the Go SDK.
public static class GetAssociations
{
public static Task<GetAssociationsResult> InvokeAsync(GetAssociationsArgs args, InvokeOptions? opts = null)
public static Output<GetAssociationsResult> Invoke(GetAssociationsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAssociationsResult> getAssociations(GetAssociationsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:CertificatesManagement/getAssociations:getAssociations
arguments:
# arguments dictionary
The following arguments are supported:
- Associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- Association
Id string - The OCID of the association. If the parameter is set to null, the service lists all associations.
- Association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- Certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- Compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- Filters
List<Get
Associations Filter> - Name string
- A filter that returns only resources that match the specified name.
- Associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- Association
Id string - The OCID of the association. If the parameter is set to null, the service lists all associations.
- Association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- Certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- Compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- Filters
[]Get
Associations Filter - Name string
- A filter that returns only resources that match the specified name.
- associated
Resource StringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Id String - The OCID of the association. If the parameter is set to null, the service lists all associations.
- association
Type String - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource StringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id String - A filter that returns only resources that match the given compartment OCID.
- filters
List<Get
Associations Filter> - name String
- A filter that returns only resources that match the specified name.
- associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Id string - The OCID of the association. If the parameter is set to null, the service lists all associations.
- association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- filters
Get
Associations Filter[] - name string
- A filter that returns only resources that match the specified name.
- associated_
resource_ strid - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association_
id str - The OCID of the association. If the parameter is set to null, the service lists all associations.
- association_
type str - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates_
resource_ strid - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment_
id str - A filter that returns only resources that match the given compartment OCID.
- filters
Sequence[certificatesmanagement.
Get Associations Filter] - name str
- A filter that returns only resources that match the specified name.
- associated
Resource StringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Id String - The OCID of the association. If the parameter is set to null, the service lists all associations.
- association
Type String - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource StringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id String - A filter that returns only resources that match the given compartment OCID.
- filters List<Property Map>
- name String
- A filter that returns only resources that match the specified name.
getAssociations Result
The following output properties are available:
- Association
Collections List<GetAssociations Association Collection> - The list of association_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - The OCID of the associated resource.
- Association
Id string - Association
Type string - Type of the association.
- Certificates
Resource stringId - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- Compartment
Id string - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- Filters
List<Get
Associations Filter> - Name string
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
- Association
Collections []GetAssociations Association Collection - The list of association_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Associated
Resource stringId - The OCID of the associated resource.
- Association
Id string - Association
Type string - Type of the association.
- Certificates
Resource stringId - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- Compartment
Id string - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- Filters
[]Get
Associations Filter - Name string
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
- association
Collections List<GetAssociations Association Collection> - The list of association_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - The OCID of the associated resource.
- association
Id String - association
Type String - Type of the association.
- certificates
Resource StringId - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- compartment
Id String - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- filters
List<Get
Associations Filter> - name String
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
- association
Collections GetAssociations Association Collection[] - The list of association_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- associated
Resource stringId - The OCID of the associated resource.
- association
Id string - association
Type string - Type of the association.
- certificates
Resource stringId - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- compartment
Id string - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- filters
Get
Associations Filter[] - name string
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
- association_
collections Sequence[certificatesmanagement.Get Associations Association Collection] - The list of association_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- associated_
resource_ strid - The OCID of the associated resource.
- association_
id str - association_
type str - Type of the association.
- certificates_
resource_ strid - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- compartment_
id str - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- filters
Sequence[certificatesmanagement.
Get Associations Filter] - name str
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
- association
Collections List<Property Map> - The list of association_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- associated
Resource StringId - The OCID of the associated resource.
- association
Id String - association
Type String - Type of the association.
- certificates
Resource StringId - The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource.
- compartment
Id String - The compartment OCID of the association, which is strongly tied to the compartment OCID of the certificate-related resource.
- filters List<Property Map>
- name String
- A user-friendly name generated by the service for the association, expressed in a format that follows the pattern: [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID.
Supporting Types
GetAssociationsAssociationCollection
GetAssociationsAssociationCollectionItem
- Associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- Association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- Certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- Compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- Id string
- The OCID of the association.
- Name string
- A filter that returns only resources that match the specified name.
- State string
- The current lifecycle state of the association.
- Time
Created string - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- Associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- Association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- Certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- Compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- Id string
- The OCID of the association.
- Name string
- A filter that returns only resources that match the specified name.
- State string
- The current lifecycle state of the association.
- Time
Created string - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- associated
Resource StringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Type String - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource StringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id String - A filter that returns only resources that match the given compartment OCID.
- id String
- The OCID of the association.
- name String
- A filter that returns only resources that match the specified name.
- state String
- The current lifecycle state of the association.
- time
Created String - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- associated
Resource stringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Type string - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource stringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id string - A filter that returns only resources that match the given compartment OCID.
- id string
- The OCID of the association.
- name string
- A filter that returns only resources that match the specified name.
- state string
- The current lifecycle state of the association.
- time
Created string - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- associated_
resource_ strid - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association_
type str - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates_
resource_ strid - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment_
id str - A filter that returns only resources that match the given compartment OCID.
- id str
- The OCID of the association.
- name str
- A filter that returns only resources that match the specified name.
- state str
- The current lifecycle state of the association.
- time_
created str - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
- associated
Resource StringId - A filter that returns only resources that match the given OCID of an associated Oracle Cloud Infrastructure resource.
- association
Type String - Type of associations to list. If the parameter is set to null, the service lists all types of associations.
- certificates
Resource StringId - A filter that returns only resources that match the given OCID of a certificate-related resource.
- compartment
Id String - A filter that returns only resources that match the given compartment OCID.
- id String
- The OCID of the association.
- name String
- A filter that returns only resources that match the specified name.
- state String
- The current lifecycle state of the association.
- time
Created String - A property indicating when the association was created, expressed in RFC 3339 timestamp format. Example:
2019-04-03T21:10:29.600Z
GetAssociationsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.