Region Property
The region the class will make requests against.
Syntax
ANSI (Cross Platform) char* GetRegion();
int SetRegion(const char* lpszRegion); Unicode (Windows) LPWSTR GetRegion();
INT SetRegion(LPCWSTR lpszRegion);
@property (nonatomic,readwrite,assign,getter=region,setter=setRegion:) NSString* region; - (NSString*)region; - (void)setRegion:(NSString*)newRegion;
#define PID_LINODE_REGION 67 IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_Linode_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_Linode_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);
Default Value
"us-east-1"
Remarks
This property control which region the class will make requests against. By default the class uses us-east-1. This property should be changed to create or access resources in other regions.
Regions:
Value | Region |
us-east-1 (default) | US East (Newark) |
eu-central-1 | EU Central (Frankfurt) |
Important: Each "region" supported by Linode's Object Storage service is actually a completely standalone storage cluster. These clusters do not interact with each other in any way, which causes the following non-standard behaviors:
- Bucket names may be reused in each region (however, they must still be "globally" unique within each region).
- The ListBuckets method will only return buckets located in the currently-selected region; there is no way to retrieve a list of all regions' buckets.
- Similarly, the BucketExists and GetBucketLocation methods only consider buckets located in the currently-selected region.
- The CopyObject method cannot be used to copy objects to a bucket in another region.
The class will always convert this property's value to lowercase. If this property is cleared, the class will reset it to the default value.
Data Type
String