{"id":21450,"library":"ibm-vpc","title":"IBM Cloud VPC Python SDK","description":"Python client library for IBM Cloud Virtual Private Cloud (VPC) services. Current version 0.33.0, released April 2026. Follows IBM Cloud API spec updates; released roughly quarterly.","status":"active","version":"0.33.0","language":"python","source_language":"en","source_url":"https://github.com/IBM/vpc-python-sdk","tags":["ibm-cloud","vpc","sdk","iaas","cloud"],"install":[{"cmd":"pip install ibm-vpc","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core SDK for authentication and HTTP","package":"ibm-cloud-sdk-core","optional":false}],"imports":[{"note":"Old pattern moved to top-level import in v0.28.0","wrong":"from ibm_vpc.vpc_v1 import VpcV1","symbol":"VpcV1","correct":"from ibm_vpc import VpcV1"},{"note":"Authenticators are in ibm-cloud-sdk-core, not ibm-vpc","wrong":"from ibm_vpc import IamAuthenticator","symbol":"IamAuthenticator","correct":"from ibm_cloud_sdk_core.authenticators import IamAuthenticator"}],"quickstart":{"code":"import os\nfrom ibm_vpc import VpcV1\nfrom ibm_cloud_sdk_core.authenticators import IamAuthenticator\n\nauthenticator = IamAuthenticator(\n    apikey=os.environ.get('IBM_CLOUD_API_KEY', '')\n)\nservice = VpcV1(authenticator=authenticator)\nservice.set_service_url('https://us-south.iaas.cloud.ibm.com/v1')\n\nvpc_prototype = {\n    'name': 'my-vpc',\n    'resource_group': {'id': 'your-resource-group-id'}\n}\nresponse = service.create_vpc(vpc_prototype)\nprint(response.get_result())","lang":"python","description":"Initialize VPC client with IAM API key and create a VPC."},"warnings":[{"fix":"Use service.set_service_url_for_region('us-south') instead of constructing URL manually.","message":"Service URL changed from 'https://{region}.iaas.cloud.ibm.com/v1' to use set_service_url_for_region() in v0.28.0. Hardcoded URLs may break if region changes.","severity":"breaking","affected_versions":"<0.28.0"},{"fix":"Set explicit API version via set_headers or pass version parameter if you relied on old defaults.","message":"Default API version updated from 2025-03-04 to 2025-04-22 in v0.28.0. Some response fields may have changed.","severity":"breaking","affected_versions":"<0.28.0"},{"fix":"Always include resource_group with a valid ID in the prototype.","message":"Creating a VPC requires a resource_group.id; omitting it may cause a 400 error.","severity":"gotcha","affected_versions":"*"},{"fix":"Check the latest API spec for valid owner_type values.","message":"The 'owner_type' parameter in list_images was enhanced in v0.28.0. Old filter values may not work as expected.","severity":"deprecated","affected_versions":">=0.28.0"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run 'pip install ibm-vpc' (hyphen, not underscore).","cause":"Package not installed or installed with wrong name.","error":"ModuleNotFoundError: No module named 'ibm_vpc'"},{"fix":"Verify IBM_CLOUD_API_KEY is set correctly and has IAM access to VPC services.","cause":"Invalid API key or missing permissions.","error":"Unauthorized: Access denied (401)"},{"fix":"Use 'from ibm_vpc import VpcV1' (top-level import).","cause":"Incorrect import path after version changes.","error":"AttributeError: module 'ibm_vpc' has no attribute 'VpcV1'"},{"fix":"Set correct service URL for your region, e.g., service.set_service_url_for_region('us-south').","cause":"Service URL or region is incorrect.","error":"ibm_cloud_sdk_core.api_exception.ApiException: Error: Resource not found (404)"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}