configuration_source_providers
Creates, updates, deletes, gets or lists a configuration_source_providers resource.
Overview​
| Name | configuration_source_providers |
| Type | Resource |
| Id | oci.resource_manager.configuration_source_providers |
Fields​
The following fields are returned by SELECT queries:
- get
- list
The request was accepted for processing.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the configuration source provider. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the configuration source provider is located. |
configSourceProviderType | string | The type of configuration source provider. The BITBUCKET_CLOUD_ACCESS_TOKEN type corresponds to Bitbucket Cloud. The BITBUCKET_SERVER_ACCESS_TOKEN type corresponds to Bitbucket Server. The GITLAB_ACCESS_TOKEN type corresponds to GitLab. The GITHUB_ACCESS_TOKEN type corresponds to GitHub. (BITBUCKET_CLOUD_ACCESS_TOKEN, BITBUCKET_SERVER_ACCESS_TOKEN, GITLAB_ACCESS_TOKEN, GITHUB_ACCESS_TOKEN) |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | Description of the configuration source provider. |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
email | string | Atlassian account email used for Bitbucket Cloud API token authentication. |
freeformTags | object | Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isMigrationRequired | boolean | Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. |
lifecycleState | string | The current lifecycle state of the configuration source provider. For more information about configuration source provider lifecycle states in Resource Manager, see [Key Concepts](/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__CSPStates). (ACTIVE) |
privateServerConfigDetails | object | Details about a private endpoint associated with the configuration source provider. (x-example: {<br /> "privateEndpointId": "ocid1.ormprivateendpoint.oc1..<var><unique_ID></var>",<br /> "sslCertificateId": "ocid1.certificate.oc1..<var><unique_ID></var>"<br />}<br />) |
secretId | string | Secret ocid which is used to authorize the user. |
systemTags | object | The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {orcl-cloud: {free-tier-retain: true}} |
timeCreated | string (date-time) | The date and time when the configuration source provider was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
username | string | Username which is used to authorize the user. |
The request was accepted for processing.
| Name | Datatype | Description |
|---|---|---|
id | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the configuration source provider. |
compartmentId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment where the configuration source provider is located. |
configSourceProviderType | string | The type of configuration source provider. The BITBUCKET_CLOUD_ACCESS_TOKEN type corresponds to Bitbucket Cloud. The BITBUCKET_SERVER_ACCESS_TOKEN type corresponds to Bitbucket Server. The GITLAB_ACCESS_TOKEN type corresponds to GitLab. The GITHUB_ACCESS_TOKEN type corresponds to GitHub. (x-obmcs-enumref: #/definitions/ConfigurationSourceProvider/configSourceProviderType) |
definedTags | object | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Operations": {"CostCenter": "42"}} |
description | string | General description of the configuration source provider. |
displayName | string | A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. |
freeformTags | object | Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm). Example: {"Department": "Finance"} |
isMigrationRequired | boolean | Indicates whether this configuration source provider uses legacy Bitbucket Cloud username/app-password credentials and must be migrated. |
lifecycleState | string | Current state of the specified configuration source provider. For more information about configuration source provider lifecycle states in Resource Manager, see [Key Concepts](/iaas/Content/ResourceManager/Concepts/resourcemanager.htm#concepts__CSPStates). (x-obmcs-enumref: #/definitions/ConfigurationSourceProvider/lifecycleState) |
privateServerConfigDetails | object | Details about a private endpoint associated with the configuration source provider. (x-example: {<br /> "privateEndpointId": "ocid1.ormprivateendpoint.oc1..<var><unique_ID></var>",<br /> "sslCertificateId": "ocid1.certificate.oc1..<var><unique_ID></var>"<br />}<br />) |
systemTags | object | The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see [Resource Tags](https:​//docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: {orcl-cloud: {free-tier-retain: true}} |
timeCreated | string (date-time) | The date and time when the configuration source provider was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | configurationSourceProviderId, region | opc-request-id | Gets the properties of the specified configuration source provider.<br />For more information, see<br />[Getting a Configuration Source Provider's Details](/iaas/Content/ResourceManager/Tasks/get-csp.htm).<br /> |
list | select | region | opc-request-id, compartmentId, configurationSourceProviderId, displayName, sortBy, sortOrder, limit, page, configSourceProviderType | Lists configuration source providers according to the specified filter.<br />For more information, see<br />[Listing Configuration Source Providers](/iaas/Content/ResourceManager/Tasks/list-csp.htm).<br />- For compartmentId, lists all configuration source providers in the matching compartment.<br />- For configurationSourceProviderId, lists the matching configuration source provider.<br /> |
create | insert | region, configSourceProviderType | opc-request-id, opc-retry-token | Creates a configuration source provider in the specified compartment.<br />For more information, see<br />[Creating a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/create-csp.htm).<br /> |
update | update | configurationSourceProviderId, region | opc-request-id, if-match | Updates the properties of the specified configuration source provider.<br />For more information, see<br />[Updating a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/update-csp.htm).<br /> |
delete | delete | configurationSourceProviderId, region | opc-request-id, if-match | Deletes the specified configuration source provider.<br />For more information, see<br />[Deleting a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/delete-csp.htm).<br /> |
change_compartment | exec | configurationSourceProviderId, region, compartmentId | if-match, opc-request-id, opc-retry-token | Moves a configuration source provider into a different compartment within the same tenancy.<br />For more information, see<br />[Moving a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/change-compartment-csp.htm).<br /> |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
configurationSourceProviderId | string | The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the configuration source provider. |
region | string | OCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION) |
compartmentId | string | A filter to return only resources that exist in the compartment, identified by [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
configSourceProviderType | string | A filter to return only configuration source providers of the specified type (GitHub or GitLab). |
configurationSourceProviderId | string | A filter to return only configuration source providers that match the provided [OCID](/iaas/Content/General/Concepts/identifiers.htm). |
displayName | string | A filter to return only resources that match the given display name exactly. Use this filter to list a resource by name. Requires sortBy set to DISPLAYNAME. Alternatively, when you know the resource OCID, use the related Get operation. |
if-match | string | For optimistic concurrency control. In the PUT or DELETE call for a resource, set the if-match parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value. |
limit | integer | The number of items returned in a paginated List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
opc-request-id | string | Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID. |
opc-retry-token | string | A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected. |
page | string | The value of the opc-next-page response header from the preceding List call. For information about pagination, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). |
sortBy | string | The field to use when sorting returned resources. By default, TIMECREATED is ordered descending. By default, DISPLAYNAME is ordered ascending. Note that you can sort only on one field. |
sortOrder | string | The sort order to use when sorting returned resources. Ascending (ASC) or descending (DESC). |
SELECT examples​
- get
- list
Gets the properties of the specified configuration source provider.<br />For more information, see<br />[Getting a Configuration Source Provider's Details](/iaas/Content/ResourceManager/Tasks/get-csp.htm).<br />
SELECT
id,
compartmentId,
configSourceProviderType,
definedTags,
description,
displayName,
email,
freeformTags,
isMigrationRequired,
lifecycleState,
privateServerConfigDetails,
secretId,
systemTags,
timeCreated,
username
FROM oci.resource_manager.configuration_source_providers
WHERE configurationSourceProviderId = '{{ configurationSourceProviderId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;
Lists configuration source providers according to the specified filter.<br />For more information, see<br />[Listing Configuration Source Providers](/iaas/Content/ResourceManager/Tasks/list-csp.htm).<br />- For compartmentId, lists all configuration source providers in the matching compartment.<br />- For configurationSourceProviderId, lists the matching configuration source provider.<br />
SELECT
id,
compartmentId,
configSourceProviderType,
definedTags,
description,
displayName,
freeformTags,
isMigrationRequired,
lifecycleState,
privateServerConfigDetails,
systemTags,
timeCreated
FROM oci.resource_manager.configuration_source_providers
WHERE region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
AND compartmentId = '{{ compartmentId }}'
AND configurationSourceProviderId = '{{ configurationSourceProviderId }}'
AND displayName = '{{ displayName }}'
AND sortBy = '{{ sortBy }}'
AND sortOrder = '{{ sortOrder }}'
AND limit = '{{ limit }}'
AND page = '{{ page }}'
AND configSourceProviderType = '{{ configSourceProviderType }}'
;
INSERT examples​
- create
- Manifest
Creates a configuration source provider in the specified compartment.<br />For more information, see<br />[Creating a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/create-csp.htm).<br />
INSERT INTO oci.resource_manager.configuration_source_providers (
compartmentId,
configSourceProviderType,
definedTags,
description,
displayName,
freeformTags,
privateServerConfigDetails,
region,
opc-request-id,
opc-retry-token
)
SELECT
'{{ compartmentId }}',
'{{ configSourceProviderType }}' /* required */,
'{{ definedTags }}',
'{{ description }}',
'{{ displayName }}',
'{{ freeformTags }}',
'{{ privateServerConfigDetails }}',
'{{ region }}',
'{{ opc-request-id }}',
'{{ opc-retry-token }}'
RETURNING
id,
compartmentId,
configSourceProviderType,
definedTags,
description,
displayName,
email,
freeformTags,
isMigrationRequired,
lifecycleState,
privateServerConfigDetails,
secretId,
systemTags,
timeCreated,
username
;
# Description fields are for documentation purposes
- name: configuration_source_providers
props:
- name: region
value: "{{ region }}"
description: Required parameter for the configuration_source_providers resource.
- name: compartmentId
value: "{{ compartmentId }}"
description: |
The [OCID](/iaas/Content/General/Concepts/identifiers.htm) of the compartment where
you want to create the configuration source provider.
- name: configSourceProviderType
value: "{{ configSourceProviderType }}"
description: |
The type of configuration source provider.
The `GITLAB_ACCESS_TOKEN` type corresponds to GitLab.
The `GITHUB_ACCESS_TOKEN` type corresponds to GitHub.
The `BITBUCKET_CLOUD_ACCESS_TOKEN` type corresponds to Bitbucket Cloud.
For Bitbucket Cloud, create requests must provide Atlassian account `email` and `secretId` containing an API token.
The `BITBUCKET_SERVER_ACCESS_TOKEN` type corresponds to Bitbucket Server.
- name: definedTags
value: "{{ definedTags }}"
description: |
Defined tags for this resource. Each key is predefined and scoped to a namespace.
For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Operations": {"CostCenter": "42"}}`
- name: description
value: "{{ description }}"
description: |
Description of the configuration source provider. Avoid entering confidential information.
- name: displayName
value: "{{ displayName }}"
description: |
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- name: freeformTags
value: "{{ freeformTags }}"
description: |
Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace.
For more information, see [Resource Tags](/iaas/Content/General/Concepts/resourcetags.htm).
Example: `{"Department": "Finance"}`
- name: privateServerConfigDetails
description: |
Details about a private endpoint associated with the configuration source provider.
value:
certificateId: "{{ certificateId }}"
privateEndpointId: "{{ privateEndpointId }}"
- name: opc-request-id
value: "{{ opc-request-id }}"
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
description: Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
- name: opc-retry-token
value: "{{ opc-retry-token }}"
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected.
description: A token that uniquely identifies a request so it can be retried in case of a timeout or server error without risk of retrying the same action. Retry tokens expire after 24 hours, but can be invalidated before then due to conflicting operations. For example, if a resource has been deleted and purged from the system, then a retry of the original creation request may be rejected.
UPDATE examples​
- update
Updates the properties of the specified configuration source provider.<br />For more information, see<br />[Updating a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/update-csp.htm).<br />
UPDATE oci.resource_manager.configuration_source_providers
SET
configSourceProviderType = '{{ configSourceProviderType }}',
definedTags = '{{ definedTags }}',
description = '{{ description }}',
displayName = '{{ displayName }}',
freeformTags = '{{ freeformTags }}',
privateServerConfigDetails = '{{ privateServerConfigDetails }}'
WHERE
configurationSourceProviderId = '{{ configurationSourceProviderId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id}}'
AND if-match = '{{ if-match}}'
RETURNING
id,
compartmentId,
configSourceProviderType,
definedTags,
description,
displayName,
email,
freeformTags,
isMigrationRequired,
lifecycleState,
privateServerConfigDetails,
secretId,
systemTags,
timeCreated,
username;
DELETE examples​
- delete
Deletes the specified configuration source provider.<br />For more information, see<br />[Deleting a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/delete-csp.htm).<br />
DELETE FROM oci.resource_manager.configuration_source_providers
WHERE configurationSourceProviderId = '{{ configurationSourceProviderId }}' --required
AND region = '{{ region }}' --required
AND opc-request-id = '{{ opc-request-id }}'
AND if-match = '{{ if-match }}'
;
Lifecycle Methods​
- change_compartment
Moves a configuration source provider into a different compartment within the same tenancy.<br />For more information, see<br />[Moving a Configuration Source Provider](/iaas/Content/ResourceManager/Tasks/change-compartment-csp.htm).<br />
EXEC oci.resource_manager.configuration_source_providers.change_compartment
@configurationSourceProviderId='{{ configurationSourceProviderId }}' --required,
@region='{{ region }}' --required,
@if-match='{{ if-match }}',
@opc-request-id='{{ opc-request-id }}',
@opc-retry-token='{{ opc-retry-token }}'
@@json=
'{
"compartmentId": "{{ compartmentId }}"
}'
;