NetworkSources¶
-
class
oci.identity.models.
NetworkSources
(**kwargs)¶ Bases:
object
A network source specifies a list of source IP addresses that are allowed to make authorization requests. Use the network source in policy statements to restrict access to only requests that come from the specified IPs. For more information, see Managing Network Sources.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a NetworkSources. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a NetworkSources. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a NetworkSources. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a NetworkSources. LIFECYCLE_STATE_INACTIVE
A constant which can be used with the lifecycle_state property of a NetworkSources. compartment_id
[Required] Gets the compartment_id of this NetworkSources. defined_tags
Gets the defined_tags of this NetworkSources. description
[Required] Gets the description of this NetworkSources. freeform_tags
Gets the freeform_tags of this NetworkSources. id
[Required] Gets the id of this NetworkSources. inactive_status
Gets the inactive_status of this NetworkSources. lifecycle_state
[Required] Gets the lifecycle_state of this NetworkSources. name
[Required] Gets the name of this NetworkSources. public_source_list
Gets the public_source_list of this NetworkSources. services
Gets the services of this NetworkSources. time_created
[Required] Gets the time_created of this NetworkSources. virtual_source_list
Gets the virtual_source_list of this NetworkSources. Methods
__init__
(**kwargs)Initializes a new NetworkSources object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a NetworkSources. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a NetworkSources. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a NetworkSources. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a NetworkSources. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_INACTIVE
= 'INACTIVE'¶ A constant which can be used with the lifecycle_state property of a NetworkSources. This constant has a value of “INACTIVE”
-
__init__
(**kwargs)¶ Initializes a new NetworkSources object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this NetworkSources.
- compartment_id (str) – The value to assign to the compartment_id property of this NetworkSources.
- name (str) – The value to assign to the name property of this NetworkSources.
- description (str) – The value to assign to the description property of this NetworkSources.
- public_source_list (list[str]) – The value to assign to the public_source_list property of this NetworkSources.
- virtual_source_list (list[oci.identity.models.NetworkSourcesVirtualSourceList]) – The value to assign to the virtual_source_list property of this NetworkSources.
- services (list[str]) – The value to assign to the services property of this NetworkSources.
- time_created (datetime) – The value to assign to the time_created property of this NetworkSources.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this NetworkSources. Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- inactive_status (int) – The value to assign to the inactive_status property of this NetworkSources.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this NetworkSources.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this NetworkSources.
-
compartment_id
¶ [Required] Gets the compartment_id of this NetworkSources. The OCID of the tenancy containing the network source. The tenancy is the root compartment.
Returns: The compartment_id of this NetworkSources. Return type: str
Gets the defined_tags of this NetworkSources. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this NetworkSources. Return type: dict(str, dict(str, object))
-
description
¶ [Required] Gets the description of this NetworkSources. The description you assign to the network source. Does not have to be unique, and it’s changeable.
Returns: The description of this NetworkSources. Return type: str
Gets the freeform_tags of this NetworkSources. 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”}
Returns: The freeform_tags of this NetworkSources. Return type: dict(str, str)
-
id
¶ [Required] Gets the id of this NetworkSources. The OCID of the network source.
Returns: The id of this NetworkSources. Return type: str
-
inactive_status
¶ Gets the inactive_status of this NetworkSources. The detailed status of INACTIVE lifecycleState.
Returns: The inactive_status of this NetworkSources. Return type: int
-
lifecycle_state
¶ [Required] Gets the lifecycle_state of this NetworkSources. The network source object’s current state. After creating a network source, make sure its lifecycleState changes from CREATING to ACTIVE before using it.
Allowed values for this property are: “CREATING”, “ACTIVE”, “INACTIVE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this NetworkSources. Return type: str
-
name
¶ [Required] Gets the name of this NetworkSources. The name you assign to the network source during creation. The name must be unique across the tenancy and cannot be changed.
Returns: The name of this NetworkSources. Return type: str
-
public_source_list
¶ Gets the public_source_list of this NetworkSources. A list of allowed public IPs and CIDR ranges.
Returns: The public_source_list of this NetworkSources. Return type: list[str]
-
services
¶ Gets the services of this NetworkSources. – The services attribute has no effect and is reserved for use by Oracle. –
Returns: The services of this NetworkSources. Return type: list[str]
-
time_created
¶ [Required] Gets the time_created of this NetworkSources. Date and time the network source was created, in the format defined by RFC3339.
Example: 2016-08-25T21:10:29.600Z
Returns: The time_created of this NetworkSources. Return type: datetime
-
virtual_source_list
¶ Gets the virtual_source_list of this NetworkSources. A list of allowed VCN OCID and IP range pairs. Example:”vcnId”: “ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID”, “ipRanges”: [ “129.213.39.0/24” ]
Returns: The virtual_source_list of this NetworkSources. Return type: list[oci.identity.models.NetworkSourcesVirtualSourceList]
-